mirror of
https://github.com/tailix/kernel.git
synced 2024-11-20 11:16:10 -05:00
Add function "tss_flush"
This commit is contained in:
parent
1b8a637016
commit
285affc212
3 changed files with 11 additions and 1 deletions
|
@ -18,7 +18,7 @@ OBJS += kprintf.c.o
|
|||
|
||||
OBJS += protected.c.o protected.asm.cpp.o
|
||||
|
||||
OBJS += tss.c.o
|
||||
OBJS += tss.c.o tss.asm.cpp.o
|
||||
|
||||
OBJS += interrupt.asm.cpp.o
|
||||
|
||||
|
|
8
arch/tss.asm
Normal file
8
arch/tss.asm
Normal file
|
@ -0,0 +1,8 @@
|
|||
#include "config.h"
|
||||
|
||||
[GLOBAL tss_flush]
|
||||
|
||||
tss_flush:
|
||||
mov ax, GDT_TSS_SELECTOR
|
||||
ltr ax
|
||||
ret
|
|
@ -5,4 +5,6 @@
|
|||
|
||||
void tss_write_to_gdt(const struct KernelMQ_Info *kinfo, void *gdt_entry);
|
||||
|
||||
void tss_flush();
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue