riscv: ensure arguments to __ASM_STR() are expanded first
Right now this does not cause any issues, but I had a local change where missing expansion resulted in compilation errors when reading CSRs.
This commit is contained in:
committed by
Travis Geiselbrecht
parent
829fdfa264
commit
22ae6b6cea
@@ -134,7 +134,8 @@
|
||||
#define RISCV_EXCEPTION_STORE_PAGE_FAULT 15
|
||||
|
||||
#ifndef ASSEMBLY
|
||||
#define __ASM_STR(x) #x
|
||||
#define ___ASM_STR(x) #x
|
||||
#define __ASM_STR(x) ___ASM_STR(x)
|
||||
|
||||
__BEGIN_CDECLS
|
||||
|
||||
|
||||
Reference in New Issue
Block a user