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. BUG=None TEST=Built for snow with the kernel's implementation of memmove (which uses W()), and used memmove successfully when loading from CBFS. BRANCH=None Change-Id: I3871217b1fcbc81de159c18eb718867b17dea6cb Signed-off-by: Gabe Black <gabeblack@google.com> Reviewed-on: https://gerrit.chromium.org/gerrit/61071 Reviewed-by: Ronald G. Minnich <rminnich@chromium.org> Commit-Queue: Gabe Black <gabeblack@chromium.org> Tested-by: Gabe Black <gabeblack@chromium.org>
This commit is contained in:
parent
8dfd7c2a3f
commit
0522391083
1 changed files with 2 additions and 0 deletions
|
|
@ -58,3 +58,5 @@
|
|||
* Cache alligned
|
||||
*/
|
||||
#define CALGN(code...) code
|
||||
|
||||
#define W(instr) instr
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue