ptos/amd64+hal: Add interrupt handling + P1 KPCR init
Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* 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>
|
||||
|
||||
/*
|
||||
* The kernel processor control region contains MI
|
||||
* processor information.
|
||||
*
|
||||
* @Id: Logical processor ID assigned by us
|
||||
*/
|
||||
typedef struct {
|
||||
USHORT Id;
|
||||
} KPCR;
|
||||
|
||||
/*
|
||||
* Phase 1 processor initialization
|
||||
*
|
||||
* @Kpcr: KPCR of processor to initialize
|
||||
*/
|
||||
VOID HalKpcrP1Init(KPCR *Kpcr);
|
||||
|
||||
#endif /* !_HAL_KPCR_H_ */
|
||||
Reference in New Issue
Block a user