made the jump to ring 3

This commit is contained in:
2026-06-16 21:53:38 -04:00
parent 171cbd21bc
commit 0cb7311911
4 changed files with 35 additions and 278 deletions

View File

@@ -13,4 +13,28 @@ enable_interrupts:
.global io_wait
io_wait:
outb %al, $0x80
ret
ret
.global liftoff
liftoff:
cli
mov 4(%esp), %ecx
mov 8(%esp), %ebx
mov $0x23, %ax
mov %ax, %ds
mov %ax, %es
mov %ax, %fs
mov %ax, %gs
push $0x23
push %ebx
push $0x202
push $0x1B
push %ecx
xor %eax, %eax
xor %edx, %edx
iret