ptos: kpcr: Store current thread per processor
Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
@@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
#include <ptdef.h>
|
#include <ptdef.h>
|
||||||
#include <ex/pool.h>
|
#include <ex/pool.h>
|
||||||
|
#include <ps/thread.h>
|
||||||
#include <ke/sched.h>
|
#include <ke/sched.h>
|
||||||
#include <machine/mcb.h>
|
#include <machine/mcb.h>
|
||||||
|
|
||||||
@@ -21,12 +22,14 @@
|
|||||||
* @Id: Logical processor ID assigned by us
|
* @Id: Logical processor ID assigned by us
|
||||||
* @PoolRegion: Allocator pool region
|
* @PoolRegion: Allocator pool region
|
||||||
* @SchedQueue: Per-core scheduler queue
|
* @SchedQueue: Per-core scheduler queue
|
||||||
|
* @CurrentThread: Currently running thread
|
||||||
* @Mcb: Machine core block
|
* @Mcb: Machine core block
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
typedef struct {
|
||||||
USHORT Id;
|
USHORT Id;
|
||||||
POOL_REGION PoolRegion;
|
POOL_REGION PoolRegion;
|
||||||
SCHED_QUEUE SchedQueue;
|
SCHED_QUEUE SchedQueue;
|
||||||
|
THREAD *CurrentThread;
|
||||||
MCB Mcb;
|
MCB Mcb;
|
||||||
} KPCR;
|
} KPCR;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user