diff options
author | Danny Holman <dholman@gymli.org> | 2022-03-22 13:43:54 -0500 |
---|---|---|
committer | Danny Holman <dholman@gymli.org> | 2022-03-22 13:43:54 -0500 |
commit | 84332707f1df86c25c1f94883044c5e8fe2e20a3 (patch) | |
tree | 8f047d248c89899b9b45575f63feddf360854946 /arch/i386/kernel | |
parent | 84fe944adc002bc6e8844e9ac9c292b9d7dd3f92 (diff) |
arch: i386: refactor the system call API
The x86 system call/interrupt handlers should be refactored to be more
readable.
Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'arch/i386/kernel')
-rw-r--r-- | arch/i386/kernel/syscall.c | 4 | ||||
-rw-r--r-- | arch/i386/kernel/tty.c | 3 |
2 files changed, 1 insertions, 6 deletions
diff --git a/arch/i386/kernel/syscall.c b/arch/i386/kernel/syscall.c index 570f0de..18f36ad 100644 --- a/arch/i386/kernel/syscall.c +++ b/arch/i386/kernel/syscall.c @@ -9,7 +9,6 @@ void syscall_dispatch(struct isr_frame *frame) { syscall_handlers[frame->eax](frame); else kprintf("Error: Invalid system call number: %d\n", frame->eax); - __asm__ volatile("cli;hlt"); } void register_syscall(void *handler(struct isr_frame*), int num) { @@ -34,9 +33,6 @@ void dump_reg(struct isr_frame *frame) { kprintf("\tEDX = %x\n", frame->edx); kprintf("\tESI = %x\n", frame->esi); kprintf("\tEDI = %x\n", frame->edi); - kprintf("\tESP = %x\n", frame->esp); - kprintf("\tEBP = %x\n", frame->ebp); kprintf("\tEIP = %x\n", frame->eip); - kprintf("\tEFLAGS = %x\n", frame->eflags); kprintf("Current code selector: %d\n", frame->cs); } diff --git a/arch/i386/kernel/tty.c b/arch/i386/kernel/tty.c index f929408..1e2e6b5 100644 --- a/arch/i386/kernel/tty.c +++ b/arch/i386/kernel/tty.c @@ -6,8 +6,7 @@ static const size_t VGA_WIDTH = 80; static const size_t VGA_HEIGHT = 25; -//static uint16_t *const VGA_MEMORY = (uint16_t*)0xC03FF000; -static uint16_t *const VGA_MEMORY = (uint16_t*)0xB8000; +static uint16_t *const VGA_MEMORY = (uint16_t*)0xC03FF000; static size_t terminal_row; static size_t terminal_column; |