diff options
author | Robert Morris <[email protected]> | 2022-08-09 15:11:25 -0400 |
---|---|---|
committer | Frans Kaashoek <[email protected]> | 2022-08-09 20:34:06 -0400 |
commit | 535f1797f0d849e77b49bebec0b45077fc5fde9a (patch) | |
tree | b4bb98b3b0a1f70755763aa6973c4fb8ace183e7 /kernel/plic.c | |
parent | 62d8da06cd11f88163acd51fe2a27b0b005ef47f (diff) | |
download | xv6-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.c | 3 |
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. |