forked from xt-sys/exectos
Implement KD subsystem, add serial & framebuffer debug providers
This commit is contained in:
@@ -109,7 +109,6 @@ KepStartKernel(VOID)
|
||||
CurrentProcess->ActiveProcessors |= (ULONG_PTR)1 << Prcb->CpuNumber;
|
||||
|
||||
/* Enter infinite loop */
|
||||
HlClearScreen(0x7F7F7FFF);
|
||||
DebugPrint(L"KepStartKernel() finished. Entering infinite loop.\n");
|
||||
for(;;);
|
||||
}
|
||||
|
@@ -109,7 +109,6 @@ KepStartKernel(VOID)
|
||||
CurrentProcess->ActiveProcessors |= (ULONG_PTR)1 << Prcb->CpuNumber;
|
||||
|
||||
/* Enter infinite loop */
|
||||
HlClearScreen(0x7F7F7FFF);
|
||||
DebugPrint(L"KepStartKernel() finished. Entering infinite loop.\n");
|
||||
for(;;);
|
||||
}
|
||||
|
@@ -39,7 +39,21 @@ KeStartXtSystem(IN PKERNEL_INITIALIZATION_BLOCK Parameters)
|
||||
if(DEBUG && KeInitializationBlock->LoaderInformation.DbgPrint)
|
||||
{
|
||||
/* Use loader's provided DbgPrint() routine for early printing to serial console */
|
||||
KeDbgPrint = KeInitializationBlock->LoaderInformation.DbgPrint;
|
||||
KdSetPrintRoutine(KeInitializationBlock->LoaderInformation.DbgPrint);
|
||||
DebugPrint(L"Initializing ExectOS v%d.%d for %s\n", XTOS_VERSION_MAJOR, XTOS_VERSION_MINOR, _ARCH_NAME);
|
||||
}
|
||||
|
||||
/* Initialize boot CPU */
|
||||
ArInitializeProcessor(NULL);
|
||||
|
||||
/* Initialize system resources */
|
||||
KepInitializeSystemResources();
|
||||
|
||||
/* Check if debugging enabled */
|
||||
if(DEBUG)
|
||||
{
|
||||
/* Initialize debug I/O */
|
||||
KdInitializeDebugIoProviders();
|
||||
}
|
||||
|
||||
/* Announce kernel startup */
|
||||
@@ -48,12 +62,6 @@ KeStartXtSystem(IN PKERNEL_INITIALIZATION_BLOCK Parameters)
|
||||
XTOS_VERSION_BUILD, XTOS_VERSION_ARCH, XTOS_VERSION_HASH,
|
||||
XTOS_COMPILER_NAME, XTOS_COMPILER_VERSION);
|
||||
|
||||
/* Initialize boot CPU */
|
||||
ArInitializeProcessor(NULL);
|
||||
|
||||
/* Initialize system resources */
|
||||
KepInitializeSystemResources();
|
||||
|
||||
/* Architecture specific kernel initialization */
|
||||
KepInitializeMachine();
|
||||
|
||||
|
@@ -76,6 +76,6 @@ KePanicEx(IN ULONG Code,
|
||||
IN ULONG_PTR Parameter3,
|
||||
IN ULONG_PTR Parameter4)
|
||||
{
|
||||
KeDbgPrint(L"Fatal System Error: 0x%08lx\nKernel Panic!\n\n", Code);
|
||||
KdPrint(L"Fatal System Error: 0x%08lx\nKernel Panic!\n\n", Code);
|
||||
KeHaltSystem();
|
||||
}
|
||||
|
Reference in New Issue
Block a user