From ed3da12bb378d82878fff1d50e5e9e7af3d7265d Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 4 Dec 2019 20:38:10 +0100 Subject: More-working syscall logic (parameters work!) --- src/kernel/interrupts/idt.asm | 37 +------------------------------------ 1 file changed, 1 insertion(+), 36 deletions(-) (limited to 'src/kernel/interrupts/idt.asm') diff --git a/src/kernel/interrupts/idt.asm b/src/kernel/interrupts/idt.asm index f30ead1..cec0e95 100644 --- a/src/kernel/interrupts/idt.asm +++ b/src/kernel/interrupts/idt.asm @@ -3,39 +3,4 @@ global idt_load extern idtp idt_load: lidt [idtp] - ret - -global idt_syscall -extern syscall_handler -idt_syscall: - push ds - push es - push fs - push gs - pushad - - push ecx - push edx - push esi - push edi - push eax - - mov ax, 0x10 - mov ds, ax - mov es, ax - mov fs, ax - mov gs, ax - - call syscall_handler - - lea ebx, [5 * 4] - add esp, ebx - - mov dword [esp + (7*4)], eax - - popad - pop gs - pop fs - pop es - pop ds - iret + ret \ No newline at end of file -- cgit v1.2.3