ptos: Initialize per-processor pool regions
Signed-off-by: Chloe M <chloe@mensia.org>
This commit is contained in:
@@ -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_ */
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user