Move keyboard code into kbd.c; add backspace handling.

This commit is contained in:
rsc 2007-08-28 03:28:13 +00:00
parent c1bfbfa2f7
commit f0d11fea82
4 changed files with 210 additions and 175 deletions

5
defs.h
View file

@ -19,7 +19,7 @@ void bwrite(struct buf*);
// console.c
void console_init(void);
void cprintf(char*, ...);
void kbd_intr(void);
void console_intr(int(*)(void));
void panic(char*) __attribute__((noreturn));
// exec.c
@ -67,6 +67,9 @@ char* kalloc(int);
void kfree(char*, int);
void kinit(void);
// kbd.c
void kbd_intr(void);
// lapic.c
int cpu(void);
extern volatile uint* lapic;