mirror of
https://github.com/reactos/reactos.git
synced 2024-07-07 05:05:09 +00:00
- Add some debugging code to see why trap frames are screwed up.
svn path=/trunk/; revision=23701
This commit is contained in:
parent
38a0558e07
commit
387c84f0f5
|
@ -570,7 +570,7 @@ _KiUnexpectedInterrupt&Number:
|
||||||
5:
|
5:
|
||||||
#ifdef DBG
|
#ifdef DBG
|
||||||
sub dword ptr [esp+KTRAP_FRAME_DEBUGARGMARK], 0xBADB0D00
|
sub dword ptr [esp+KTRAP_FRAME_DEBUGARGMARK], 0xBADB0D00
|
||||||
//jnz 0f // FIXME: ROS IS BROKEN
|
jnz 0f
|
||||||
|
|
||||||
/* Assert FS */
|
/* Assert FS */
|
||||||
mov bx, fs
|
mov bx, fs
|
||||||
|
@ -752,12 +752,26 @@ FastExit:
|
||||||
jmp 3b
|
jmp 3b
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
#if DBG
|
||||||
0:
|
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 */
|
/* Fix up the mask */
|
||||||
add dword ptr [esp+KTRAP_FRAME_DEBUGARGMARK], 0xBADB0D00
|
add dword ptr [esp+KTRAP_FRAME_DEBUGARGMARK], 0xBADB0D00
|
||||||
6:
|
6:
|
||||||
int 3
|
int 3
|
||||||
jmp 5b
|
jmp 5b
|
||||||
|
#endif
|
||||||
|
|
||||||
2:
|
2:
|
||||||
/* Check if this was V86 mode */
|
/* Check if this was V86 mode */
|
||||||
|
|
|
@ -84,6 +84,9 @@ _KiUnexpectedEntrySize:
|
||||||
_UnexpectedMsg:
|
_UnexpectedMsg:
|
||||||
.asciz "\n\x7\x7!!! Unexpected Interrupt %02lx !!!\n"
|
.asciz "\n\x7\x7!!! Unexpected Interrupt %02lx !!!\n"
|
||||||
|
|
||||||
|
Broken:
|
||||||
|
.asciz "\n\x7\x7!!! Broken TrapFrame. Magic: %08lx MagicB: %08lx!!!\n"
|
||||||
|
|
||||||
/* SOFTWARE INTERRUPT SERVICES ***********************************************/
|
/* SOFTWARE INTERRUPT SERVICES ***********************************************/
|
||||||
|
|
||||||
_KiGetTickCount:
|
_KiGetTickCount:
|
||||||
|
|
Loading…
Reference in a new issue