[uClinux-dev] system_call: entry.S - Please reply

Deepa Sivasankarane sdeepa69 at yahoo.com
Thu Mar 6 16:46:03 EST 2003

Could u please tell me what the "libc system call stub" files are , for m68knommu ?
 Greg Ungerer <gerg at snapgear.com> wrote:Hi Deepa,

Deepa Sivasankarane wrote:
> In m68knommu/platform/5307/entry.S, return values of 
> system_call/syscall_trace
> are in %d0. 
> movel %d3,%a0
> jbsr %a0@
> movel %d0,%sp@(LD0) | save the return value 
> Where does one specify that the return value of all system calls is in %d0 ?

Exactly what are you asking?

It is explicitly coded in this entry.S file and in the libc library
system call stubs that %d0 contains the return value. There is no
single place it is specified. It is a convention that the kernel
and library must follow for it to work.


Greg Ungerer -- Chief Software Wizard EMAIL: gerg at snapgear.com
SnapGear Pty Ltd PHONE: +61 7 3435 2888
825 Stanley St, FAX: +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia WEB: www.SnapGear.com

uClinux-dev mailing list
uClinux-dev at uclinux.org
This message was resent by uclinux-dev at uclinux.org

Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.uclinux.org/pipermail/uclinux-dev/attachments/20030306/e08e027e/attachment.html>

More information about the uClinux-dev mailing list