Rev 206 | Rev 501 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 206 | Rev 235 | ||
---|---|---|---|
Line 34... | Line 34... | ||
34 | #include <arch.h> |
34 | #include <arch.h> |
35 | #include <print.h> |
35 | #include <print.h> |
36 | 36 | ||
37 | /* |
37 | /* |
38 | * i8042 processor driver. |
38 | * i8042 processor driver. |
39 | * Its very essential function is enabling the A20. |
- | |
40 | */ |
39 | */ |
41 | 40 | ||
42 | void i8042_init(void) |
41 | void i8042_init(void) |
43 | { |
42 | { |
44 | /* A20: deadly if not enabled */ |
- | |
45 | outb(0x64,0xd1); |
- | |
46 | outb(0x60,0xdf); |
- | |
47 | - | ||
48 | trap_register(VECTOR_KBD, i8042_interrupt); |
43 | trap_register(VECTOR_KBD, i8042_interrupt); |
49 | } |
44 | } |
50 | 45 | ||
51 | void i8042_interrupt(__u8 n, __native stack[]) |
46 | void i8042_interrupt(__u8 n, __native stack[]) |
52 | { |
47 | { |