aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/am33/Implies3
-rw-r--r--sysdeps/am33/__longjmp.S61
-rw-r--r--sysdeps/am33/atomicity.h87
-rw-r--r--sysdeps/am33/bits/endian.h7
-rw-r--r--sysdeps/am33/bits/setjmp.h34
-rw-r--r--sysdeps/am33/bsd-_setjmp.S1
-rw-r--r--sysdeps/am33/bsd-setjmp.S1
-rw-r--r--sysdeps/am33/dl-machine.h481
-rw-r--r--sysdeps/am33/elf/start.S81
-rw-r--r--sysdeps/am33/fpu/bits/fenv.h67
-rw-r--r--sysdeps/am33/fpu/fclrexcpt.c52
-rw-r--r--sysdeps/am33/fpu/fedisblxcpt.c42
-rw-r--r--sysdeps/am33/fpu/feenablxcpt.c42
-rw-r--r--sysdeps/am33/fpu/fegetenv.c35
-rw-r--r--sysdeps/am33/fpu/fegetexcept.c35
-rw-r--r--sysdeps/am33/fpu/fegetround.c35
-rw-r--r--sysdeps/am33/fpu/feholdexcpt.c39
-rw-r--r--sysdeps/am33/fpu/fenv_libc.h33
-rw-r--r--sysdeps/am33/fpu/fesetenv.c60
-rw-r--r--sysdeps/am33/fpu/fesetround.c29
-rw-r--r--sysdeps/am33/fpu/feupdateenv.c47
-rw-r--r--sysdeps/am33/fpu/fgetexcptflg.c44
-rw-r--r--sysdeps/am33/fpu/fpu_control.h75
-rw-r--r--sysdeps/am33/fpu/fraiseexcpt.c79
-rw-r--r--sysdeps/am33/fpu/fsetexcptflg.c57
-rw-r--r--sysdeps/am33/fpu/ftestexcept.c34
-rw-r--r--sysdeps/am33/linuxthreads/pspinlock.c74
-rw-r--r--sysdeps/am33/linuxthreads/pt-machine.h68
-rw-r--r--sysdeps/am33/memusage.h23
-rw-r--r--sysdeps/am33/preconfigure5
-rw-r--r--sysdeps/am33/setjmp.S80
-rw-r--r--sysdeps/am33/shlib-versions1
-rw-r--r--sysdeps/am33/stackinfo.h28
-rw-r--r--sysdeps/am33/sys/ucontext.h123
-rw-r--r--sysdeps/am33/sysdep.h82
-rw-r--r--sysdeps/unix/am33/sysdep.S64
-rw-r--r--sysdeps/unix/am33/sysdep.h33
-rw-r--r--sysdeps/unix/sysv/linux/am33/Makefile3
-rw-r--r--sysdeps/unix/sysv/linux/am33/bits/fcntl.h179
-rw-r--r--sysdeps/unix/sysv/linux/am33/bits/mman.h97
-rw-r--r--sysdeps/unix/sysv/linux/am33/brk.c46
-rw-r--r--sysdeps/unix/sysv/linux/am33/chown.c1
-rw-r--r--sysdeps/unix/sysv/linux/am33/clone.S81
-rwxr-xr-xsysdeps/unix/sysv/linux/am33/configure4
-rw-r--r--sysdeps/unix/sysv/linux/am33/configure.in4
-rw-r--r--sysdeps/unix/sysv/linux/am33/fchown.c1
-rw-r--r--sysdeps/unix/sysv/linux/am33/fcntl.c1
-rw-r--r--sysdeps/unix/sysv/linux/am33/fxstat.c1
-rw-r--r--sysdeps/unix/sysv/linux/am33/getegid.c1
-rw-r--r--sysdeps/unix/sysv/linux/am33/geteuid.c1
-rw-r--r--sysdeps/unix/sysv/linux/am33/getgid.c1
-rw-r--r--sysdeps/unix/sysv/linux/am33/getgroups.c1
-rw-r--r--sysdeps/unix/sysv/linux/am33/getmsg.c1
-rw-r--r--sysdeps/unix/sysv/linux/am33/getresgid.c1
-rw-r--r--sysdeps/unix/sysv/linux/am33/getresuid.c1
-rw-r--r--sysdeps/unix/sysv/linux/am33/getrlimit.c1
-rw-r--r--sysdeps/unix/sysv/linux/am33/getuid.c1
-rw-r--r--sysdeps/unix/sysv/linux/am33/lchown.c1
-rw-r--r--sysdeps/unix/sysv/linux/am33/lockf64.c1
-rw-r--r--sysdeps/unix/sysv/linux/am33/lxstat.c1
-rw-r--r--sysdeps/unix/sysv/linux/am33/profil-counter.h27
-rw-r--r--sysdeps/unix/sysv/linux/am33/putmsg.c1
-rw-r--r--sysdeps/unix/sysv/linux/am33/setegid.c1
-rw-r--r--sysdeps/unix/sysv/linux/am33/seteuid.c1
-rw-r--r--sysdeps/unix/sysv/linux/am33/setfsgid.c1
-rw-r--r--sysdeps/unix/sysv/linux/am33/setfsuid.c1
-rw-r--r--sysdeps/unix/sysv/linux/am33/setgid.c1
-rw-r--r--sysdeps/unix/sysv/linux/am33/setgroups.c1
-rw-r--r--sysdeps/unix/sysv/linux/am33/setregid.c1
-rw-r--r--sysdeps/unix/sysv/linux/am33/setresgid.c1
-rw-r--r--sysdeps/unix/sysv/linux/am33/setresuid.c1
-rw-r--r--sysdeps/unix/sysv/linux/am33/setreuid.c1
-rw-r--r--sysdeps/unix/sysv/linux/am33/setrlimit.c1
-rw-r--r--sysdeps/unix/sysv/linux/am33/setuid.c1
-rw-r--r--sysdeps/unix/sysv/linux/am33/socket.S73
-rw-r--r--sysdeps/unix/sysv/linux/am33/syscall.S43
-rw-r--r--sysdeps/unix/sysv/linux/am33/sysdep.S42
-rw-r--r--sysdeps/unix/sysv/linux/am33/sysdep.h317
-rw-r--r--sysdeps/unix/sysv/linux/am33/xstat.c1
-rw-r--r--sysdeps/unix/sysv/linux/linuxthreads/sysdep-cancel.h159
80 files changed, 3247 insertions, 0 deletions
diff --git a/sysdeps/am33/Implies b/sysdeps/am33/Implies
new file mode 100644
index 0000000000..780c4e2467
--- /dev/null
+++ b/sysdeps/am33/Implies
@@ -0,0 +1,3 @@
+wordsize-32
+ieee754/flt-32
+ieee754/dbl-64
diff --git a/sysdeps/am33/__longjmp.S b/sysdeps/am33/__longjmp.S
new file mode 100644
index 0000000000..9bdcc489e8
--- /dev/null
+++ b/sysdeps/am33/__longjmp.S
@@ -0,0 +1,61 @@
+/* longjmp for AM33.
+ Copyright 2001 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, write to the Free
+ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+ 02111-1307 USA. */
+
+#include <sysdep.h>
+#define _ASM
+#define _SETJMP_H
+#include <bits/setjmp.h>
+#include <asm-syntax.h>
+
+ENTRY (__longjmp)
+ mov d0,a0
+ mov (8,a0),d2
+ mov d2,mdr
+ mov (0,a0),d2
+ mov (4,a0),d3
+ mov (12,a0),a2
+ mov (16,a0),a3
+ mov (20,a0),a1
+ mov a1,sp
+ add 24,a0
+ mov (a0+),r4
+ mov (a0+),r5
+ mov (a0+),r6
+ mov (a0+),r7
+#ifdef __AM33_2__
+ fmov (a0+),fs4
+ fmov (a0+),fs5
+ fmov (a0+),fs6
+ fmov (a0+),fs7
+ fmov (a0+),fs8
+ fmov (a0+),fs9
+ fmov (a0+),fs10
+ fmov (a0+),fs11
+ fmov (a0+),fs12
+ fmov (a0+),fs13
+ fmov (a0+),fs14
+ fmov (a0+),fs15
+ fmov (a0+),fs16
+ fmov (a0+),fs17
+ fmov (a0+),fs18
+ fmov (a0+),fs19
+#endif
+ mov d1,d0
+ retf [],0
+END (__longjmp)
diff --git a/sysdeps/am33/atomicity.h b/sysdeps/am33/atomicity.h
new file mode 100644
index 0000000000..d7765338ac
--- /dev/null
+++ b/sysdeps/am33/atomicity.h
@@ -0,0 +1,87 @@
+/* Low-level functions for atomic operations. AM33 version.
+ Copyright 1999, 2001 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+ Contributed by Alexandre Oliva <aoliva@redhat.com>.
+ Based on ../sparc/sparc32/atomicity.h
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public
+ License along with the GNU C Library; see the file COPYING.LIB. If not,
+ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
+
+#ifndef _ATOMICITY_H
+#define _ATOMICITY_H 1
+
+#include <inttypes.h>
+
+#define __acquire_lock(lock) \
+ __asm__ __volatile__("1: bset %1, (%0)\n\t" \
+ " beq 1b" \
+ : : "a" (&(lock)), "d" (1) \
+ : "memory")
+
+#define __release_lock(lock) lock = 0
+
+static int
+__attribute__ ((unused))
+exchange_and_add (volatile uint32_t *mem, int val)
+{
+ static unsigned char lock;
+ int result;
+
+ __acquire_lock (lock);
+
+ result = *mem;
+ *mem += val;
+
+ __release_lock (lock);
+
+ return result;
+}
+
+static void
+__attribute__ ((unused))