windows-nt/Source/XPSP1/NT/base/boot/lib/i386/stubs.c
2020-09-26 16:20:57 +08:00

85 lines
1.1 KiB
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*++
Copyright (c) 1990 Microsoft Corporation
Module Name:
stubs.c
Abstract:
This module implements stub routines for the boot code.
Author:
David N. Cutler (davec) 7-Nov-1990
Environment:
Kernel mode only.
Revision History:
--*/
#include "ntos.h"
#include "bootx86.h"
#include "stdio.h"
#include "stdarg.h"
VOID
KeBugCheck (
IN ULONG BugCheckCode
)
/*++
Routine Description:
This function crashes the system in a controlled manner.
Arguments:
BugCheckCode - Supplies the reason for the bug check.
Return Value:
None.
--*/
{
//
// Print out the bug check code and break.
//
BlPrint("\n*** BugCheck (%lx) ***\n\n", BugCheckCode);
while(TRUE) {
};
#if _MSC_VER < 1300
return;
#endif
}
VOID
RtlAssert(
IN PVOID FailedAssertion,
IN PVOID FileName,
IN ULONG LineNumber,
IN PCHAR Message OPTIONAL
)
{
BlPrint( "\n*** Assertion failed %s in %s line %d\n",
FailedAssertion,
FileName,
LineNumber );
if (Message) {
BlPrint(Message);
}
while (TRUE) {
}
}