Files
PluralTechnology/service/ptos/head/hal/kpcr.h
T
2026-07-13 18:35:39 -04:00

48 lines
851 B
C

/*
* Copyright (c) 2026, Chloe M.
* Provided under the BSD-3 clause.
*
* Description: Kernel processor control region
* Author: Chloe M.
*/
#ifndef _HAL_KPCR_H_
#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
* @PoolRegion: Allocator pool region
*/
typedef struct {
USHORT Id;
POOL_REGION PoolRegion;
} KPCR;
/*
* Phase 1 processor initialization
*
* @Kpcr: KPCR of processor to initialize
*/
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
*/
KPCR *HalKpcrCurrent(VOID);
#endif /* !_HAL_KPCR_H_ */