diff options
author | Marvin Borner | 2019-10-31 00:49:00 +0100 |
---|---|---|
committer | Marvin Borner | 2019-10-31 00:49:00 +0100 |
commit | 7d5a9792e57b4088cce5cc97837eb04016b57a4d (patch) | |
tree | 11eac7aa426f3cb597a3ebd2b08cef0d99e9c0cf /src/kernel/gdt/gdt.asm | |
parent | 91439462f5ad77eb128658229724c9a3660a2068 (diff) |
Implemented basic syscalls and user mode
Doesn't completely work right now
Diffstat (limited to 'src/kernel/gdt/gdt.asm')
-rw-r--r-- | src/kernel/gdt/gdt.asm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/kernel/gdt/gdt.asm b/src/kernel/gdt/gdt.asm index c2128e4..6cb2b7d 100644 --- a/src/kernel/gdt/gdt.asm +++ b/src/kernel/gdt/gdt.asm @@ -11,4 +11,10 @@ gdt_flush: mov ss, ax jmp 0x08:flush2 ; Code segment offset flush2: - ret ; Returns to C code
\ No newline at end of file + ret ; Returns to C code + +global tss_flush +tss_flush: + mov ax, 0x2B + ltr ax + ret
\ No newline at end of file |