diff options
author | Gabe Black <gabeblack@google.com> | 2013-07-07 13:35:37 -0700 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2013-07-11 17:55:05 +0200 |
commit | db02069d71af6adca96ff432ed0efd7218c076f3 (patch) | |
tree | 7215c9eed99bb24fce0be94cb2b097161e6d7edc | |
parent | c65001fcda55758d3be1f8bc0571672263f9ab57 (diff) | |
download | coreboot-db02069d71af6adca96ff432ed0efd7218c076f3.tar.xz |
arm: Add a W() macro for use in kernel assembler.
Some kernel assembly code uses a W macro to optionally add a .w to
instructions that need to be 32 bit thumb. The gnu assembler doesn't seem to
need the .w and won't assemble if it's provided.
Change-Id: I0a288177788b5c61810ee7bd3d2debea66835de2
Signed-off-by: Gabe Black <gabeblack@chromium.org>
Reviewed-on: http://review.coreboot.org/3759
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
-rw-r--r-- | src/arch/armv7/include/assembler.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/arch/armv7/include/assembler.h b/src/arch/armv7/include/assembler.h index 7acf0f4a9a..10363c4e4e 100644 --- a/src/arch/armv7/include/assembler.h +++ b/src/arch/armv7/include/assembler.h @@ -58,3 +58,5 @@ * Cache aligned */ #define CALGN(code...) code + +#define W(instr) instr |