refactor: Optimize the context switch overhead
[lunaix-os.git] / lunaix-os / kernel / asm / x86 / tss.c
index c871613d6e145f57eb70b6aa889425cbc07cad6c..603eca658db411c0a06f30d51ac7aee97dfd6c1e 100644 (file)
@@ -1,12 +1,7 @@
 #include <arch/x86/tss.h>
 #include <lunaix/common.h>
 #include <arch/x86/tss.h>
 #include <lunaix/common.h>
+#include <lunaix/process.h>
 
 volatile struct x86_tss _tss = { .link = 0,
                                  .esp0 = KSTACK_TOP,
 
 volatile struct x86_tss _tss = { .link = 0,
                                  .esp0 = KSTACK_TOP,
-                                 .ss0 = KDATA_SEG };
-
-void
-tss_update_esp(uint32_t esp0)
-{
-    _tss.esp0 = esp0;
-}
\ No newline at end of file
+                                 .ss0 = KDATA_SEG };
\ No newline at end of file