stos: ex: Add per-cpu pool allocator groundwork

Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
Chloe M.
2026-06-24 05:05:17 +00:00
parent bb4dd19bcf
commit 23746a2918
5 changed files with 174 additions and 2 deletions
+12 -2
View File
@@ -11,17 +11,20 @@
#include <stdef.h>
#include <machine/mcb.h>
#include <ex/pool.h>
/*
* The kernel processor control region contains MI
* information about the processor.
*
* @CoreId: Processor core ID assigned by us
* @Mcb: Machine-core block
* @CoreId: Processor core ID assigned by us
* @Mcb: Machine-core block
* @AllocPool: Memory-allocation pool
*/
typedef struct {
USHORT CoreId;
MCB Mcb;
MEMORY_POOL AllocPool;
} KPCR;
/*
@@ -31,4 +34,11 @@ typedef struct {
*/
VOID HalKpcrP1Init(KPCR *Kpcr);
/*
* Phase 2 initialization of processor
*
* @Kpcr: KPCR to initialize
*/
VOID HalKpcrP2Init(KPCR *Kpcr);
#endif /* !_HAL_KPCR_H_ */