aboutsummaryrefslogtreecommitdiff
path: root/include/arch/irq.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/arch/irq.h')
-rw-r--r--include/arch/irq.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/arch/irq.h b/include/arch/irq.h
index 85a7360..85e6af8 100644
--- a/include/arch/irq.h
+++ b/include/arch/irq.h
@@ -15,10 +15,12 @@ typedef uint_fast32_t irq_t;
* \todo These should probably also be stat_t...
*/
-#if defined(riscv64)
+#if defined(__riscv)
+# if __riscv_xlen == 64
#include "../../arch/riscv64/include/irq.h"
-#elif defined(riscv32)
+# else
#include "../../arch/riscv32/include/irq.h"
+# endif
#endif
/**