ptos: Initialize per-processor pool regions

Signed-off-by: Chloe M <chloe@mensia.org>
This commit is contained in:
2026-07-13 18:35:39 -04:00
parent 7a8fbe7025
commit 895521c510
6 changed files with 94 additions and 1 deletions
+7
View File
@@ -55,4 +55,11 @@ typedef struct {
POOL_SEGMENT Level[POOL_LEVEL_MAX];
} POOL_REGION;
/*
* Initialize a pool region
*
* @Region: Pool region to initialize
*/
VOID ExPoolRegionInit(POOL_REGION *Region);
#endif /* !_EX_POOL_H_ */
+11 -1
View File
@@ -10,15 +10,18 @@
#define _HAL_KPCR_H_ 1
#include <ptdef.h>
#include <ex/pool.h>
/*
* The kernel processor control region contains MI
* processor information.
*
* @Id: Logical processor ID assigned by us
* @Id: Logical processor ID assigned by us
* @PoolRegion: Allocator pool region
*/
typedef struct {
USHORT Id;
POOL_REGION PoolRegion;
} KPCR;
/*
@@ -28,6 +31,13 @@ typedef struct {
*/
VOID HalKpcrP1Init(KPCR *Kpcr);
/*
* Phase 2 processor initialization
*
* @Kpcr: KPCR of processor to initialize
*/
VOID HalKpcrP2Init(KPCR *Kpcr);
/*
* Obtain the KPCR of the current processor
* core