Can't find macro SAVE_ALL

王哲 wangzhe5004 at gmail.com
Thu May 17 09:59:19 EDT 2012


Hi all:
        i am a kernelnewbies.during studying the linux system call,and
analysis the following code (linux kernel 2.6.38)

529 <http://lxr.linux.no/linux+*/arch/x86/kernel/entry_32.S#L529>
ENTRY(system_call)
530 <http://lxr.linux.no/linux+*/arch/x86/kernel/entry_32.S#L530>RING0_INT_FRAME
# can't unwind into user space anyway
531 <http://lxr.linux.no/linux+*/arch/x86/kernel/entry_32.S#L531> pushl
%eax # save orig_eax
532 <http://lxr.linux.no/linux+*/arch/x86/kernel/entry_32.S#L532>CFI_ADJUST_CFA_OFFSET
4
533 <http://lxr.linux.no/linux+*/arch/x86/kernel/entry_32.S#L533> SAVE_ALL
534 <http://lxr.linux.no/linux+*/arch/x86/kernel/entry_32.S#L534>GET_THREAD_INFO(%ebp)
535 <http://lxr.linux.no/linux+*/arch/x86/kernel/entry_32.S#L535> # system
call tracing in operation / emulation
536 <http://lxr.linux.no/linux+*/arch/x86/kernel/entry_32.S#L536> testl
$_TIF_WORK_SYSCALL_ENTRY,TI_flags(%ebp)
537 <http://lxr.linux.no/linux+*/arch/x86/kernel/entry_32.S#L537> jnz
syscall_trace_entry
538 <http://lxr.linux.no/linux+*/arch/x86/kernel/entry_32.S#L538> cmpl
$(nr_syscalls), %eax
539 <http://lxr.linux.no/linux+*/arch/x86/kernel/entry_32.S#L539> jae
syscall_badsys
540 <http://lxr.linux.no/linux+*/arch/x86/kernel/entry_32.S#L540>
syscall_call:
541 <http://lxr.linux.no/linux+*/arch/x86/kernel/entry_32.S#L541> call
*sys_call_table(,%eax,4)
542 <http://lxr.linux.no/linux+*/arch/x86/kernel/entry_32.S#L542> movl
%eax,PT_EAX(%esp) # store the return value

Question:
           i want to see what the SAVE_ALL have done.and can't find the
Macro SAVE_ALL
if anyone knows please help

         Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120517/5cc3f9f8/attachment.html 


More information about the Kernelnewbies mailing list