feat: irq interrupts; basic kb driver

This commit is contained in:
Karina
2025-12-27 20:54:19 +04:00
parent 664bf2e869
commit e644bc5577
10 changed files with 112 additions and 51 deletions
+5
View File
@@ -4,6 +4,11 @@
#ifndef IO_H
#define IO_H
#define MASTER_COMMAND 0x20
#define MASTER_DATA 0x21
#define SLAVE_COMMAND 0xA0
#define SLAVE_DATA 0xA1
static inline void outb(unsigned short port, unsigned char val) {
__asm__ volatile(
"outb %0, %1"
+8
View File
@@ -0,0 +1,8 @@
#ifndef KEYBOARD_H
#define KEYBOARD_H
#include "types.h"
void kb_handler(Registers *regs);
#endif
+4
View File
@@ -4,4 +4,8 @@
#ifndef PIC_H
#define PIC_H
#include "types.h"
u16 pic_remap();
#endif