Creating scheduler, debug paging
This commit is contained in:
parent
fb69c7b058
commit
4f08ba2b1d
16 changed files with 227 additions and 88 deletions
src/core
27
src/core/scheduler_asm.S
Normal file
27
src/core/scheduler_asm.S
Normal file
|
@ -0,0 +1,27 @@
|
|||
.globl switch
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
switch:
|
||||
|
||||
|
||||
mov $0x23, %ax
|
||||
mov %ax, %ds
|
||||
mov %ax, %es
|
||||
mov %ax, %fs
|
||||
mov %ax, %gs
|
||||
|
||||
push $0x23 #
|
||||
push $0x80
|
||||
pushf
|
||||
pop %rax
|
||||
#orl $0x200, %%eax
|
||||
mov $0xffffbfff, %rbx
|
||||
and %rbx, %rax
|
||||
push %rax
|
||||
push $0x1B
|
||||
push $0x0
|
||||
|
||||
iretq
|
Loading…
Add table
Add a link
Reference in a new issue