Author: ion
Date: Mon Aug 21 07:03:52 2006
New Revision: 23635
URL:
http://svn.reactos.org/svn/reactos?rev=23635&view=rev
Log:
- Call KiSystemFatalException directly instead of duplicating the code 5 times.
Modified:
trunk/reactos/ntoskrnl/ke/i386/trap.s
Modified: trunk/reactos/ntoskrnl/ke/i386/trap.s
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/i386/trap.s?re…
==============================================================================
--- trunk/reactos/ntoskrnl/ke/i386/trap.s (original)
+++ trunk/reactos/ntoskrnl/ke/i386/trap.s Mon Aug 21 07:03:52 2006
@@ -841,12 +841,8 @@
_KiTrap2:
/* FIXME: This is an NMI, nothing like a normal exception */
- push 0
- push 0
- push 0
- push 2
- push UNEXPECTED_KERNEL_MODE_TRAP
- call _KeBugCheckEx@20
+ mov eax, 2
+ jmp _KiSystemFatalException
.endfunc
.func KiTrap3
@@ -954,12 +950,8 @@
jnz CheckMode
/* It did, and this should never happen */
- push 0
- push 0
- push 0
- push 5
- push UNEXPECTED_KERNEL_MODE_TRAP
- call _KeBugCheckEx@20
+ mov eax, 5
+ jmp _KiSystemFatalException
/* Check the old mode */
CheckMode:
@@ -1147,12 +1139,8 @@
_KiTrap8:
/* Can't really do too much */
- push 0
- push 0
- push 0
- push 8
- push UNEXPECTED_KERNEL_MODE_TRAP
- call _KeBugCheckEx@20
+ mov eax, 8
+ jmp _KiSystemFatalException
.endfunc
.func KiTrap9
@@ -1165,12 +1153,8 @@
/* Enable interrupts and bugcheck */
sti
- push 0
- push 0
- push 0
- push 9
- push UNEXPECTED_KERNEL_MODE_TRAP
- call _KeBugCheckEx@20
+ mov eax, 9
+ jmp _KiSystemFatalException
.endfunc
.func KiTrap10
@@ -1198,12 +1182,8 @@
Fatal:
/* TSS failure for some other reason: crash */
- push 0
- push 0
- push 0
- push 10
- push UNEXPECTED_KERNEL_MODE_TRAP
- call _KeBugCheckEx@20
+ mov eax, 10
+ jmp _KiSystemFatalException
.endfunc
_KiTrap11: