diff options
author | Andrew Waterman <waterman@cs.berkeley.edu> | 2015-03-12 23:06:07 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@cs.berkeley.edu> | 2015-03-12 23:06:52 -0700 |
commit | 438823e1308b219aa7daf11cf86e3028e9b8667d (patch) | |
tree | 8f1a6b40e8d4fa7f421f869f20d7d4ee126b096b /pk/sbi_entry.S | |
parent | 6517fe26a2a0c89c3112f4a383c601572c71d64a (diff) | |
download | pk-438823e1308b219aa7daf11cf86e3028e9b8667d.zip pk-438823e1308b219aa7daf11cf86e3028e9b8667d.tar.gz pk-438823e1308b219aa7daf11cf86e3028e9b8667d.tar.bz2 |
Use hcall instead of mcall for sbi calls
Diffstat (limited to 'pk/sbi_entry.S')
-rw-r--r-- | pk/sbi_entry.S | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/pk/sbi_entry.S b/pk/sbi_entry.S index 33e998a..7715243 100644 --- a/pk/sbi_entry.S +++ b/pk/sbi_entry.S @@ -1,5 +1,5 @@ #include "encoding.h" -#include "mcall.h" +#include "hcall.h" .section .sbi,"ax",@progbits .align RISCV_PGSHIFT @@ -12,8 +12,8 @@ sbi_base: # hart_id .align 4 - li a0, MCALL_HART_ID - mcall + li a0, HCALL_HART_ID + hcall ret # num_harts @@ -28,22 +28,22 @@ sbi_base: # console_putchar .align 4 mv a1, a0 - li a0, MCALL_CONSOLE_PUTCHAR - mcall + li a0, HCALL_CONSOLE_PUTCHAR + hcall ret # send_device_request .align 4 mv a1, a0 - li a0, MCALL_SEND_DEVICE_REQUEST - mcall + li a0, HCALL_SEND_DEVICE_REQUEST + hcall ret # receive_device_response .align 4 mv a1, a0 - li a0, MCALL_RECEIVE_DEVICE_RESPONSE - mcall + li a0, HCALL_RECEIVE_DEVICE_RESPONSE + hcall ret # send ipi @@ -53,9 +53,9 @@ sbi_base: # end of SBI trampolines - .globl do_mcall -do_mcall: - mcall + .globl do_hcall +do_hcall: + hcall ret .align RISCV_PGSHIFT |