diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2021-05-01 11:37:52 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2021-05-01 11:37:52 +0200 |
| commit | 4f08ba2b1d0ad7ea90d4d97a483b56b891b9c902 (patch) | |
| tree | eeba5dd2a23a346234a1ceb6d6c7b135a7344af3 /src/core/scheduler_asm.S | |
| parent | fb69c7b05894cee2b8bb691ead948798a0674059 (diff) | |
Creating scheduler, debug paging
Diffstat (limited to 'src/core/scheduler_asm.S')
| -rw-r--r-- | src/core/scheduler_asm.S | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/core/scheduler_asm.S b/src/core/scheduler_asm.S new file mode 100644 index 0000000..fc8bc50 --- /dev/null +++ b/src/core/scheduler_asm.S @@ -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 |
