forked from Mirrors/opensbi
lib: Remove target_hart and hartid parameter from TIMER callbacks
The target_hart and hartid paramter of TIMER callbacks is not required because it always current hartid which can be obtained using sbi_current_hartid() API. Signed-off-by: Anup Patel <anup.patel@wdc.com>
This commit is contained in:
@@ -38,10 +38,10 @@ int sbi_ecall_handler(u32 hartid, ulong mcause,
|
||||
switch (regs->a7) {
|
||||
case SBI_ECALL_SET_TIMER:
|
||||
#if __riscv_xlen == 32
|
||||
sbi_timer_event_start(scratch, hartid,
|
||||
sbi_timer_event_start(scratch,
|
||||
(((u64)regs->a1 << 32) || (u64)regs->a0));
|
||||
#else
|
||||
sbi_timer_event_start(scratch, hartid, (u64)regs->a0);
|
||||
sbi_timer_event_start(scratch, (u64)regs->a0);
|
||||
#endif
|
||||
ret = 0;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user