From 457a2117706cdaee34f894e67c89da7bf29f6143 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Mon, 12 Apr 2021 10:28:04 +0200 Subject: Refactoring --- src/int/8042.c | 16 ------------- src/int/8042.h | 64 --------------------------------------------------- src/int/idt.c | 39 ------------------------------- src/int/idt.h | 32 -------------------------- src/int/int.S | 72 ---------------------------------------------------------- src/int/pic.c | 28 ----------------------- src/int/pic.h | 9 -------- 7 files changed, 260 deletions(-) delete mode 100644 src/int/8042.c delete mode 100644 src/int/8042.h delete mode 100644 src/int/idt.c delete mode 100644 src/int/idt.h delete mode 100644 src/int/int.S delete mode 100644 src/int/pic.c delete mode 100644 src/int/pic.h (limited to 'src/int') diff --git a/src/int/8042.c b/src/int/8042.c deleted file mode 100644 index 5446f11..0000000 --- a/src/int/8042.c +++ /dev/null @@ -1,16 +0,0 @@ -#include "8042.h" -#include "core/framebuffer.h" -#include "core/asm.h" - -DEFINE_AZERTY; - -void _8042_keypress(){ - u8 data; - do { - inb(0x64,data); - } - while((data&0x01) == 0); - inb(0x60,data); - if(data<0x80) - putchar(AZERTY[data]); -} diff --git a/src/int/8042.h b/src/int/8042.h deleted file mode 100644 index 5e61ffd..0000000 --- a/src/int/8042.h +++ /dev/null @@ -1,64 +0,0 @@ -#ifndef _8042_H -#define _8042_H - -#include "core/types.h" - -void _8042_keypress(); - -#define DEFINE_AZERTY char AZERTY[]={\ - '\0',\ - '\0',\ - '&',\ - '\0',\ - '"',\ - '\'',\ - '(',\ - '-',\ - '\0',\ - '_',/* 10 */\ - '\0',\ - '\0',\ - ')',\ - '=',\ - '\0',\ - '\t',\ - 'a',\ - 'z',\ - 'e',\ - 'r',\ - 't',\ - 'y',\ - 'u',\ - 'i',\ - 'o',\ - 'p',\ - '^',\ - '$',\ - '\0',\ - '\0',\ - 'q',/* 0x1E (30) */\ - 's',\ - 'd',\ - 'f',\ - 'g',\ - 'h',\ - 'j',\ - 'k',\ - 'l',\ - 'm',\ - '\0',\ - '\0',\ - '\0',\ - '*',\ - 'w',\ - 'x',\ - 'c',\ - 'v',\ - 'b',/* 0x30 (48) */\ - 'n',\ - ',',\ - ';',\ - ':',\ -} - -#endif \ No newline at end of file diff --git a/src/int/idt.c b/src/int/idt.c deleted file mode 100644 index e3e71e8..0000000 --- a/src/int/idt.c +++ /dev/null @@ -1,39 +0,0 @@ -#include "idt.h" - -struct IDT_REGISTER IDTR={ - 8*IDT_MAX_ENTRY, - 0x0 -}; - -// Interrupt functions (cf int.S) -extern u32 -INT_DEFAULT, -INT_PAGE_FAULT, -INT_CLOCK, -INT_KEYPRESS, -INT_SYSCALL; - - -void idt_init(){ - // Map first default 32 entries - for(int i=0;i