diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-09-08 22:14:26 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-09-08 22:14:26 +0200 |
| commit | db967b35d4c24000ef69283c2995010a08efb598 (patch) | |
| tree | be0a20b9a18c04429b85afe14abe97dfe4440752 /kernel/x86.h | |
| parent | 52f3e224fb4d3e05202134f7747fdee00a03ed61 (diff) | |
working on mouse driver
Diffstat (limited to 'kernel/x86.h')
| -rw-r--r-- | kernel/x86.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/x86.h b/kernel/x86.h index a7c1953..6942816 100644 --- a/kernel/x86.h +++ b/kernel/x86.h @@ -7,7 +7,7 @@ // http://wiki.osdev.org/Interrupt_Service_Routines // Black Magic: Strongly Discouraged! #define X86_IRQ_BEGIN asm("\ncli\npusha"); -#define X86_IRQ_END asm("mov $0x20, %al\nout %al, $0x20\npopa\nleave\nsti\niret"); +#define X86_IRQ_END asm("mov $0x20, %al\nout %al, $0x20\nmov $0x20, %al\noutb %al,$0xa0\npopa\nleave\nsti\niret"); void x86_outb(int port, uint8_t data); uint8_t x86_inb(int port); |
