stos/amd64: cpu: Add Local APIC driver stub

Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
Chloe M.
2026-06-26 19:56:41 +00:00
parent 0028d63608
commit 221cfc1893
5 changed files with 92 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
/*
* Copyright (c) 2026, Chloe M.
* Provided under the BSD-3 clause.
*
* Description: Local APIC driver
* Author: Chloe M.
*/
#ifndef _MACHINE_LAPIC_H_
#define _MACHINE_LAPIC_H_ 1
#include <stdef.h>
#include <hal/kpcr.h>
/*
* Initialize the Local APIC unit for the current
* processor.
*
* @Kpcr: KPCR of current processor
*/
VOID MdLapicInit(KPCR *Kpcr);
#endif /* !_MACHINE_LAPIC_H_ */
+7
View File
@@ -41,6 +41,13 @@ VOID HalKpcrP1Init(KPCR *Kpcr);
*/
VOID HalKpcrP2Init(KPCR *Kpcr);
/*
* Phase 3 initialization of processor
*
* @Kpcr: KPCR to initialize
*/
VOID HalKpcrP3Init(KPCR *Kpcr);
/*
* Obtain the KPCR for the current processor, it is never to
* be of a NULL value.