5 #include <arch/exception.h>
14 for (
int i = 0;
mask; i++) {
29 *(
HLS()->timecmp) = when;
33 #if CONFIG(CONSOLE_SERIAL)
40 static uintptr_t sbi_console_getchar(
void)
67 #if __riscv_xlen == 32
73 #if CONFIG(CONSOLE_SERIAL)
75 ret = sbi_console_putchar(
arg0);
78 ret = sbi_console_getchar();
104 write_csr(mepc, read_csr(mepc) + 4);
void set_msip(int hartid, int val)
static struct dramc_channel const ch[2]
unsigned char uart_rx_byte(unsigned int idx)
void uart_tx_byte(unsigned int idx, unsigned char data)
static uintptr_t send_ipi(uintptr_t *pmask, intptr_t type)
void handle_sbi(trapframe *tf)
static uintptr_t sbi_clear_ipi(void)
static uintptr_t sbi_set_timer(uint64_t when)
#define SBI_CONSOLE_PUTCHAR
#define SBI_REMOTE_SFENCE_VMA_ASID
#define IPI_SFENCE_VMA_ASID
#define SBI_REMOTE_FENCE_I
#define SBI_REMOTE_SFENCE_VMA
#define SBI_CONSOLE_GETCHAR
unsigned long long uint64_t