Implemented trap handler stubs in MASM

This commit is contained in:
Jozef Nagy
2023-11-21 18:27:34 +01:00
parent c66ea77a8b
commit 89049700fb
7 changed files with 650 additions and 340 deletions

View File

@@ -52,6 +52,11 @@ KeStartXtSystem(IN PKERNEL_INITIALIZATION_BLOCK Parameters)
/* Architecture specific kernel initialization */
KepInitializeMachine();
#ifdef _DEBUG
DebugPrint(L"Initiating crash...\n");
asm("int $0x00");
#endif
/* Switch boot stack aligning it to 4 byte boundary */
KepSwitchBootStack((ULONG_PTR)&ArKernelBootStack & ~0x3);
}