mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 23:28:29 +08:00
arm64: Explicitly specify register type as x in assembly (arm64)
common/arm64_cache.c:305:38: error: value size does not match register size specified by the constraint and modifier [-Werror,-Wasm-operand-widths] Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
This commit is contained in:
committed by
Xiang Xiao
parent
7ecfbcdaab
commit
dd8819e517
@@ -424,7 +424,7 @@ static inline_function void up_irq_restore(irqstate_t flags)
|
||||
|
||||
#define write_sysreg(__val, reg) \
|
||||
({ \
|
||||
__asm__ volatile ("msr " STRINGIFY(reg) ", %0" \
|
||||
__asm__ volatile ("msr " STRINGIFY(reg) ", %x0" \
|
||||
: : "r" (__val) : "memory"); \
|
||||
})
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
|
||||
#define dc_ops(op, val) \
|
||||
({ \
|
||||
__asm__ volatile ("dc " op ", %0" : : "r" (val) : "memory"); \
|
||||
__asm__ volatile ("dc " op ", %x0" : : "r" (val) : "memory"); \
|
||||
})
|
||||
|
||||
#define ic_ops(op, val) \
|
||||
|
||||
Reference in New Issue
Block a user