diff options
author | Robert Morris <[email protected]> | 2020-07-20 06:59:26 -0400 |
---|---|---|
committer | Frans Kaashoek <[email protected]> | 2020-08-10 11:19:10 -0400 |
commit | 27057bc9b467db64a3de600f27d6fa3239a04c88 (patch) | |
tree | 51f344b42031f0a5a41fcf08d00694bb13f10997 /kernel/plic.c | |
parent | 1e72d5ca087985938589ce509ace4914039860d3 (diff) | |
download | xv6-labs-27057bc9b467db64a3de600f27d6fa3239a04c88.tar.gz xv6-labs-27057bc9b467db64a3de600f27d6fa3239a04c88.tar.bz2 xv6-labs-27057bc9b467db64a3de600f27d6fa3239a04c88.zip |
interrupt-driven uart output, hopefully a nice example for teaching.
Diffstat (limited to 'kernel/plic.c')
-rw-r--r-- | kernel/plic.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/plic.c b/kernel/plic.c index eed8316..5acba39 100644 --- a/kernel/plic.c +++ b/kernel/plic.c @@ -33,7 +33,6 @@ int plic_claim(void) { int hart = cpuid(); - //int irq = *(uint32*)(PLIC + 0x201004); int irq = *(uint32*)PLIC_SCLAIM(hart); return irq; } @@ -43,6 +42,5 @@ void plic_complete(int irq) { int hart = cpuid(); - //*(uint32*)(PLIC + 0x201004) = irq; *(uint32*)PLIC_SCLAIM(hart) = irq; } |