stos: ex: Add per-cpu pool allocator groundwork
Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
@@ -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_ */
|
||||
|
||||
Reference in New Issue
Block a user