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:
Alex Richardson
2025-01-06 16:02:04 -08:00
committed by Travis Geiselbrecht
parent 829fdfa264
commit 22ae6b6cea

View File

@@ -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