X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/86a9cfeadbbe180abf6c8bd8c64c86957fdacfeb..474a5dd282586c31abfefc7953f148acdc226731:/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..74dad78 100644 --- a/lunaix-os/kernel/asm/x86/tss.c +++ b/lunaix-os/kernel/asm/x86/tss.c @@ -1,12 +1,10 @@ #include #include -struct x86_tss _tss = { - .link = 0, - .esp0 = KSTACK_START, - .ss0 = KDATA_SEG -}; +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