Added basic IPC syscalls

This commit is contained in:
2022-08-17 02:47:41 -05:00
parent bfb56fcbb3
commit 0ae4f7995d
5 changed files with 217 additions and 68 deletions

View File

@@ -4,6 +4,13 @@
.type isr_syscall, @function
isr_syscall:
cli
mov %esp, %ebp
mov 8(%ebp), %esi
push %esi
mov 12(%ebp), %esi
push %esi
mov (%ebp), %esi
push %esi
push %edx
push %ecx
push %ebx
@@ -14,7 +21,7 @@ isr_syscall:
mov %ax, %fs
mov %ax, %gs
call do_syscall
add $0x10, %esp
mov %ebp, %esp
mov $0x23, %cx
mov %cx, %ds
mov %cx, %es