mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Temporary hack to make ntoskrnl stop crashing - an user-mode pointer (in the EBP register) was being dereferenced without any check
Since I don't know what this is for, I'm disabling it for now - it works for people reporting the crash, and it apparently only breaks GDB support. Alex, this should be your baby, please have a look svn path=/trunk/; revision=13140
This commit is contained in:
parent
030b284e30
commit
223c560590
1 changed files with 6 additions and 0 deletions
|
@ -95,14 +95,20 @@ _KiSystemService:
|
|||
pushl %gs // + 0x48
|
||||
sub $0x28, %esp // + 0x70
|
||||
|
||||
#if 0
|
||||
#ifdef DBG
|
||||
/* Trick gdb 6 into backtracing over the system call */
|
||||
/* FIXME: %ebp is *never* initialized */
|
||||
pushl 4(%ebp) /* DebugEIP */ // + 0x74
|
||||
pushl (%ebp) /* DebugEBP */ // + 0x78
|
||||
#else
|
||||
pushl 0x60(%esp) /* DebugEIP */ // + 0x74
|
||||
pushl %ebp /* DebugEBP */ // + 0x78
|
||||
#endif
|
||||
#else
|
||||
pushl $0 /* DebugEIP */ // + 0x74
|
||||
pushl $0 /* DebugEBP */ // + 0x78
|
||||
#endif
|
||||
|
||||
/* Load the segment registers */
|
||||
sti
|
||||
|
|
Loading…
Reference in a new issue