refactor: Optimize the context switch overhead
[lunaix-os.git] / lunaix-os / includes / arch / x86 / tss.h
index 6643344f9955019b1b71d1bbf2ea4b8d970954bd..931ff26a02738854b79dc90c15723dad18cb46e0 100644 (file)
@@ -1,16 +1,20 @@
 #ifndef __LUNAIX_TSS_H
 #define __LUNAIX_TSS_H
-#include <lunaix/types.h>
 
+#define tss_esp0_off 4
+
+#ifndef __ASM__
+#include <lunaix/types.h>
 struct x86_tss
 {
     u32_t link;
     u32_t esp0;
-    uint16_t ss0;
-    uint8_t __padding[94];
+    u16_t ss0;
+    u8_t __padding[94];
 } __attribute__((packed));
 
 void
 tss_update_esp(u32_t esp0);
+#endif
 
 #endif /* __LUNAIX_TSS_H */