fix: the correct way to detect ahci LBA48 support
[lunaix-os.git] / lunaix-os / kernel / asm / x86 / tss.c
index 894610739e112a5db8c37fa9999c0e9b61108ec5..45c01ee21939ab76198649b667d97077583bc7d3 100644 (file)
@@ -1,13 +1,12 @@
 #include <arch/x86/tss.h>
 #include <lunaix/common.h>
 
-struct x86_tss _tss = {
-    .link = 0,
-    .esp0 = KSTACK_START,
-    .ss0  = KDATA_SEG
-};
+volatile struct x86_tss _tss = { .link = 0,
+                                 .esp0 = KSTACK_TOP,
+                                 .ss0 = KDATA_SEG };
 
-void tss_update(uint32_t ss0, uint32_t esp0) {
+void
+tss_update_esp(u32_t esp0)
+{
     _tss.esp0 = esp0;
-    _tss.ss0 = ss0;
 }
\ No newline at end of file