The stack layout changed in r23983. Since then user_debug_post_syscall()

wouldn't be passed the syscall start time anymore. Fixes weird syscall
timings when using strace.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26243 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2008-07-03 21:14:54 +00:00
parent dcdf3137e1
commit 71dffe8b84

View File

@ -357,7 +357,8 @@ handle_syscall:
movl %eax,%ds
movl %eax,%es
lea 4(%esp), %ebp // stack frame pointer is the iframe
lea 4(%esp), %ebp // skipping the return address, the stack
// frame pointer is the iframe
movl %dr3, %edi // thread pointer
// disable breakpoints, if installed
@ -437,8 +438,8 @@ handle_syscall:
// post syscall debugging
testl $THREAD_FLAGS_DEBUGGER_INSTALLED, THREAD_flags(%edi)
jz 1f
pushl -4(%ebp) // syscall start time
pushl -8(%ebp)
pushl -8(%ebp) // syscall start time
pushl -12(%ebp)
movl IFRAME_edx(%ebp), %edx // syscall return value
movl IFRAME_eax(%ebp), %eax
push %edx