aboutsummaryrefslogtreecommitdiff
path: root/core/arch/arm/plat-ls
diff options
context:
space:
mode:
authorVinitha V Pillai <vinitha.pillai.nxp.com>2018-08-01 18:32:16 +0530
committerJérôme Forissier <jerome.forissier@linaro.org>2018-08-14 09:24:29 +0200
commitaa1288edaaa6cb09f630c661412722cc4362a711 (patch)
treee31a1af1124ba0181834d4bc7a38e6bd4f06a56d /core/arch/arm/plat-ls
parente59d8fd7da16ebf72d2ce7505a5f0ae28ff226c9 (diff)
core:arch:arm:plat-ls: remove platform specific function get_core_pos_mpidr
get_core_pos_mpidr return value was being set as MPIDR_CPU_MASK which returned only the core ID, and ignored the cluster value. Hence all threads that were requested execution by optee_os, were getting serviced only by the cores of 1st cluster, irrespective of the number of clusters present. Hence removing the file and getting the value from generic function that returns correct core_id based on the cluster it belongs to. Signed-off-by: Sahil Malhotra <sahil.malhotra@nxp.com> Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com> Reviewed-by: Vinitha V Pillai <vinitha.pillai@nxp.com>
Diffstat (limited to 'core/arch/arm/plat-ls')
-rw-r--r--core/arch/arm/plat-ls/ls_core_pos_a32.S41
-rw-r--r--core/arch/arm/plat-ls/ls_core_pos_a64.S36
-rw-r--r--core/arch/arm/plat-ls/sub.mk2
3 files changed, 0 insertions, 79 deletions
diff --git a/core/arch/arm/plat-ls/ls_core_pos_a32.S b/core/arch/arm/plat-ls/ls_core_pos_a32.S
deleted file mode 100644
index 80dde9c4..00000000
--- a/core/arch/arm/plat-ls/ls_core_pos_a32.S
+++ /dev/null
@@ -1,41 +0,0 @@
-/* SPDX-License-Identifier: BSD-2-Clause */
-/*
- * Copyright (c) 2015, Freescale Semiconductor, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <asm.S>
-#include <arm.h>
-#include <arm32_macros.S>
-#include <kernel/unwind.h>
-
-/* Layerscape platform specific function to calculate core position. */
-FUNC get_core_pos_mpidr , :
-UNWIND( .fnstart)
- /* Calculate CorePos = CoreId */
- and r0, r0, #MPIDR_CPU_MASK
- bx lr
-UNWIND( .fnend)
-END_FUNC get_core_pos_mpidr
diff --git a/core/arch/arm/plat-ls/ls_core_pos_a64.S b/core/arch/arm/plat-ls/ls_core_pos_a64.S
deleted file mode 100644
index b2128d72..00000000
--- a/core/arch/arm/plat-ls/ls_core_pos_a64.S
+++ /dev/null
@@ -1,36 +0,0 @@
-/* SPDX-License-Identifier: BSD-2-Clause */
-/*
- * Copyright 2017 NXP
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <asm.S>
-#include <arm.h>
-
-/* Layerscape platform specific function to calculate core position. */
-FUNC get_core_pos_mpidr , :
- and x0, x0, #MPIDR_CPU_MASK
- ret
-END_FUNC get_core_pos_mpidr
diff --git a/core/arch/arm/plat-ls/sub.mk b/core/arch/arm/plat-ls/sub.mk
index 7c066826..e9547ded 100644
--- a/core/arch/arm/plat-ls/sub.mk
+++ b/core/arch/arm/plat-ls/sub.mk
@@ -1,6 +1,4 @@
global-incdirs-y += .
srcs-y += main.c
-srcs-$(CFG_ARM32_core) += ls_core_pos_a32.S
-srcs-$(CFG_ARM64_core) += ls_core_pos_a64.S
srcs-$(CFG_ARM64_core) += ls_hw_unq_key_a64.S
srcs-$(CFG_ARM32_core) += plat_init.S