Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1990 Microsoft Corporation
  3. Module Name:
  4. stubs.c
  5. Abstract:
  6. This module implements stub routines for the boot code.
  7. Author:
  8. David N. Cutler (davec) 7-Nov-1990
  9. Environment:
  10. Kernel mode only.
  11. Revision History:
  12. --*/
  13. #include "ntos.h"
  14. #include "bootx86.h"
  15. #include "stdio.h"
  16. #include "stdarg.h"
  17. VOID
  18. KeBugCheck (
  19. IN ULONG BugCheckCode
  20. )
  21. /*++
  22. Routine Description:
  23. This function crashes the system in a controlled manner.
  24. Arguments:
  25. BugCheckCode - Supplies the reason for the bug check.
  26. Return Value:
  27. None.
  28. --*/
  29. {
  30. //
  31. // Print out the bug check code and break.
  32. //
  33. BlPrint("\n*** BugCheck (%lx) ***\n\n", BugCheckCode);
  34. while(TRUE) {
  35. };
  36. #if _MSC_VER < 1300
  37. return;
  38. #endif
  39. }
  40. VOID
  41. RtlAssert(
  42. IN PVOID FailedAssertion,
  43. IN PVOID FileName,
  44. IN ULONG LineNumber,
  45. IN PCHAR Message OPTIONAL
  46. )
  47. {
  48. BlPrint( "\n*** Assertion failed %s in %s line %d\n",
  49. FailedAssertion,
  50. FileName,
  51. LineNumber );
  52. if (Message) {
  53. BlPrint(Message);
  54. }
  55. while (TRUE) {
  56. }
  57. }