diff options
Diffstat (limited to 'kernel/plic.c')
-rw-r--r-- | kernel/plic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/plic.c b/kernel/plic.c index cc9a97e..b569492 100644 --- a/kernel/plic.c +++ b/kernel/plic.c @@ -13,7 +13,7 @@ plicinit(void) { // set desired IRQ priorities non-zero (otherwise disabled). *(uint32*)(PLIC + UART0_IRQ*4) = 1; - *(uint32*)(PLIC + VIRTIO_IRQ*4) = 1; + *(uint32*)(PLIC + VIRTIO0_IRQ*4) = 1; } void @@ -22,7 +22,7 @@ plicinithart(void) int hart = cpuid(); // set uart's enable bit for this hart's S-mode. - *(uint32*)PLIC_SENABLE(hart)= (1 << UART0_IRQ) | (1 << VIRTIO_IRQ); + *(uint32*)PLIC_SENABLE(hart)= (1 << UART0_IRQ) | (1 << VIRTIO0_IRQ); // set this hart's S-mode priority threshold to 0. *(uint32*)PLIC_SPRIORITY(hart) = 0; |