diff options
| author | Alistair Francis <[email protected]> | 2019-02-06 14:02:22 -0800 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2019-02-08 09:18:46 +0530 |
| commit | b4c72deba98b6398a4c44198553093670d226e2d (patch) | |
| tree | 5a5e770508f6028a6062f0f262888c549d38d3d3 /lib | |
| parent | 93f806af32cc75138cc9afd12ad9931a2954fc8f (diff) | |
sbi_ecall: Fix logical OR to be bitwise OR
Signed-off-by: Alistair Francis <[email protected]>
Diffstat (limited to 'lib')
| -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 7f3986d5..42123ba1 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 |
