[][src]Module kernel::arch

RISC-V related functions

Functions

__sync_lock_release
__sync_lock_test_and_set
__sync_synchronize
build_satp

Build satp value from mode, asid and page table base addr

hart_id
intr_get

Check if interrupt is enabled

intr_off

Turn off interrupt

intr_on

Enable interrupt

r_satp
r_sip
r_sstatus
sp
time

Get current time from MMIO

w_ra
w_sip
w_sstatus
wait_forever