summaryrefslogtreecommitdiff
path: root/console.c
diff options
context:
space:
mode:
authorrsc <rsc>2007-08-28 19:04:36 +0000
committerrsc <rsc>2007-08-28 19:04:36 +0000
commiteb52c7de1dea182cc3519dc07c62b7f5fe2dfb15 (patch)
tree89746e7d94fc184b4e0d1a0deef3c9c93560f2f7 /console.c
parent5516be1fed10ac87848668964c495266d02ae915 (diff)
downloadxv6-labs-eb52c7de1dea182cc3519dc07c62b7f5fe2dfb15.tar.gz
xv6-labs-eb52c7de1dea182cc3519dc07c62b7f5fe2dfb15.tar.bz2
xv6-labs-eb52c7de1dea182cc3519dc07c62b7f5fe2dfb15.zip
comments; rename irq_ to pic_
Diffstat (limited to 'console.c')
-rw-r--r--console.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/console.c b/console.c
index 22b4b23..236beaa 100644
--- a/console.c
+++ b/console.c
@@ -1,3 +1,7 @@
+// Console input and output.
+// Input is from the keyboard only.
+// Output is written to the screen and the printer port.
+
#include "types.h"
#include "defs.h"
#include "param.h"
@@ -278,7 +282,7 @@ console_init(void)
devsw[CONSOLE].read = console_read;
//use_console_lock = 1;
- irq_enable(IRQ_KBD);
+ pic_enable(IRQ_KBD);
ioapic_enable(IRQ_KBD, 0);
}