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:
wangmingrong1
2025-05-08 20:30:58 +08:00
committed by Xiang Xiao
parent 7ecfbcdaab
commit dd8819e517
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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"); \
})
+1 -1
View File
@@ -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) \