diff options
author | Julius Werner <jwerner@chromium.org> | 2018-06-25 17:59:13 -0700 |
---|---|---|
committer | Julius Werner <jwerner@chromium.org> | 2018-06-26 23:59:08 +0000 |
commit | a98b5bf89b39fede95c34bf81e9decc1e6b6d38f (patch) | |
tree | 7b32d53ee95131f5fd9e30f54b6780e0ee7dbc00 /src/arch/arm64/include/armv8 | |
parent | 905e1e763e0a8922cade359c01dfdee92834b473 (diff) | |
download | coreboot-a98b5bf89b39fede95c34bf81e9decc1e6b6d38f.tar.xz |
arm64: Switch remaining uses of __ASSEMBLY__ to __ASSEMBLER__
Some arm64 files that were imported from other projects use the
__ASSEMBLY__ macro to test whether a header is included from a C or an
assembly file. This patch switches them to the coreboot standard
__ASSEMBLER__, which has the advantage of being a GCC builtin so that
the including file doesn't have to supply it explicitly.
Change-Id: I1023f72dd13857b14ce060388e97c658e748928f
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/27237
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/arch/arm64/include/armv8')
-rw-r--r-- | src/arch/arm64/include/armv8/arch/barrier.h | 4 | ||||
-rw-r--r-- | src/arch/arm64/include/armv8/arch/lib_helpers.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/arch/arm64/include/armv8/arch/barrier.h b/src/arch/arm64/include/armv8/arch/barrier.h index b653d24bee..397ac2aa67 100644 --- a/src/arch/arm64/include/armv8/arch/barrier.h +++ b/src/arch/arm64/include/armv8/arch/barrier.h @@ -15,7 +15,7 @@ #ifndef __ASM_ARM_BARRIER_H #define __ASM_ARM_BARRIER_H -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ #define sevl() asm volatile("sevl" : : : "memory") #define sev() asm volatile("sev" : : : "memory") @@ -103,6 +103,6 @@ do { \ !ret; \ }) -#endif /* __ASSEMBLY__ */ +#endif /* __ASSEMBLER__ */ #endif /* __ASM_ARM_BARRIER_H */ diff --git a/src/arch/arm64/include/armv8/arch/lib_helpers.h b/src/arch/arm64/include/armv8/arch/lib_helpers.h index f4b6ba6e6a..d2d30e12aa 100644 --- a/src/arch/arm64/include/armv8/arch/lib_helpers.h +++ b/src/arch/arm64/include/armv8/arch/lib_helpers.h @@ -136,7 +136,7 @@ #define CPACR_TRAP_FP_EL0 (1 << CPACR_FPEN_SHIFT) #define CPACR_TRAP_FP_DISABLE (3 << CPACR_FPEN_SHIFT) -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__ /* Macro to switch to label based on current el */ .macro switch_el xreg label1 label2 label3 @@ -585,6 +585,6 @@ void tlbiallis_current(void); void tlbiallis(uint32_t el); void tlbivaa_el1(uint64_t va); -#endif // __ASSEMBLY__ +#endif /* __ASSEMBLER__ */ #endif /* __ARCH_LIB_HELPERS_H__ */ |