正在加载图片...
系统调用时的内核栈 18* Stack layout in'ret from system call 19* ptrace needs to have all regs on the stack 20* if the order here is changed. it needs to be 21* updated in fork. c copy process, signal. c: do signal 22* ptrace.c and ptrace. h 23 25 8(%esp)-%edx C(%esp)-%esi 28*10(%esp)-%edi 29*14(%esp)-%eb 30*18(%esp)-%eax 31*1C(%esp)-%ds 33* 24(%esp)-orig_eax 34*28(%sp)-%eip 35*2C(%oesp)-%c 36* 30(%esp)-%eflags 37 34(%esp)-%oldest 38* 38(%esp)-%oldss 40*"current"is in register %ebx during any slow entries 边干边学— Linux内核指导边干边学——Linux内核指导 系统调用时的内核栈 18 * Stack layout in 'ret_from_system_call': 19 * ptrace needs to have all regs on the stack. 20 * if the order here is changed, it needs to be 21 * updated in fork.c:copy_process, signal.c:do_signal, 22 * ptrace.c and ptrace.h 23 * 24 * 0(%esp) - %ebx 25 * 4(%esp) - %ecx 26 * 8(%esp) - %edx 27 * C(%esp) - %esi 28 * 10(%esp) - %edi 29 * 14(%esp) - %ebp 30 * 18(%esp) - %eax 31 * 1C(%esp) - %ds 32 * 20(%esp) - %es 33 * 24(%esp) - orig_eax 34 * 28(%esp) - %eip 35 * 2C(%esp) - %cs 36 * 30(%esp) - %eflags 37 * 34(%esp) - %oldesp 38 * 38(%esp) - %oldss 39 * 40 * "current" is in register %ebx during any slow entries
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有