From 94e5c5ef3754fee833c527f12ddb18e639fe7cf2 Mon Sep 17 00:00:00 2001 From: Jim Huang Date: Fri, 1 Oct 2010 16:39:08 +0800 Subject: [PATCH] Reconcile assembly-only macros in The change explicitly isolates the assembly-only macros in header in order to prevent mis-inclusion in C/C++ source files. Change-Id: I0258e87c5ac3fd24944fb227290ac3b9cac4bfba --- libc/arch-arm/include/machine/cpu-features.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libc/arch-arm/include/machine/cpu-features.h b/libc/arch-arm/include/machine/cpu-features.h index 5af325bb2..902fe4543 100644 --- a/libc/arch-arm/include/machine/cpu-features.h +++ b/libc/arch-arm/include/machine/cpu-features.h @@ -158,6 +158,7 @@ /* Assembly-only macros */ +#ifdef __ASSEMBLY__ /* define a handy PLD(address) macro since the cache preload * is an optional opcode @@ -168,4 +169,6 @@ # define PLD(reg,offset) /* nothing */ #endif +#endif /* ! __ASSEMBLY__ */ + #endif /* _ARM_MACHINE_CPU_FEATURES_H */