2 * Copyright (C) 2004-2007 Atmel Corporation
4 * This file is subject to the terms and conditions of the GNU Lesser General
5 * Public License. See the file "COPYING.LIB" in the main directory of this
6 * archive for more details.
13 * long int syscall(long int sysno, ...)
16 .type syscall, @function
31 # ifdef __UCLIBC_HAS_THREADS__
33 mcall r6[__errno_location@got]
36 ld.w r3, r6[errno@got]
41 # ifdef __UCLIBC_HAS_THREADS__
43 mcall .Lerrno_location
59 .long .Lgotcalc - _GLOBAL_OFFSET_TABLE_
61 # ifdef __UCLIBC_HAS_THREADS__
63 .long __errno_location
71 .size syscall, . - syscall