mirror of
https://github.com/reactos/reactos.git
synced 2025-07-29 09:51:56 +00:00
[NTOS:KE]
- In debug builds, restore EBP early in KiSwitchThreads to get a sensible backtrace CORE-11123 svn path=/trunk/; revision=71175
This commit is contained in:
parent
b5478dccca
commit
f66b801a75
1 changed files with 4 additions and 0 deletions
|
@ -63,6 +63,10 @@ PUBLIC @KiSwitchThreads@8
|
||||||
@KiSwitchThreads@8:
|
@KiSwitchThreads@8:
|
||||||
/* Load the new kernel stack and switch OS to new thread */
|
/* Load the new kernel stack and switch OS to new thread */
|
||||||
mov esp, edx
|
mov esp, edx
|
||||||
|
#if DBG
|
||||||
|
/* Restore the frame pointer early to get sensible backtraces */
|
||||||
|
mov ebp, [esp+12]
|
||||||
|
#endif
|
||||||
call @KiSwapContextExit@8
|
call @KiSwapContextExit@8
|
||||||
|
|
||||||
/* Now we're on the new thread. Return to the caller to restore registers */
|
/* Now we're on the new thread. Return to the caller to restore registers */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue