From 7d8bfdcbe306f7f407a816a4f032cf1780d8c215 Mon Sep 17 00:00:00 2001 From: Robert Morris Date: Tue, 9 Aug 2022 15:11:25 -0400 Subject: nothing much --- kernel/plic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'kernel/plic.c') 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. -- cgit v1.2.3