14 "Exception 00: DIVIDE BY ZERO",
15 "Exception 01: DEBUG EXCEPTION",
16 "Exception 02: NON-MASKABLE INTERRUPT EXCEPTION",
17 "Exception 03: BREAKPOINT (INT 3)",
18 "Exception 04: OVERFLOW",
19 "Exception 05: BOUND EXCEPTION",
20 "Exception 06: INVALID OPCODE",
21 "Exception 07: FPU NOT AVAILABLE",
22 "Exception 08: DOUBLE FAULT",
23 "Exception 09: COPROCESSOR SEGMENT OVERRUN",
24 "Exception 0A: INVALID TSS",
25 "Exception 0B: SEGMENT NOT PRESENT",
26 "Exception 0C: STACK EXCEPTION",
27 "Exception 0D: GENERAL PROTECTION FAULT",
28 "Exception 0E: PAGE FAULT",
29 "Exception 0F: Reserved",
30 "Exception 10: COPROCESSOR ERROR",
31 "Exception 11: ALIGNMENT CHECK",
32 "Exception 12: MACHINE CHECK"
35#define SCREEN_ATTR 0x1F
111 PUCHAR InstructionPointer;
119 "Report this error on the ReactOS Bug Tracker: https://jira.reactos.org\n\n"
123 PrintText(
"EAX: %.8lx ESP: %.8lx CR0: %.8lx DR0: %.8lx\n",
125 PrintText(
"EBX: %.8lx EBP: %.8lx CR1: ???????? DR1: %.8lx\n",
126 TrapFrame->
Ebx, TrapFrame->
Ebp, TrapFrame->
Dr1);
127 PrintText(
"ECX: %.8lx ESI: %.8lx CR2: %.8lx DR2: %.8lx\n",
128 TrapFrame->
Ecx, TrapFrame->
Esi, Special->
Cr2, TrapFrame->
Dr2);
129 PrintText(
"EDX: %.8lx EDI: %.8lx CR3: %.8lx DR3: %.8lx\n",
130 TrapFrame->
Edx, TrapFrame->
Edi, Special->
Cr3, TrapFrame->
Dr3);
132 41,
"", Special->
Cr4, TrapFrame->
Dr6);
134 62,
"", TrapFrame->
Dr7);
141 PrintText(
" DS: %.4lx ERROR CODE: %.8lx\n",
145 PrintText(
" FS: %.4lx GDTR Base: %.8lx Limit: %.4x\n",
148 PrintText(
" GS: %.4lx IDTR Base: %.8lx Limit: %.4x\n",
151 PrintText(
" SS: %.4lx LDTR: %.4lx TR: %.4lx\n\n",
154 PrintText(
"RAX: %.8lx R8: %.8lx R12: %.8lx RSI: %.8lx\n",
155 TrapFrame->
Rax, TrapFrame->
R8, 0, TrapFrame->
Rsi);
156 PrintText(
"RBX: %.8lx R9: %.8lx R13: %.8lx RDI: %.8lx\n",
157 TrapFrame->
Rbx, TrapFrame->
R9, 0, TrapFrame->
Rdi);
158 PrintText(
"RCX: %.8lx R10: %.8lx R14: %.8lx RBP: %.8lx\n",
159 TrapFrame->
Rcx, TrapFrame->
R10, 0, TrapFrame->
Rbp);
160 PrintText(
"RDX: %.8lx R11: %.8lx R15: %.8lx RSP: %.8lx\n",
161 TrapFrame->
Rdx, TrapFrame->
R11, 0, TrapFrame->
Rsp);
165 PrintText(
" DS: %.4lx ERROR CODE: %.8lx\n",
169 PrintText(
" FS: %.4lx GDTR Base: %.8lx Limit: %.4x\n",
171 PrintText(
" GS: %.4lx IDTR Base: %.8lx Limit: %.4x\n",
173 PrintText(
" SS: %.4lx LDTR: %.4lx TR: %.4lx\n\n",
181 InstructionPointer = (
PUCHAR)TrapFrame->
Eip;
183 InstructionPointer = (
PUCHAR)TrapFrame->
Rip;
186 if ((TrapIndex == 3) || (TrapIndex == 4))
187 InstructionPointer--;
189 PrintText(
"\nInstruction stream: %.2x %.2x %.2x %.2x %.2x %.2x %.2x %.2x\n",
190 InstructionPointer[0], InstructionPointer[1],
191 InstructionPointer[2], InstructionPointer[3],
192 InstructionPointer[4], InstructionPointer[5],
193 InstructionPointer[6], InstructionPointer[7]);
211 PrintText(
"A problem has been detected and FreeLoader boot has been aborted.\n\n");
241 PrintText(
"A problem has been detected and FreeLoader boot has been aborted.\n\n");
250 PrintText(
"Bug Information:\n %p\n %p\n %p\n %p\n %p\n\n",
ULONG_PTR BugCheckInfo[5]
#define MachVideoClearScreen(Attr)
#define MachVideoGetDisplaySize(W, H, D)
#define MachVideoHideShowTextCursor(Show)
#define MachVideoPutChar(Ch, Attr, X, Y)
static void PrintTextV(const CHAR *Format, va_list args)
void NTAPI FrLdrBugCheckEx(ULONG BugCode, PCHAR File, ULONG Line)
void NTAPI FrLdrBugCheck(ULONG BugCode)
VOID FrLdrBugCheckWithMessage(ULONG BugCode, PCHAR File, ULONG Line, PSTR Format,...)
static void i386PrintFrames(PKTRAP_FRAME TrapFrame)
static ULONG i386_ScreenPosY
static void i386PrintText(CHAR *pszText)
static ULONG i386_ScreenPosX
static const CHAR * i386ExceptionDescriptionText[]
void NTAPI i386PrintExceptionText(ULONG TrapIndex, PKTRAP_FRAME TrapFrame, PKSPECIAL_REGISTERS Special)
static void PrintText(const CHAR *Format,...)
void __cdecl _disable(void)
__INTRIN_INLINE void __halt(void)
_In_ HFONT _Out_ PUINT _Out_ PUINT Width