diff options
author | Jim Huang <jserv@0xlab.org> | 2010-10-01 16:39:08 +0800 |
---|---|---|
committer | Jim Huang <jserv@0xlab.org> | 2010-10-01 17:00:46 +0800 |
commit | 94e5c5ef3754fee833c527f12ddb18e639fe7cf2 (patch) | |
tree | d3b5bb75e7400d69f796504b10ce0051bee1d3c3 | |
parent | 3cf53d1a7814e1520df09d24b009c16f4f27db0d (diff) | |
download | bionic-94e5c5ef3754fee833c527f12ddb18e639fe7cf2.tar.gz |
Reconcile assembly-only macros in <machine/cpu-features.h>
The change explicitly isolates the assembly-only macros in header
<machine/cpu-features.h> in order to prevent mis-inclusion in C/C++
source files.
Change-Id: I0258e87c5ac3fd24944fb227290ac3b9cac4bfba
-rw-r--r-- | libc/arch-arm/include/machine/cpu-features.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 */ |