diff options
author | Soby Mathew <soby.mathew@arm.com> | 2016-06-08 16:55:17 +0100 |
---|---|---|
committer | Sandrine Bailleux <sandrine.bailleux@arm.com> | 2016-07-14 13:52:36 +0100 |
commit | 0394fa09d3e7a80c11bd940aff419531a2de65c3 (patch) | |
tree | 25916767f3bc25adbfc0e91021448b64c0065d6f /framework | |
parent | ce635b51d58f5424e9bc944076ce75038b17d5a1 (diff) |
Remove `wait_for_entrypoint` macro
This patch removes the unused `wait_for_entrypoint` macro defined
in asm_macros.S. Also the dependant platform function
`platform_is_primary_core` is also removed.
Change-Id: I10ecb9b0ba1dd362a5aaacd43827365154135a5a
Diffstat (limited to 'framework')
-rw-r--r-- | framework/aarch64/asm_platform_weak.S | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/framework/aarch64/asm_platform_weak.S b/framework/aarch64/asm_platform_weak.S index f11a47f..9cb6bbf 100644 --- a/framework/aarch64/asm_platform_weak.S +++ b/framework/aarch64/asm_platform_weak.S @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2014, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2013-2016, ARM Limited and Contributors. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -32,8 +32,6 @@ #include <asm_macros.S> #include <platform_def.h> -#define FALSE 0 -#define TRUE 1 #define PRIMARY_CPU_UNDEFINED 0xFFFFFFFF .section .data ; .align 3 @@ -42,7 +40,6 @@ primary_core: .space 4, 0xFF .weak platform_get_core_pos - .weak platform_is_primary_core .weak platform_get_primary_core_mpid .weak tftf_plat_save_primary_mpid @@ -65,31 +62,6 @@ func platform_get_core_pos endfunc platform_get_core_pos /* - * unsigned int platform_is_primary_core(unsigned long mpid) - * - * FUNCTION: - * Implements the boolean check: (((mpid) & MPID_MASK) == val(primary_core)) - * - * Clobbers : - * x0, x1, x3, x4 - */ -func platform_is_primary_core - mov x3, x0 - mov x4, x30 - bl platform_get_primary_core_mpid - mov x1, #MPID_MASK - and x3, x3, x1 - cmp x0, x3 - b.ne _is_not_primary_core - // the default is primary core, to avoid branch for code running on primary core - mov x0, #TRUE - ret x4 -_is_not_primary_core: - mov x0, #FALSE - ret x4 -endfunc platform_is_primary_core - -/* * unsigned int platform_get_primary_core_mpid(void) * * Clobbers : x0, x1 |