ptos: kpcr: Store current thread per processor

Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
2026-07-14 22:13:39 +00:00
parent a33ae9b426
commit 134a214bde
+3
View File
@@ -11,6 +11,7 @@
#include <ptdef.h>
#include <ex/pool.h>
#include <ps/thread.h>
#include <ke/sched.h>
#include <machine/mcb.h>
@@ -21,12 +22,14 @@
* @Id: Logical processor ID assigned by us
* @PoolRegion: Allocator pool region
* @SchedQueue: Per-core scheduler queue
* @CurrentThread: Currently running thread
* @Mcb: Machine core block
*/
typedef struct {
USHORT Id;
POOL_REGION PoolRegion;
SCHED_QUEUE SchedQueue;
THREAD *CurrentThread;
MCB Mcb;
} KPCR;