MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / DumpExceptionDataDebugOut

Function DumpExceptionDataDebugOut

CloverEFI/CpuDxe/Cpu.c:352–559  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350
351#if CPU_EXCEPTION_DEBUG_OUTPUT
352VOID
353DumpExceptionDataDebugOut (
354 IN EFI_EXCEPTION_TYPE InterruptType,
355 IN EFI_SYSTEM_CONTEXT SystemContext
356 )
357{
358 UINT32 ErrorCodeFlag;
359
360 ErrorCodeFlag = 0x00027d00;
361
362#ifdef MDE_CPU_IA32
363 DEBUG ((
364 EFI_D_ERROR,
365 "!!!! IA32 Exception Type - %08x !!!!\n",
366 InterruptType
367 ));
368 DEBUG ((
369 EFI_D_ERROR,
370 "EIP - %08x, CS - %08x, EFLAGS - %08x\n",
371 SystemContext.SystemContextIa32->Eip,
372 SystemContext.SystemContextIa32->Cs,
373 SystemContext.SystemContextIa32->Eflags
374 ));
375 if (ErrorCodeFlag & (1 << InterruptType)) {
376 DEBUG ((
377 EFI_D_ERROR,
378 "ExceptionData - %08x\n",
379 SystemContext.SystemContextIa32->ExceptionData
380 ));
381 }
382 DEBUG ((
383 EFI_D_ERROR,
384 "EAX - %08x, ECX - %08x, EDX - %08x, EBX - %08x\n",
385 SystemContext.SystemContextIa32->Eax,
386 SystemContext.SystemContextIa32->Ecx,
387 SystemContext.SystemContextIa32->Edx,
388 SystemContext.SystemContextIa32->Ebx
389 ));
390 DEBUG ((
391 EFI_D_ERROR,
392 "ESP - %08x, EBP - %08x, ESI - %08x, EDI - %08x\n",
393 SystemContext.SystemContextIa32->Esp,
394 SystemContext.SystemContextIa32->Ebp,
395 SystemContext.SystemContextIa32->Esi,
396 SystemContext.SystemContextIa32->Edi
397 ));
398 DEBUG ((
399 EFI_D_ERROR,
400 "DS - %08x, ES - %08x, FS - %08x, GS - %08x, SS - %08x\n",
401 SystemContext.SystemContextIa32->Ds,
402 SystemContext.SystemContextIa32->Es,
403 SystemContext.SystemContextIa32->Fs,
404 SystemContext.SystemContextIa32->Gs,
405 SystemContext.SystemContextIa32->Ss
406 ));
407 DEBUG ((
408 EFI_D_ERROR,
409 "GDTR - %08x %08x, IDTR - %08x %08x\n",

Callers 1

ExceptionHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected