<br><br><div class="gmail_quote">2012/5/17 Javier Martinez Canillas <span dir="ltr"><<a href="mailto:martinez.javier@gmail.com" target="_blank">martinez.javier@gmail.com</a>></span><br><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
<div class="HOEnZb"><div class="h5">On Thu, May 17, 2012 at 3:59 PM, ÍõÕÜ <<a href="mailto:wangzhe5004@gmail.com">wangzhe5004@gmail.com</a>> wrote:<br>
> Hi all:<br>
> i am a kernelnewbies.during studying the linux system call,and<br>
> analysis the following code (linux kernel 2.6.38)<br>
><br>
> 529ENTRY(system_call)<br>
> 530 RING0_INT_FRAME # can't unwind into user space anyway<br>
> 531 pushl %eax # save orig_eax<br>
> 532 CFI_ADJUST_CFA_OFFSET 4<br>
> 533 SAVE_ALL<br>
> 534 GET_THREAD_INFO(%ebp)<br>
> 535 # system call tracing in operation / emulation<br>
> 536 testl $_TIF_WORK_SYSCALL_ENTRY,TI_flags(%ebp)<br>
> 537 jnz syscall_trace_entry<br>
> 538 cmpl $(nr_syscalls), %eax<br>
> 539 jae syscall_badsys<br>
> 540syscall_call:<br>
> 541 call *sys_call_table(,%eax,4)<br>
> 542 movl %eax,PT_EAX(%esp) # store the return value<br>
><br>
> Question:<br>
> i want to see what the SAVE_ALL have done.and can't find the<br>
> Macro SAVE_ALL<br>
> if anyone knows please help<br>
><br>
> Thanks<br>
><br>
</div></div>> _______________________________________________<br>
> Kernelnewbies mailing list<br>
> <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
> <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
><br>
<br>
<a href="http://lxr.free-electrons.com/ident?i=SAVE_ALL" target="_blank">http://lxr.free-electrons.com/ident?i=SAVE_ALL</a><br>
<br></blockquote><div> Thank you Javier Martinez Canillas for reply!</div><div> but the rearch result :</div><div> Defined as a preprocessor macro in:</div><ul><li><a href="http://lxr.free-electrons.com/source/arch/cris/include/arch-v32/arch/irq.h#L32">arch/cris/include/arch-v32/arch/irq.h, line 32</a><li>
<a href="http://lxr.free-electrons.com/source/arch/cris/include/arch-v10/arch/irq.h#L85">arch/cris/include/arch-v10/arch/irq.h, line 85</a><li><a href="http://lxr.free-electrons.com/source/arch/sparc/include/asm/asmmacro.h#L27">arch/sparc/include/asm/asmmacro.h, line 27</a></li>
</li></li></ul><p> is not in x86 Architecture. </p><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
Best regards,<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Javier Mart¨ªnez Canillas<br>
(+34) 682 39 81 69<br>
Barcelona, Spain<br>
</font></span></blockquote></div><br>