stos/amd64: cpu: Add exception handling groundwork
Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#include <hal/kpcr.h>
|
||||
#include <ex/trace.h>
|
||||
#include <machine/cpuid.h>
|
||||
#include <machine/idt.h>
|
||||
#include <stdef.h>
|
||||
|
||||
#define DTRACE(Fmt, ...) \
|
||||
@@ -31,6 +32,9 @@ static const CHAR *ProcessorType[] = {
|
||||
[PROCESSOR_DUAL] = "Intel P5 dual processor"
|
||||
};
|
||||
|
||||
/* From cpu/vector.S */
|
||||
extern VOID MdVectorInit(VOID);
|
||||
|
||||
/*
|
||||
* Called by ProcessorIdentify()
|
||||
*/
|
||||
@@ -113,4 +117,9 @@ HalKpcrP1Init(KPCR *Kpcr)
|
||||
|
||||
Mcb = &Kpcr->Mcb;
|
||||
ProcessorIdentify(Mcb);
|
||||
|
||||
/* Load the IDT */
|
||||
MdVectorInit();
|
||||
MdIdtLoad();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user