X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/86a9cfeadbbe180abf6c8bd8c64c86957fdacfeb..946c3fdd31300074cc78841795bd47af908ddddb:/lunaix-os/kernel/asm/x86/tss.c?ds=sidebyside diff --git a/lunaix-os/kernel/asm/x86/tss.c b/lunaix-os/kernel/asm/x86/tss.c index c09db9e..603eca6 100644 --- a/lunaix-os/kernel/asm/x86/tss.c +++ b/lunaix-os/kernel/asm/x86/tss.c @@ -1,12 +1,7 @@ #include #include +#include -struct x86_tss _tss = { - .link = 0, - .esp0 = KSTACK_START, - .ss0 = KDATA_SEG -}; - -void tss_update_esp(uint32_t esp0) { - _tss.esp0 = esp0; -} \ No newline at end of file +volatile struct x86_tss _tss = { .link = 0, + .esp0 = KSTACK_TOP, + .ss0 = KDATA_SEG }; \ No newline at end of file