summaryrefslogtreecommitdiff
path: root/kernel/plic.c
diff options
context:
space:
mode:
authorRobert Morris <[email protected]>2022-08-09 15:11:25 -0400
committerFrans Kaashoek <[email protected]>2022-08-09 20:34:06 -0400
commit535f1797f0d849e77b49bebec0b45077fc5fde9a (patch)
treeb4bb98b3b0a1f70755763aa6973c4fb8ace183e7 /kernel/plic.c
parent62d8da06cd11f88163acd51fe2a27b0b005ef47f (diff)
downloadxv6-labs-535f1797f0d849e77b49bebec0b45077fc5fde9a.tar.gz
xv6-labs-535f1797f0d849e77b49bebec0b45077fc5fde9a.tar.bz2
xv6-labs-535f1797f0d849e77b49bebec0b45077fc5fde9a.zip
nothing much
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.