Fix user apps randomly crashing (APIC, GDT layout, syscall entry)
All checks were successful
Build documentation / build-and-deploy (push) Successful in 23s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 23s
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
#include <sys/smp.h>
|
||||
|
||||
void do_sched (struct proc* proc) {
|
||||
__asm__ volatile ("cli");
|
||||
|
||||
thiscpu->tss.rsp0 = proc->pdata.kernel_stack;
|
||||
thiscpu->syscall_kernel_stack = proc->pdata.kernel_stack;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user