PLIC 30 kernel/memlayout.h #define PLIC_PRIORITY (PLIC + 0x0) PLIC 31 kernel/memlayout.h #define PLIC_PENDING (PLIC + 0x1000) PLIC 32 kernel/memlayout.h #define PLIC_SENABLE(hart) (PLIC + 0x2080 + (hart)*0x100) PLIC 33 kernel/memlayout.h #define PLIC_SPRIORITY(hart) (PLIC + 0x201000 + (hart)*0x2000) PLIC 34 kernel/memlayout.h #define PLIC_SCLAIM(hart) (PLIC + 0x201004 + (hart)*0x2000) PLIC 15 kernel/plic.c *(uint32*)(PLIC + UART0_IRQ*4) = 1; PLIC 16 kernel/plic.c *(uint32*)(PLIC + VIRTIO0_IRQ*4) = 1; PLIC 34 kernel/vm.c kvmmap(kpgtbl, PLIC, PLIC, 0x4000000, PTE_R | PTE_W);