summaryrefslogtreecommitdiff
path: root/kernel/plic.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/plic.c')
-rw-r--r--kernel/plic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/plic.c b/kernel/plic.c
index 5acba39..d4fd122 100644
--- a/kernel/plic.c
+++ b/kernel/plic.c
@@ -21,7 +21,8 @@ plicinithart(void)
{
int hart = cpuid();
- // set uart's enable bit for this hart's S-mode.
+ // set enable bits for this hart's S-mode
+ // for the uart and virtio disk.
*(uint32*)PLIC_SENABLE(hart)= (1 << UART0_IRQ) | (1 << VIRTIO0_IRQ);
// set this hart's S-mode priority threshold to 0.