diff options
author | Benji Dial <benji@benjidial.net> | 2024-01-13 19:14:58 -0500 |
---|---|---|
committer | Benji Dial <benji@benjidial.net> | 2024-01-13 19:14:58 -0500 |
commit | e9898e829b8df7c0b16faec1ce490369c53fd78e (patch) | |
tree | 0959298e7af3e5b9e40ac4d6dec0cec089105eac /kernel/syscall.asm | |
parent | 4130562b1555cabe441efe9420cebe12e7ed8d39 (diff) | |
download | hilbert-os-e9898e829b8df7c0b16faec1ce490369c53fd78e.tar.gz |
minimal cpu exception handling
Diffstat (limited to 'kernel/syscall.asm')
-rw-r--r-- | kernel/syscall.asm | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/kernel/syscall.asm b/kernel/syscall.asm index 56be8a4..e4e0d77 100644 --- a/kernel/syscall.asm +++ b/kernel/syscall.asm @@ -1,45 +1,9 @@ bits 64 -global load_gdt_and_idt global start_user_mode -section .rodata - -;0x28 picked to align with limine choice -;0x28 - kernel code -;0x30 - kernel data -;0x38 - user data -;0x40 - user code - -gdtr: - dw 0x47 - dq gdt - -gdt: - dq 0 - dq 0 - dq 0 - dq 0 - dq 0 - dq 0x00209b0000000000 - dq 0x00009b0000000000 - dq 0x0000fb0000000000 - dq 0x0020fb0000000000 - -idtr: - dw 4095 - dq idt - -idt: - times 256 - ($ - idt) / 16 dq 0 - section .text -load_gdt_and_idt: - lgdt [gdtr] - lidt [idtr] - ret - extern syscall_encode_color encode_color_syscall: |