1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2024-10-30 12:03:52 -04:00

Add function "tss_flush"

This commit is contained in:
Braiden Vasco 2017-11-05 15:29:44 +00:00
parent 1b8a637016
commit 285affc212
3 changed files with 11 additions and 1 deletions

View file

@ -18,7 +18,7 @@ OBJS += kprintf.c.o
OBJS += protected.c.o protected.asm.cpp.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 OBJS += interrupt.asm.cpp.o

8
arch/tss.asm Normal file
View file

@ -0,0 +1,8 @@
#include "config.h"
[GLOBAL tss_flush]
tss_flush:
mov ax, GDT_TSS_SELECTOR
ltr ax
ret

View file

@ -5,4 +5,6 @@
void tss_write_to_gdt(const struct KernelMQ_Info *kinfo, void *gdt_entry); void tss_write_to_gdt(const struct KernelMQ_Info *kinfo, void *gdt_entry);
void tss_flush();
#endif #endif