Author: hbelusca
Date: Fri Nov 7 21:19:27 2014
New Revision: 65311
URL:
http://svn.reactos.org/svn/reactos?rev=65311&view=rev
Log:
[HALx86]: Display the invalid opcodes when HalpOpcodeInvalid is called.
Modified:
trunk/reactos/hal/halx86/generic/bios.c
Modified: trunk/reactos/hal/halx86/generic/bios.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halx86/generic/bios.c?…
==============================================================================
--- trunk/reactos/hal/halx86/generic/bios.c [iso-8859-1] (original)
+++ trunk/reactos/hal/halx86/generic/bios.c [iso-8859-1] Fri Nov 7 21:19:27 2014
@@ -60,9 +60,14 @@
FASTCALL
HalpOpcodeInvalid(IN PHAL_BIOS_FRAME BiosFrame)
{
+ PUCHAR Inst = (PUCHAR)(BiosFrame->CsBase + BiosFrame->Eip);
+
/* Print error message */
- DPRINT1("HAL: An invalid V86 opcode was encountered at address %x:%x\n",
- BiosFrame->SegCs, BiosFrame->Eip);
+ DPRINT1("HAL: An invalid V86 opcode was encountered at address %X:%X\n",
+ "Opcode: %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X",
+ BiosFrame->SegCs, BiosFrame->Eip,
+ Inst[0], Inst[1], Inst[2], Inst[3], Inst[4],
+ Inst[5], Inst[6], Inst[7], Inst[8], Inst[9]);
/* Break */
DbgBreakPoint();