Initial checkin of toy OS project.
[os.git] / kernel / driver / keyboard.c
1 //+----------------------------------------------------------------------------
2 //
3 // File:     keyboard.c
4 //
5 // Module:   
6 //
7 // Synopsis: 
8 //
9 // Created:  sgasch  21 Oct 2003
10 //
11 //+----------------------------------------------------------------------------
12
13 #include "kernel.h"
14 #include "hal.h"
15 #include "rtl.h"
16 #include "interrupts.h"
17
18 void
19 HalKeyboardInt(INTERRUPT_STATE *is)
20 {
21     BYTE c;
22     BYTE k;
23
24     HalDisableInterrupts();
25
26     c = in(0x64);
27     HalIoDelay();
28     if (c & 1)
29     {
30         k = in(0x60);
31         HalIoDelay();
32         HalVideoPrint("Testing %x.\n\0", 1);
33     }
34
35     HalEnableInterrupts();
36 }
37