Implement KeHaltSystem() routine
This commit is contained in:
parent
d7e6d319cf
commit
f28c870192
@ -17,6 +17,10 @@ XTAPI
|
|||||||
VOID
|
VOID
|
||||||
KeClearEvent(IN PKEVENT Event);
|
KeClearEvent(IN PKEVENT Event);
|
||||||
|
|
||||||
|
XTAPI
|
||||||
|
VOID
|
||||||
|
KeHaltSystem();
|
||||||
|
|
||||||
XTAPI
|
XTAPI
|
||||||
VOID
|
VOID
|
||||||
KeInitializeEvent(OUT PKEVENT Event,
|
KeInitializeEvent(OUT PKEVENT Event,
|
||||||
|
@ -32,12 +32,7 @@ KeStartXtSystem(IN PKERNEL_INITIALIZATION_BLOCK Parameters)
|
|||||||
KeInitializationBlock->ProtocolVersion != BOOT_PROTOCOL_VERSION)
|
KeInitializationBlock->ProtocolVersion != BOOT_PROTOCOL_VERSION)
|
||||||
{
|
{
|
||||||
/* Kernel and boot loader version mismatch */
|
/* Kernel and boot loader version mismatch */
|
||||||
for(;;)
|
KeHaltSystem();
|
||||||
{
|
|
||||||
/* Halt system */
|
|
||||||
ArClearInterruptFlag();
|
|
||||||
ArHalt();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check if debugging enabled and if boot loader provided routine for debug printing */
|
/* Check if debugging enabled and if boot loader provided routine for debug printing */
|
||||||
|
@ -9,6 +9,27 @@
|
|||||||
#include <xtos.h>
|
#include <xtos.h>
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Halts the system.
|
||||||
|
*
|
||||||
|
* @return This routine does not return any value.
|
||||||
|
*
|
||||||
|
* @since XT 1.0
|
||||||
|
*/
|
||||||
|
XTAPI
|
||||||
|
VOID
|
||||||
|
KeHaltSystem()
|
||||||
|
{
|
||||||
|
/* Enter infinite loop */
|
||||||
|
for(;;)
|
||||||
|
{
|
||||||
|
/* Halt system */
|
||||||
|
ArClearInterruptFlag();
|
||||||
|
ArHalt();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Crashes the system upon detecting a fatal error in which either it is unable to recover or continue to run system.
|
* Crashes the system upon detecting a fatal error in which either it is unable to recover or continue to run system.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user