interrupt, smp: fix GDT code/data segment order, fix GDT size

This commit is contained in:
2021-11-14 17:31:11 +08:00
parent db6959a932
commit 54f8aa54c1
6 changed files with 27 additions and 21 deletions

View File

@ -72,7 +72,7 @@ smp_thread_ID smp_thread_Start(void *entry, const smp_thread_Arguments *args, un
t->waitCondition = NULL;
t->state.cs = GDT_EXEC_SELECTOR;
t->state.ss = 0;
t->state.ss = GDT_DATA_SELECTOR;
t->state.rip = (uint64_t)__smp_thread_EntryPoint;
t->state.rax = (uint64_t)entry;