made the jump to ring 3
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user