summaryrefslogtreecommitdiff
path: root/kernel/driver/keyboard.c
blob: 7410171940e22a65f2d3c723e29d2b0daf34aca3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//+----------------------------------------------------------------------------
//
// File:     keyboard.c
//
// Module:   
//
// Synopsis: 
//
// Created:  sgasch  21 Oct 2003
//
//+----------------------------------------------------------------------------

#include "kernel.h"
#include "hal.h"
#include "rtl.h"
#include "interrupts.h"

void
HalKeyboardInt(INTERRUPT_STATE *is)
{
    BYTE c;
    BYTE k;

    HalDisableInterrupts();

    c = in(0x64);
    HalIoDelay();
    if (c & 1)
    {
        k = in(0x60);
        HalIoDelay();
        HalVideoPrint("Testing %x.\n\0", 1);
    }

    HalEnableInterrupts();
}