ptos/amd64+hal: Add interrupt handling + P1 KPCR init

Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
2026-07-11 04:46:00 +00:00
parent 0f2d2b9ea5
commit 7cb153f98c
7 changed files with 335 additions and 3 deletions
+31
View File
@@ -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_ */