diff options
Diffstat (limited to 'include/arch/timer.h')
| -rw-r--r-- | include/arch/timer.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/arch/timer.h b/include/arch/timer.h index 1eab69a..8b832c9 100644 --- a/include/arch/timer.h +++ b/include/arch/timer.h @@ -12,10 +12,12 @@ #include <kmi/timer.h> -#if defined(riscv64) +#if defined(__riscv) +# if __riscv_xlen == 64 #include "../../arch/riscv64/include/timer.h" -#elif defined(riscv32) +# else #include "../../arch/riscv32/include/timer.h" +# endif #endif /** |
