ptos/amd64: ps: Add context switching stub

Signed-off-by: Chloe M <chloe@mensia.org>
This commit is contained in:
2026-07-14 16:40:06 -04:00
parent 093061f2ad
commit a029f0de5d
6 changed files with 65 additions and 0 deletions
+10
View File
@@ -9,11 +9,14 @@
#include <ptdef.h>
#include <ke/bpal.h>
#include <ke/bugcheck.h>
#include <ke/sched.h>
#include <ex/trace.h>
#include <ps/process.h>
#include <mm/pm.h>
#include <mm/vm.h>
#include <hal/prim.h>
#include <hal/serial.h>
#include <hal/thread.h>
#include <hal/kpcr.h>
#include <drivers/bootvid/fbio.h>
#include <drivers/acpi/acpi.h>
@@ -95,4 +98,11 @@ KiKernelInit(VOID)
/* Initialize the root process */
InitializeRootProcess();
/* Prime the scheduler timer */
HalPrimeThreadTimer(SCHED_MIN_QUANTUM);
for (;;) {
HalCpuSpinWait();
}
}