diff options
author | Soby Mathew <soby.mathew@arm.com> | 2015-07-13 14:10:57 +0100 |
---|---|---|
committer | Achin Gupta <achin.gupta@arm.com> | 2015-08-13 23:47:57 +0100 |
commit | 674878464a93bb6d6bf6cb746fc4b9dba6e101ac (patch) | |
tree | 1fffba7dce2aaa5a83d74696d5d720afb43c5922 /plat/common | |
parent | 32bc85f2d5234fbc4d1f724db3d033b8e1be5dd3 (diff) |
PSCI: Switch to the new PSCI frameworks
This commit does the switch to the new PSCI framework implementation replacing
the existing files in PSCI folder with the ones in PSCI1.0 folder. The
corresponding makefiles are modified as required for the new implementation.
The platform.h header file is also is switched to the new one
as required by the new frameworks. The build flag ENABLE_PLAT_COMPAT defaults
to 1 to enable compatibility layer which let the existing platform ports to
continue to build and run with minimal changes.
The default weak implementation of platform_get_core_pos() is now removed from
platform_helpers.S and is provided by the compatibility layer.
Note: The Secure Payloads and their dispatchers still use the old platform
and framework APIs and hence it is expected that the ENABLE_PLAT_COMPAT build
flag will remain enabled in subsequent patch. The compatibility for SPDs using
the older APIs on platforms migrated to the new APIs will be added in the
following patch.
Change-Id: I18c51b3a085b564aa05fdd98d11c9f3335712719
Diffstat (limited to 'plat/common')
-rw-r--r-- | plat/common/aarch64/platform_helpers.S | 26 | ||||
-rw-r--r-- | plat/common/aarch64/platform_mp_stack.S | 5 |
2 files changed, 3 insertions, 28 deletions
diff --git a/plat/common/aarch64/platform_helpers.S b/plat/common/aarch64/platform_helpers.S index c117449d..b88603c3 100644 --- a/plat/common/aarch64/platform_helpers.S +++ b/plat/common/aarch64/platform_helpers.S @@ -32,9 +32,6 @@ #include <asm_macros.S> #include <platform_def.h> - - .weak platform_get_core_pos - .weak platform_check_mpidr .weak plat_report_exception .weak plat_crash_console_init .weak plat_crash_console_putc @@ -42,29 +39,6 @@ .weak plat_disable_acp /* ----------------------------------------------------- - * int platform_get_core_pos(int mpidr); - * With this function: CorePos = (ClusterId * 4) + - * CoreId - * ----------------------------------------------------- - */ -func platform_get_core_pos - and x1, x0, #MPIDR_CPU_MASK - and x0, x0, #MPIDR_CLUSTER_MASK - add x0, x1, x0, LSR #6 - ret -endfunc platform_get_core_pos - - /* ----------------------------------------------------- - * Placeholder function which should be redefined by - * each platform. - * ----------------------------------------------------- - */ -func platform_check_mpidr - mov x0, xzr - ret -endfunc platform_check_mpidr - - /* ----------------------------------------------------- * Placeholder function which should be redefined by * each platform. * ----------------------------------------------------- diff --git a/plat/common/aarch64/platform_mp_stack.S b/plat/common/aarch64/platform_mp_stack.S index b1f7b6dc..6cfa0697 100644 --- a/plat/common/aarch64/platform_mp_stack.S +++ b/plat/common/aarch64/platform_mp_stack.S @@ -37,9 +37,9 @@ #if ENABLE_PLAT_COMPAT .globl plat_get_my_stack .globl plat_set_my_stack -#else .weak platform_get_stack .weak platform_set_stack +#else .weak plat_get_my_stack .weak plat_set_my_stack #endif /*__ENABLE_PLAT_COMPAT__*/ @@ -80,7 +80,6 @@ func plat_set_my_stack b platform_set_stack endfunc plat_set_my_stack -#else /* ----------------------------------------------------- * unsigned long platform_get_stack (unsigned long mpidr) * @@ -108,6 +107,8 @@ func platform_set_stack ret x9 endfunc platform_set_stack +#else + /* ----------------------------------------------------- * unsigned long plat_get_my_stack () * |