550W Document
550W, a high-end OS
plic.h
浏览该文件的文档.
1 #pragma once
2 
3 #define UART_IRQ 10
4 #define DISK_IRQ 1
5 
6 void d_plic_init(void);
7 
8 // enable PLIC for each hart
9 void d_plic_init_hart(void);
10 
11 // ask PLIC what interrupt we should serve
12 int d_plic_claim(void);
13 
14 // tell PLIC that we've served this IRQ
15 void d_plic_complete(int irq);
void d_plic_init_hart(void)
Definition: plic.c:25
int d_plic_claim(void)
Definition: plic.c:34
void d_plic_init(void)
Definition: plic.c:20
void d_plic_complete(int irq)
Definition: plic.c:42