diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-03-27 09:38:34 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-03-28 11:02:55 +0300 |
commit | 0a28ea54dce4140593a55dd61606437595ebe53d (patch) | |
tree | 3e9d366dc83b1b33ca46cb8ce4c21e2be79c4222 /lib/sbi/sbi_ecall_replace.c | |
parent | ec0d80f5b4928ebedee8881be47f8c430db667af (diff) | |
download | opensbi-0a28ea54dce4140593a55dd61606437595ebe53d.tar.xz |
include: sbi_timer: Remove scratch parameter from most funcitons
This patch removes scratch parameter from most sbi_timer functions.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'lib/sbi/sbi_ecall_replace.c')
-rw-r--r-- | lib/sbi/sbi_ecall_replace.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/sbi/sbi_ecall_replace.c b/lib/sbi/sbi_ecall_replace.c index 7ef817d..88a6f08 100644 --- a/lib/sbi/sbi_ecall_replace.c +++ b/lib/sbi/sbi_ecall_replace.c @@ -14,7 +14,6 @@ #include <sbi/sbi_error.h> #include <sbi/sbi_hart.h> #include <sbi/sbi_ipi.h> -#include <sbi/sbi_scratch.h> #include <sbi/sbi_timer.h> #include <sbi/sbi_tlb.h> @@ -26,11 +25,9 @@ static int sbi_ecall_time_handler(unsigned long extid, unsigned long funcid, if (funcid == SBI_EXT_TIME_SET_TIMER) { #if __riscv_xlen == 32 - sbi_timer_event_start(sbi_scratch_thishart_ptr(), - (((u64)args[1] << 32) | (u64)args[0])); + sbi_timer_event_start((((u64)args[1] << 32) | (u64)args[0])); #else - sbi_timer_event_start(sbi_scratch_thishart_ptr(), - (u64)args[0]); + sbi_timer_event_start((u64)args[0]); #endif } else ret = SBI_ENOTSUPP; |