X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/86a9cfeadbbe180abf6c8bd8c64c86957fdacfeb..0e1309c02f0703c050df09b71346dab60fc6df87:/lunaix-os/kernel/asm/x86/tss.c diff --git a/lunaix-os/kernel/asm/x86/tss.c b/lunaix-os/kernel/asm/x86/tss.c index c09db9e..c871613 100644 --- a/lunaix-os/kernel/asm/x86/tss.c +++ b/lunaix-os/kernel/asm/x86/tss.c @@ -1,12 +1,12 @@ #include #include -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_esp(uint32_t esp0) { +void +tss_update_esp(uint32_t esp0) +{ _tss.esp0 = esp0; } \ No newline at end of file