- Add some debugging code to see why trap frames are screwed up.

svn path=/trunk/; revision=23701
This commit is contained in:
Alex Ionescu 2006-08-25 04:11:45 +00:00
parent 38a0558e07
commit 387c84f0f5
2 changed files with 18 additions and 1 deletions

View file

@ -570,7 +570,7 @@ _KiUnexpectedInterrupt&Number:
5:
#ifdef DBG
sub dword ptr [esp+KTRAP_FRAME_DEBUGARGMARK], 0xBADB0D00
//jnz 0f // FIXME: ROS IS BROKEN
jnz 0f
/* Assert FS */
mov bx, fs
@ -752,12 +752,26 @@ FastExit:
jmp 3b
.endif
#if DBG
0:
#if 0
/* Print a message */
mov esi, [esp+KTRAP_FRAME_DEBUGARGMARK]
mov edi, [esp+KTRAP_FRAME_DEBUGARGMARK-4]
push edi
push esi
push offset Broken
call _DbgPrint
add esp, 12
#endif
jmp 2b // ros hack
/* Fix up the mask */
add dword ptr [esp+KTRAP_FRAME_DEBUGARGMARK], 0xBADB0D00
6:
int 3
jmp 5b
#endif
2:
/* Check if this was V86 mode */

View file

@ -84,6 +84,9 @@ _KiUnexpectedEntrySize:
_UnexpectedMsg:
.asciz "\n\x7\x7!!! Unexpected Interrupt %02lx !!!\n"
Broken:
.asciz "\n\x7\x7!!! Broken TrapFrame. Magic: %08lx MagicB: %08lx!!!\n"
/* SOFTWARE INTERRUPT SERVICES ***********************************************/
_KiGetTickCount: