diff options
Diffstat (limited to 'lib/sbi_ecall.c')
-rw-r--r-- | lib/sbi_ecall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sbi_ecall.c b/lib/sbi_ecall.c index 7f3986d..42123ba 100644 --- a/lib/sbi_ecall.c +++ b/lib/sbi_ecall.c @@ -39,7 +39,7 @@ int sbi_ecall_handler(u32 hartid, ulong mcause, case SBI_ECALL_SET_TIMER: #if __riscv_xlen == 32 sbi_timer_event_start(scratch, - (((u64)regs->a1 << 32) || (u64)regs->a0)); + (((u64)regs->a1 << 32) | (u64)regs->a0)); #else sbi_timer_event_start(scratch, (u64)regs->a0); #endif |