25845f
Recreation of this upstream commit:
25845f
25845f
commit 464263cc00549d2597b6d25309d55b1e4a6b1aac
25845f
Author: Joseph Myers <joseph@codesourcery.com>
25845f
Date:   Sat Feb 8 00:16:57 2014 +0000
25845f
25845f
    Remove am33 port.
25845f
    
25845f
    This patch removes the am33 port (no other port #includes any files
25845f
    from it), as previously discussed (see
25845f
    <https://sourceware.org/ml/libc-ports/2014-01/msg00046.html>).
25845f
25845f
Git commands used:
25845f
25845f
git rm -r ports/sysdeps/am33
25845f
git rm -r ports/sysdeps/unix/am33
25845f
git rm -r ports/sysdeps/unix/sysv/linux/am33
25845f
25845f
diff --git a/ports/sysdeps/am33/Implies b/ports/sysdeps/am33/Implies
25845f
deleted file mode 100644
25845f
index 780c4e2467693939..0000000000000000
25845f
--- a/ports/sysdeps/am33/Implies
25845f
+++ /dev/null
25845f
@@ -1,3 +0,0 @@
25845f
-wordsize-32
25845f
-ieee754/flt-32
25845f
-ieee754/dbl-64
25845f
diff --git a/ports/sysdeps/am33/__longjmp.S b/ports/sysdeps/am33/__longjmp.S
25845f
deleted file mode 100644
25845f
index 1d6c29e99f0099f5..0000000000000000
25845f
--- a/ports/sysdeps/am33/__longjmp.S
25845f
+++ /dev/null
25845f
@@ -1,60 +0,0 @@
25845f
-/* longjmp for AM33.
25845f
-   Copyright 2001 Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Lesser General Public
25845f
-   License as published by the Free Software Foundation; either
25845f
-   version 2.1 of the License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Lesser General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Lesser General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#include <sysdep.h>
25845f
-#define _ASM
25845f
-#define _SETJMP_H
25845f
-#include <bits/setjmp.h>
25845f
-#include <asm-syntax.h>
25845f
-
25845f
-ENTRY (__longjmp)
25845f
-	mov d0,a0
25845f
-	mov (8,a0),d2
25845f
-	mov d2,mdr
25845f
-	mov (0,a0),d2
25845f
-	mov (4,a0),d3
25845f
-	mov (12,a0),a2
25845f
-	mov (16,a0),a3
25845f
-	mov (20,a0),a1
25845f
-	mov a1,sp
25845f
-	add 24,a0
25845f
-	mov (a0+),r4
25845f
-	mov (a0+),r5
25845f
-	mov (a0+),r6
25845f
-	mov (a0+),r7
25845f
-#ifdef __AM33_2__
25845f
-	fmov (a0+),fs4
25845f
-	fmov (a0+),fs5
25845f
-	fmov (a0+),fs6
25845f
-	fmov (a0+),fs7
25845f
-	fmov (a0+),fs8
25845f
-	fmov (a0+),fs9
25845f
-	fmov (a0+),fs10
25845f
-	fmov (a0+),fs11
25845f
-	fmov (a0+),fs12
25845f
-	fmov (a0+),fs13
25845f
-	fmov (a0+),fs14
25845f
-	fmov (a0+),fs15
25845f
-	fmov (a0+),fs16
25845f
-	fmov (a0+),fs17
25845f
-	fmov (a0+),fs18
25845f
-	fmov (a0+),fs19
25845f
-#endif
25845f
-	mov d1,d0
25845f
-	retf [],0
25845f
-END (__longjmp)
25845f
diff --git a/ports/sysdeps/am33/atomicity.h b/ports/sysdeps/am33/atomicity.h
25845f
deleted file mode 100644
25845f
index b0ba43db4b71a7fc..0000000000000000
25845f
--- a/ports/sysdeps/am33/atomicity.h
25845f
+++ /dev/null
25845f
@@ -1,86 +0,0 @@
25845f
-/* Low-level functions for atomic operations.  AM33 version.
25845f
-   Copyright 1999, 2001 Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-   Contributed by Alexandre Oliva <aoliva@redhat.com>.
25845f
-   Based on ../sparc/sparc32/atomicity.h
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Library General Public License as
25845f
-   published by the Free Software Foundation; either version 2 of the
25845f
-   License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Library General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Library General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#ifndef _ATOMICITY_H
25845f
-#define _ATOMICITY_H	1
25845f
-
25845f
-#include <inttypes.h>
25845f
-
25845f
-#define __acquire_lock(lock) \
25845f
-  __asm__ __volatile__("1:	bset	%1, (%0)\n\t"		\
25845f
-		       "	beq	1b"			\
25845f
-		       : : "a" (&(lock)), "d" (1)		\
25845f
-		       : "memory")
25845f
-
25845f
-#define __release_lock(lock) lock = 0
25845f
-
25845f
-static int
25845f
-__attribute__ ((unused))
25845f
-exchange_and_add (volatile uint32_t *mem, int val)
25845f
-{
25845f
-  static unsigned char lock;
25845f
-  int result;
25845f
-
25845f
-  __acquire_lock (lock);
25845f
-
25845f
-  result = *mem;
25845f
-  *mem += val;
25845f
-
25845f
-  __release_lock (lock);
25845f
-
25845f
-  return result;
25845f
-}
25845f
-
25845f
-static void
25845f
-__attribute__ ((unused))
25845f
-atomic_add (volatile uint32_t *mem, int val)
25845f
-{
25845f
-  static unsigned char lock;
25845f
-
25845f
-  __acquire_lock (lock);
25845f
-
25845f
-  *mem += val;
25845f
-
25845f
-  __release_lock (lock);
25845f
-}
25845f
-
25845f
-static int
25845f
-__attribute__ ((unused))
25845f
-compare_and_swap (volatile long int *p, long int oldval, long int newval)
25845f
-{
25845f
-  static unsigned char lock;
25845f
-  int ret;
25845f
-
25845f
-  __acquire_lock (lock);
25845f
-
25845f
-  if (*p != oldval)
25845f
-    ret = 0;
25845f
-  else
25845f
-    {
25845f
-      *p = newval;
25845f
-      ret = 1;
25845f
-    }
25845f
-
25845f
-  __release_lock (lock);
25845f
-
25845f
-  return ret;
25845f
-}
25845f
-
25845f
-#endif /* atomicity.h */
25845f
diff --git a/ports/sysdeps/am33/bits/endian.h b/ports/sysdeps/am33/bits/endian.h
25845f
deleted file mode 100644
25845f
index 7423f09570ac1650..0000000000000000
25845f
--- a/ports/sysdeps/am33/bits/endian.h
25845f
+++ /dev/null
25845f
@@ -1,7 +0,0 @@
25845f
-/* AM33 is little-endian.  */
25845f
-
25845f
-#ifndef _ENDIAN_H
25845f
-# error "Never use <bits/endian.h> directly; include <endian.h> instead."
25845f
-#endif
25845f
-
25845f
-#define __BYTE_ORDER __LITTLE_ENDIAN
25845f
diff --git a/ports/sysdeps/am33/bits/setjmp.h b/ports/sysdeps/am33/bits/setjmp.h
25845f
deleted file mode 100644
25845f
index 6dd87cb65546ad11..0000000000000000
25845f
--- a/ports/sysdeps/am33/bits/setjmp.h
25845f
+++ /dev/null
25845f
@@ -1,26 +0,0 @@
25845f
-/* Copyright 2001 Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Lesser General Public
25845f
-   License as published by the Free Software Foundation; either
25845f
-   version 2.1 of the License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Lesser General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Lesser General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-/* Define the machine-dependent type `jmp_buf'.  AM33 version. */
25845f
-
25845f
-#ifndef _SETJMP_H
25845f
-# error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
25845f
-#endif
25845f
-
25845f
-#ifndef _ASM
25845f
-typedef int __jmp_buf[26];
25845f
-#endif
25845f
diff --git a/ports/sysdeps/am33/bsd-_setjmp.S b/ports/sysdeps/am33/bsd-_setjmp.S
25845f
deleted file mode 100644
25845f
index 9bbfcbbba793502b..0000000000000000
25845f
--- a/ports/sysdeps/am33/bsd-_setjmp.S
25845f
+++ /dev/null
25845f
@@ -1 +0,0 @@
25845f
-/* _setjmp is in setjmp.S */
25845f
diff --git a/ports/sysdeps/am33/bsd-setjmp.S b/ports/sysdeps/am33/bsd-setjmp.S
25845f
deleted file mode 100644
25845f
index b6b239e67db2864c..0000000000000000
25845f
--- a/ports/sysdeps/am33/bsd-setjmp.S
25845f
+++ /dev/null
25845f
@@ -1 +0,0 @@
25845f
-/* setjmp is in setjmp.S */
25845f
diff --git a/ports/sysdeps/am33/dl-machine.h b/ports/sysdeps/am33/dl-machine.h
25845f
deleted file mode 100644
25845f
index d4b321aca094863e..0000000000000000
25845f
--- a/ports/sysdeps/am33/dl-machine.h
25845f
+++ /dev/null
25845f
@@ -1,479 +0,0 @@
25845f
-/* Machine-dependent ELF dynamic relocation inline functions.  AM33 version.
25845f
-   Copyright (C) 1995,96,97,98,99,2000,2001, 2004, 2011
25845f
-   Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Library General Public License as
25845f
-   published by the Free Software Foundation; either version 2 of the
25845f
-   License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Library General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Library General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#ifndef dl_machine_h
25845f
-#define dl_machine_h
25845f
-
25845f
-#define ELF_MACHINE_NAME "mn10300"
25845f
-
25845f
-#include <sys/param.h>
25845f
-
25845f
-/* Return nonzero iff ELF header is compatible with the running host.  */
25845f
-static inline int __attribute__ ((unused))
25845f
-elf_machine_matches_host (const Elf32_Ehdr *ehdr)
25845f
-{
25845f
-  return ehdr->e_machine == EM_MN10300;
25845f
-}
25845f
-
25845f
-
25845f
-/* Return the link-time address of _DYNAMIC.  Conveniently, this is the
25845f
-   first element of the GOT.  This must be inlined in a function which
25845f
-   uses global data.  */
25845f
-static inline Elf32_Addr __attribute__ ((unused))
25845f
-elf_machine_dynamic (void)
25845f
-{
25845f
-  register Elf32_Addr *got asm ("a2");
25845f
-  return *got;
25845f
-}
25845f
-
25845f
-
25845f
-/* Return the run-time load address of the shared object.  */
25845f
-static inline Elf32_Addr __attribute__ ((unused))
25845f
-elf_machine_load_address (void)
25845f
-{
25845f
-  register Elf32_Addr gotaddr asm ("a2");
25845f
-  Elf32_Addr off, gotval;
25845f
-
25845f
-  asm ("mov _dl_start@GOTOFF,%0" : "=r" (off));
25845f
-  asm ("mov (_dl_start@GOT,%1),%0" : "=r" (gotval) : "r" (gotaddr));
25845f
-
25845f
-  return off + gotaddr - gotval;
25845f
-}
25845f
-
25845f
-#ifndef PROF
25845f
-/* We add a declaration of this function here so that in dl-runtime.c
25845f
-   the ELF_MACHINE_RUNTIME_TRAMPOLINE macro really can pass the parameters
25845f
-   in registers.
25845f
-
25845f
-   We cannot use this scheme for profiling because the _mcount call
25845f
-   destroys the passed register information.  */
25845f
-static ElfW(Addr) fixup (struct link_map *l, ElfW(Word) reloc_offset)
25845f
-     __attribute__ ((unused));
25845f
-static ElfW(Addr) profile_fixup (struct link_map *l, ElfW(Word) reloc_offset,
25845f
-				 ElfW(Addr) retaddr)
25845f
-     __attribute__ ((unused));
25845f
-#endif
25845f
-
25845f
-/* Set up the loaded object described by L so its unrelocated PLT
25845f
-   entries will jump to the on-demand fixup code in dl-runtime.c.  */
25845f
-
25845f
-static inline int __attribute__ ((unused))
25845f
-elf_machine_runtime_setup (struct link_map *l, int lazy, int profile)
25845f
-{
25845f
-  Elf32_Addr *got;
25845f
-  extern void _dl_runtime_resolve (Elf32_Word) attribute_hidden;
25845f
-  extern void _dl_runtime_profile (Elf32_Word) attribute_hidden;
25845f
-
25845f
-  if (l->l_info[DT_JMPREL] && lazy)
25845f
-    {
25845f
-      /* The GOT entries for functions in the PLT have not yet been filled
25845f
-	 in.  Their initial contents will arrange when called to push an
25845f
-	 offset into the .rel.plt section, push _GLOBAL_OFFSET_TABLE_[1],
25845f
-	 and then jump to _GLOBAL_OFFSET_TABLE[2].  */
25845f
-      got = (Elf32_Addr *) D_PTR (l, l_info[DT_PLTGOT]);
25845f
-      got[1] = (Elf32_Addr) l;	/* Identify this shared object.  */
25845f
-
25845f
-      /* The got[2] entry contains the address of a function which gets
25845f
-	 called to get the address of a so far unresolved function and
25845f
-	 jump to it.  The profiling extension of the dynamic linker allows
25845f
-	 to intercept the calls to collect information.  In this case we
25845f
-	 don't store the address in the GOT so that all future calls also
25845f
-	 end in this function.  */
25845f
-      if (__builtin_expect (profile, 0))
25845f
-	{
25845f
-	  got[2] = (Elf32_Addr) &_dl_runtime_profile;
25845f
-
25845f
-	  if (_dl_name_match_p (GLRO(dl_profile), l))
25845f
-	    /* This is the object we are looking for.  Say that we really
25845f
-	       want profiling and the timers are started.  */
25845f
-	    GL(dl_profile_map) = l;
25845f
-	}
25845f
-      else
25845f
-	/* This function will get called to fix up the GOT entry indicated by
25845f
-	   the offset on the stack, and then jump to the resolved address.  */
25845f
-	got[2] = (Elf32_Addr) &_dl_runtime_resolve;
25845f
-    }
25845f
-
25845f
-  return lazy;
25845f
-}
25845f
-
25845f
-/* This code is used in dl-runtime.c to call the `fixup' function
25845f
-   and then redirect to the address it returns.  */
25845f
-#ifndef PROF
25845f
-# define ELF_MACHINE_RUNTIME_TRAMPOLINE asm ("\
25845f
-	.text\n\
25845f
-	.globl _dl_runtime_resolve\n\
25845f
-	.type _dl_runtime_resolve, @function\n\
25845f
-_dl_runtime_resolve:\n\
25845f
-	add -12,sp		# Preserve registers otherwise clobbered.\n\
25845f
-	mov d1,(20,sp)\n\
25845f
-	mov d0,(16,sp)\n\
25845f
-	mov r1,d0\n\
25845f
-	mov r0,d1\n\
25845f
-	call fixup,[],0		# Call resolver.\n\
25845f
-	mov d0,a0\n\
25845f
-	mov (12,sp),d1		# Copy return address back to mdr,\n\
25845f
-	mov d1,mdr		# in case the callee returns with retf\n\
25845f
-	mov (16,sp),d0		# Get register content back.\n\
25845f
-	mov (20,sp),d1\n\
25845f
-	add 12,sp\n\
25845f
-	jmp (a0)\n\
25845f
-	.size _dl_runtime_resolve, .-_dl_runtime_resolve\n\
25845f
-\n\
25845f
-	.globl _dl_runtime_profile\n\
25845f
-	.type _dl_runtime_profile, @function\n\
25845f
-_dl_runtime_profile:\n\
25845f
-	add -12,sp		# Preserve registers otherwise clobbered.\n\
25845f
-	mov d1,(20,sp)\n\
25845f
-	mov d0,(16,sp)\n\
25845f
-	mov r1,d0\n\
25845f
-	mov r0,d1\n\
25845f
-	call profile_fixup,[],0		# Call resolver.\n\
25845f
-	mov d0,a0\n\
25845f
-	mov (12,sp),d1		# Copy return address back to mdr,\n\
25845f
-	mov d1,mdr		# in case the callee returns with retf\n\
25845f
-	mov (16,sp),d0		# Get register content back.\n\
25845f
-	mov (20,sp),d1\n\
25845f
-	add 12,sp\n\
25845f
-	jmp (a0)\n\
25845f
-	.size _dl_runtime_profile, .-_dl_runtime_profile\n\
25845f
-	.previous\n\
25845f
-");
25845f
-#else
25845f
-# define ELF_MACHINE_RUNTIME_TRAMPOLINE asm ("\n\
25845f
-	.text\n\
25845f
-	.globl _dl_runtime_resolve\n\
25845f
-	.globl _dl_runtime_profile\n\
25845f
-	.type _dl_runtime_resolve, @function\n\
25845f
-	.type _dl_runtime_profile, @function\n\
25845f
-_dl_runtime_resolve:\n\
25845f
-_dl_runtime_profile:\n\
25845f
-	add -12,sp		# Preserve registers otherwise clobbered.\n\
25845f
-	mov d1,(20,sp)\n\
25845f
-	mov d0,(16,sp)\n\
25845f
-	mov r1,d0\n\
25845f
-	mov r0,d1\n\
25845f
-	call profile_fixup,[],0		# Call resolver.\n\
25845f
-	mov d0,a0\n\
25845f
-	mov (12,sp),d1		# Copy return address back to mdr,\n\
25845f
-	mov d1,mdr		# in case the callee returns with retf\n\
25845f
-	mov (16,sp),d0		# Get register content back.\n\
25845f
-	mov (20,sp),d1\n\
25845f
-	add 12,sp\n\
25845f
-	jmp (a0)\n\
25845f
-	.size _dl_runtime_resolve, .-_dl_runtime_resolve\n\
25845f
-	.size _dl_runtime_profile, .-_dl_runtime_profile\n\
25845f
-	.previous\n\
25845f
-");
25845f
-#endif
25845f
-
25845f
-/* Mask identifying addresses reserved for the user program,
25845f
-   where the dynamic linker should not map anything.  */
25845f
-#define ELF_MACHINE_USER_ADDRESS_MASK	0xf8000000UL
25845f
-
25845f
-/* Initial entry point code for the dynamic linker.
25845f
-   The C function `_dl_start' is the real entry point;
25845f
-   its return value is the user program's entry point.  */
25845f
-#define RTLD_START asm ("\n\
25845f
-	.text\n\
25845f
-.globl _start\n\
25845f
-.globl _dl_start_user\n\
25845f
-_start:\n\
25845f
-	mov 0,a3	# Mark the top of the stack\n\
25845f
-	mov sp,a1\n\
25845f
-	add -20,sp	# Prepare for function call\n\
25845f
-	mov a1,d0\n\
25845f
-	call _dl_start,[],0\n\
25845f
-_dl_start_user:\n\
25845f
-	# Save the user entry point address in d2.\n\
25845f
-	mov d0,d2\n\
25845f
-	# Point a2 at the GOT.\n\
25845f
-0:	mov pc,a2\n\
25845f
-	add _GLOBAL_OFFSET_TABLE_ - (0b-.),a2\n\
25845f
-	# Store the highest stack address\n\
25845f
-	mov (__libc_stack_end@GOT,a2),a0\n\
25845f
-	mov a1,(a0)\n\
25845f
-	# See if we were run as a command with the executable file\n\
25845f
-	# name as an extra leading argument.\n\
25845f
-	mov (_dl_skip_args@GOT,a2),a0\n\
25845f
-	mov (a0),d0\n\
25845f
-	# Pop the original argument count.\n\
25845f
-	mov (20,sp),d3\n\
25845f
-	# Subtract _dl_skip_args from it.\n\
25845f
-	sub d0,d3\n\
25845f
-	# Adjust the stack pointer to skip _dl_skip_args words.\n\
25845f
-	asl2 d0\n\
25845f
-	mov sp,a0\n\
25845f
-	add d0,a0\n\
25845f
-	mov a0,sp\n\
25845f
-	# Push argc back on the stack.\n\
25845f
-	mov d3,(20,sp)\n\
25845f
-	# The special initializer gets called with the stack just\n\
25845f
-	# as the application's entry point will see it; it can\n\
25845f
-	# switch stacks if it moves these contents over.\n\
25845f
-" RTLD_START_SPECIAL_INIT "\n\
25845f
-	# Load the parameters again.\n\
25845f
-	# (d0, d1, (12,sp), (16,sp)) = (_dl_loaded, argc, argv, envp)\n\
25845f
-	add 24,a0\n\
25845f
-	mov a0,(12,sp)	# a0 is 24+sp\n\
25845f
-	mov d3,d1	# d3 contained argc\n\
25845f
-	inc d3\n\
25845f
-	asl2 d3		# d3 is now (argc+1)*4,\n\
25845f
-	add d3,a0	# the offset between argv and envp\n\
25845f
-	mov a0,(16,sp)\n\
25845f
-	mov (_rtld_local@GOTOFF,a2),d0\n\
25845f
-	# Call the function to run the initializers.\n\
25845f
-	call _dl_init@PLT,[],0\n\
25845f
-	# Pass our finalizer function to the user in d0, as per ELF ABI.\n\
25845f
-	mov (_dl_fini@GOT,a2),d0\n\
25845f
-	add 20,sp\n\
25845f
-	# Jump to the user's entry point.\n\
25845f
-	mov d2,a1\n\
25845f
-	jmp (a1)\n\
25845f
-	.previous\n\
25845f
-");
25845f
-
25845f
-#ifndef RTLD_START_SPECIAL_INIT
25845f
-#define RTLD_START_SPECIAL_INIT /* nothing */
25845f
-#endif
25845f
-
25845f
-/* ELF_RTYPE_CLASS_PLT iff TYPE describes relocation of a PLT entry, so
25845f
-   PLT entries should not be allowed to define the value.
25845f
-   ELF_RTYPE_CLASS_NOCOPY iff TYPE should not be allowed to resolve to one
25845f
-   of the main executable's symbols, as for a COPY reloc.  */
25845f
-#define elf_machine_type_class(type) \
25845f
-  ((((type) == R_MN10300_JMP_SLOT) * ELF_RTYPE_CLASS_PLT)	\
25845f
-   | (((type) == R_MN10300_COPY) * ELF_RTYPE_CLASS_COPY))
25845f
-
25845f
-/* A reloc type used for ld.so cmdline arg lookups to reject PLT entries.  */
25845f
-#define ELF_MACHINE_JMP_SLOT	R_MN10300_JMP_SLOT
25845f
-
25845f
-static inline Elf32_Addr
25845f
-elf_machine_fixup_plt (struct link_map *map, lookup_t t,
25845f
-		       const Elf32_Rela *reloc,
25845f
-		       Elf32_Addr *reloc_addr, Elf32_Addr value)
25845f
-{
25845f
-  return *reloc_addr = value;
25845f
-}
25845f
-
25845f
-/* Return the final value of a plt relocation.  */
25845f
-static inline Elf32_Addr
25845f
-elf_machine_plt_value (struct link_map *map, const Elf32_Rela *reloc,
25845f
-		       Elf32_Addr value)
25845f
-{
25845f
-  return value + reloc->r_addend;
25845f
-}
25845f
-
25845f
-#endif /* !dl_machine_h */
25845f
-
25845f
-#ifdef RESOLVE
25845f
-
25845f
-/* The mn10300 never uses Elf32_Rel relocations.  */
25845f
-#define ELF_MACHINE_NO_REL 1
25845f
-
25845f
-/* Perform the relocation specified by RELOC and SYM (which is fully resolved).
25845f
-   MAP is the object containing the reloc.  */
25845f
-
25845f
-static inline void
25845f
-elf_machine_rela (struct link_map *map, const Elf32_Rela *reloc,
25845f
-		  const Elf32_Sym *sym, const struct r_found_version *version,
25845f
-		  void *const reloc_addr_arg, int skip_ifunc)
25845f
-{
25845f
-  const unsigned int r_type = ELF32_R_TYPE (reloc->r_info);
25845f
-  Elf32_Addr value, *reloc_addr;
25845f
-
25845f
-  /* Make sure we drop any previous alignment assumptions.  */
25845f
-  asm ("" : "=r" (reloc_addr) : "0" (reloc_addr_arg));
25845f
-
25845f
-#define COPY_UNALIGNED_WORD(sw, tw, align) \
25845f
-  { \
25845f
-    unsigned long *__sl = (void*)&(sw), *__tl = (void*)&(tw); \
25845f
-    unsigned short *__ss = (void*)&(sw), *__ts = (void*)&(tw); \
25845f
-    unsigned char *__sc = (void*)&(sw), *__tc = (void*)&(tw); \
25845f
-    switch ((align)) \
25845f
-    { \
25845f
-    case 0: \
25845f
-      *__tl = *__sl; \
25845f
-      break; \
25845f
-    case 2: \
25845f
-      *__ts++ = *__ss++; \
25845f
-      *__ts = *__ss; \
25845f
-      break; \
25845f
-    default: \
25845f
-      *__tc++ = *__sc++; \
25845f
-      *__tc++ = *__sc++; \
25845f
-      *__tc++ = *__sc++; \
25845f
-      *__tc = *__sc; \
25845f
-      break; \
25845f
-    } \
25845f
-  }
25845f
-
25845f
-#define COPY_UNALIGNED_HALFWORD(sw, tw, align) \
25845f
-  { \
25845f
-    unsigned short *__ss = (void*)&(sw), *__ts = (void*)&(tw); \
25845f
-    unsigned char *__sc = (void*)&(sw), *__tc = (void*)&(tw); \
25845f
-    switch ((align)) \
25845f
-    { \
25845f
-    case 0: \
25845f
-      *__ts = *__ss; \
25845f
-      break; \
25845f
-    default: \
25845f
-      *__tc++ = *__sc++; \
25845f
-      *__tc = *__sc; \
25845f
-      break; \
25845f
-    } \
25845f
-  }
25845f
-
25845f
-#if !defined RTLD_BOOTSTRAP || !defined HAVE_Z_COMBRELOC
25845f
-  if (__builtin_expect (r_type == R_MN10300_RELATIVE, 0))
25845f
-    {
25845f
-# if !defined RTLD_BOOTSTRAP && !defined HAVE_Z_COMBRELOC
25845f
-      /* This is defined in rtld.c, but nowhere in the static libc.a;
25845f
-	 make the reference weak so static programs can still link.
25845f
-	 This declaration cannot be done when compiling rtld.c (i.e.
25845f
-	 #ifdef RTLD_BOOTSTRAP) because rtld.c contains the common
25845f
-	 defn for _dl_rtld_map, which is incompatible with a weak decl
25845f
-	 in the same file.  */
25845f
-      weak_extern (_dl_rtld_map);
25845f
-      if (map != &_dl_rtld_map) /* Already done in rtld itself. */
25845f
-# endif
25845f
-	{
25845f
-	  COPY_UNALIGNED_WORD (*reloc_addr, value, (int) reloc_addr & 3);
25845f
-	  value += map->l_addr;
25845f
-	  COPY_UNALIGNED_WORD (value, *reloc_addr, (int) reloc_addr & 3);
25845f
-	}
25845f
-    }
25845f
-# ifndef RTLD_BOOTSTRAP
25845f
-  else if (__builtin_expect (r_type == R_MN10300_NONE, 0))
25845f
-    return;
25845f
-# endif
25845f
-  else
25845f
-#endif
25845f
-    {
25845f
-#ifndef RTLD_BOOTSTRAP
25845f
-      const Elf32_Sym *const refsym = sym;
25845f
-#endif
25845f
-
25845f
-      value = RESOLVE (&sym, version, ELF32_R_TYPE (reloc->r_info));
25845f
-      if (sym)
25845f
-	value += sym->st_value;
25845f
-      value += reloc->r_addend;	/* Assume copy relocs have zero addend.  */
25845f
-
25845f
-      switch (r_type)
25845f
-	{
25845f
-#ifndef RTLD_BOOTSTRAP
25845f
-	case R_MN10300_COPY:
25845f
-	  if (sym == NULL)
25845f
-	    /* This can happen in trace mode if an object could not be
25845f
-	       found.  */
25845f
-	    break;
25845f
-	  if (sym->st_size > refsym->st_size
25845f
-	      || (GLRO(dl_verbose) && sym->st_size < refsym->st_size))
25845f
-	    {
25845f
-	      extern char **_dl_argv;
25845f
-	      const char *strtab;
25845f
-
25845f
-	      strtab = (const void *) D_PTR (map, l_info[DT_STRTAB]);
25845f
-	      _dl_error_printf ("\
25845f
-%s: Symbol `%s' has different size in shared object, consider re-linking\n",
25845f
-				_dl_argv[0] ?: "<program name unknown>",
25845f
-				strtab + refsym->st_name);
25845f
-	    }
25845f
-	  memcpy (reloc_addr, (void *) value, MIN (sym->st_size,
25845f
-						   refsym->st_size));
25845f
-	  break;
25845f
-#endif
25845f
-	case R_MN10300_GLOB_DAT:
25845f
-	case R_MN10300_JMP_SLOT:
25845f
-	  /* These addresses are always aligned.  */
25845f
-	  *reloc_addr = value;
25845f
-	  break;
25845f
-	case R_MN10300_32:
25845f
-	  COPY_UNALIGNED_WORD (value, *reloc_addr, (int) reloc_addr & 3);
25845f
-	  break;
25845f
-#ifndef RTLD_BOOTSTRAP
25845f
-	case R_MN10300_16:
25845f
-	  COPY_UNALIGNED_HALFWORD (value, *reloc_addr, (int) reloc_addr & 1);
25845f
-	  break;
25845f
-	case R_MN10300_8:
25845f
-	  *(char *) reloc_addr = value;
25845f
-	  break;
25845f
-	case R_MN10300_PCREL32:
25845f
-	  value -= (Elf32_Addr) reloc_addr;
25845f
-	  COPY_UNALIGNED_WORD (value, *reloc_addr, (int) reloc_addr & 3);
25845f
-	  break;
25845f
-	case R_MN10300_PCREL16:
25845f
-	  value -= (Elf32_Addr) reloc_addr;
25845f
-	  COPY_UNALIGNED_HALFWORD (value, *reloc_addr, (int) reloc_addr & 1);
25845f
-	  break;
25845f
-	case R_MN10300_PCREL8:
25845f
-	  value -= (Elf32_Addr) reloc_addr;
25845f
-	  *(char *) reloc_addr = (value - (Elf32_Addr) reloc_addr);
25845f
-	  break;
25845f
-#endif
25845f
-	case R_MN10300_NONE:		/* Alright, Wilbur.  */
25845f
-	  break;
25845f
-#if !defined RTLD_BOOTSTRAP || defined _NDEBUG
25845f
-	default:
25845f
-	  _dl_reloc_bad_type (map, ELFW(R_TYPE) (reloc->r_info), 0);
25845f
-	  break;
25845f
-#endif
25845f
-	}
25845f
-
25845f
-    }
25845f
-}
25845f
-
25845f
-static inline void
25845f
-elf_machine_rela_relative (Elf32_Addr l_addr, const Elf32_Rela *reloc,
25845f
-			   void *const reloc_addr_arg)
25845f
-{
25845f
-  Elf32_Addr value, *reloc_addr;
25845f
-
25845f
-  asm ("" : "=r" (reloc_addr) : "0" (reloc_addr_arg));
25845f
-
25845f
-  COPY_UNALIGNED_WORD (*reloc_addr, value, (int)reloc_addr & 3);
25845f
-  value += l_addr;
25845f
-  COPY_UNALIGNED_WORD (value, *reloc_addr, (int)reloc_addr & 3);
25845f
-}
25845f
-
25845f
-static inline void
25845f
-elf_machine_lazy_rel (struct link_map *map,
25845f
-		      Elf32_Addr l_addr, const Elf32_Rela *reloc,
25845f
-		      int skip_ifunc)
25845f
-{
25845f
-  unsigned long int const r_type = ELF32_R_TYPE (reloc->r_info);
25845f
-
25845f
-  /* Check for unexpected PLT reloc type.  */
25845f
-  if (__builtin_expect (r_type, R_MN10300_JMP_SLOT) == R_MN10300_JMP_SLOT)
25845f
-    {
25845f
-      Elf32_Addr* const reloc_addr = (void *)(l_addr + reloc->r_offset);
25845f
-      Elf32_Addr value;
25845f
-
25845f
-      /* Perform a RELATIVE reloc on the .got entry that transfers
25845f
-	 to the .plt.  */
25845f
-      COPY_UNALIGNED_WORD (*reloc_addr, value, (int)reloc_addr & 3);
25845f
-      value += l_addr;
25845f
-      COPY_UNALIGNED_WORD (value, *reloc_addr, (int)reloc_addr & 3);
25845f
-    }
25845f
-  else if (__builtin_expect (r_type, R_MN10300_NONE) != R_MN10300_NONE)
25845f
-    _dl_reloc_bad_type (map, ELFW(R_TYPE) (reloc->r_info), 1);
25845f
-
25845f
-}
25845f
-
25845f
-#endif /* RESOLVE */
25845f
diff --git a/ports/sysdeps/am33/elf/start.S b/ports/sysdeps/am33/elf/start.S
25845f
deleted file mode 100644
25845f
index 518e75e478bbeb78..0000000000000000
25845f
--- a/ports/sysdeps/am33/elf/start.S
25845f
+++ /dev/null
25845f
@@ -1,80 +0,0 @@
25845f
-/* Startup code compliant to the ELF MN10300 ABI.
25845f
-   Copyright (C) 1995,1996,1997,1998,2000,2001 Free Software Foundation, Inc.
25845f
-   Contributed by Alexandre Oliva  <aoliva@redhat.com>
25845f
-   Based on ../../i386/elf/start.S.
25845f
-   This file is part of the GNU C Library.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Lesser General Public
25845f
-   License as published by the Free Software Foundation; either
25845f
-   version 2.1 of the License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Lesser General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Lesser General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-/* This is the canonical entry point, usually the first thing in the text
25845f
-   segment.  The SVR4/i386 ABI (pages 3-31, 3-32) says that when the entry
25845f
-   point runs, most registers' values are unspecified, except for:
25845f
-
25845f
-   a0		Contains a function pointer to be registered with `atexit'.
25845f
-		This is how the dynamic linker arranges to have DT_FINI
25845f
-		functions called for shared libraries that have been loaded
25845f
-		before this code runs.
25845f
-
25845f
-   sp		The stack contains the arguments and environment:
25845f
-		(4,sp)			argc
25845f
-		(8,sp)			argv[0]
25845f
-		...
25845f
-		(4*(argc+1),sp)		NULL
25845f
-		(4*(argc+2),sp)		envp[0]
25845f
-		...
25845f
-					NULL
25845f
-*/
25845f
-
25845f
-#include "bp-sym.h"
25845f
-
25845f
-	.text
25845f
-	.globl _start
25845f
-	.type _start,@function
25845f
-_start:
25845f
-	/* Extract the arguments as encoded on the stack and set up
25845f
-	   the arguments for `main': argc, argv.  envp will be determined
25845f
-	   later in __libc_start_main.  */
25845f
-	mov sp,a3
25845f
-	add -32,sp
25845f
-	
25845f
-	mov a3,(28,sp)		/* stack_end.  */	
25845f
-	mov d0,(24,sp)		/* rtld_fini.  */
25845f
-	mov _fini, d3
25845f
-	mov d3,(20,sp)		/* fini.  */
25845f
-	mov _init, d2
25845f
-	mov d2,(16,sp)		/* init.  */
25845f
-	inc4 a3
25845f
-	mov a3,(12,sp)		/* argv.  */
25845f
-	
25845f
-	/* Set the initial frame pointer as 0, so that the bottom of
25845f
-	   the stack is clearly marked.  */
25845f
-	mov 0,a3
25845f
-
25845f
-	mov (32,sp), d1		/* argc.  */
25845f
-	mov BP_SYM (main), d0	/* main.  */
25845f
-
25845f
-	/* Call the user's main function, and exit with its value.
25845f
-	   But let the libc call main.    */
25845f
-	call BP_SYM (__libc_start_main),[],0
25845f
-
25845f
-	call BP_SYM (abort),[],0 /* Crash if somehow `exit' does return.  */
25845f
-
25845f
-/* Define a symbol for the first piece of initialized data.  */
25845f
-	.data
25845f
-	.globl __data_start
25845f
-__data_start:
25845f
-	.long 0
25845f
-	.weak data_start
25845f
-	data_start = __data_start
25845f
diff --git a/ports/sysdeps/am33/fpu/bits/fenv.h b/ports/sysdeps/am33/fpu/bits/fenv.h
25845f
deleted file mode 100644
25845f
index b0e60e9312f135b2..0000000000000000
25845f
--- a/ports/sysdeps/am33/fpu/bits/fenv.h
25845f
+++ /dev/null
25845f
@@ -1,72 +0,0 @@
25845f
-/* Copyright (C) 1998-2012 Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-   Contributed by Alexandre Oliva <aoliva@redhat.com>
25845f
-   based on the corresponding file in the mips port.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Lesser General Public
25845f
-   License as published by the Free Software Foundation; either
25845f
-   version 2.1 of the License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Lesser General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Lesser General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#ifndef _FENV_H
25845f
-# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
25845f
-#endif
25845f
-
25845f
-
25845f
-/* Define bits representing the exception.  We use the EF bit
25845f
-   positions of the appropriate bits in the FPCR register.  */
25845f
-enum
25845f
-  {
25845f
-    FE_INEXACT =
25845f
-#define FE_INEXACT	0x01
25845f
-      FE_INEXACT,
25845f
-    FE_UNDERFLOW =
25845f
-#define FE_UNDERFLOW	0x02
25845f
-      FE_UNDERFLOW,
25845f
-    FE_OVERFLOW =
25845f
-#define FE_OVERFLOW	0x04
25845f
-      FE_OVERFLOW,
25845f
-    FE_DIVBYZERO =
25845f
-#define FE_DIVBYZERO	0x08
25845f
-      FE_DIVBYZERO,
25845f
-    FE_INVALID =
25845f
-#define FE_INVALID	0x10
25845f
-      FE_INVALID,
25845f
-  };
25845f
-
25845f
-#define FE_ALL_EXCEPT \
25845f
-	(FE_INEXACT | FE_DIVBYZERO | FE_UNDERFLOW | FE_OVERFLOW | FE_INVALID)
25845f
-
25845f
-/* The AM33/2.0 FPU supports only Round to nearest.  Bits 3<<16 are
25845f
-   reserved to represent other rounding modes.  */
25845f
-enum
25845f
-  {
25845f
-    FE_TONEAREST =
25845f
-#define FE_TONEAREST	0x00000
25845f
-      FE_TONEAREST,
25845f
-  };
25845f
-
25845f
-
25845f
-/* Type representing exception flags.  */
25845f
-typedef unsigned int fexcept_t;
25845f
-
25845f
-
25845f
-/* Type representing floating-point environment.  */
25845f
-typedef unsigned int fenv_t;
25845f
-
25845f
-/* If the default argument is used we use this value.  */
25845f
-#define FE_DFL_ENV	((__const fenv_t *) -1)
25845f
-
25845f
-#ifdef __USE_GNU
25845f
-/* Floating-point environment where none of the exception is masked.  */
25845f
-# define FE_NOMASK_ENV  ((__const fenv_t *) -2)
25845f
-#endif
25845f
diff --git a/ports/sysdeps/am33/fpu/fclrexcpt.c b/ports/sysdeps/am33/fpu/fclrexcpt.c
25845f
deleted file mode 100644
25845f
index 492ea38ba39bf061..0000000000000000
25845f
--- a/ports/sysdeps/am33/fpu/fclrexcpt.c
25845f
+++ /dev/null
25845f
@@ -1,52 +0,0 @@
25845f
-/* Clear given exceptions in current floating-point environment.
25845f
-   Copyright (C) 1998-2012 Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-   Contributed by Alexandre Oliva <aoliva@redhat.com>
25845f
-   based on corresponding file in the MIPS port.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Lesser General Public
25845f
-   License as published by the Free Software Foundation; either
25845f
-   version 2.1 of the License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Lesser General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Lesser General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#include <fenv.h>
25845f
-#include <fenv_libc.h>
25845f
-#include <fpu_control.h>
25845f
-#include <shlib-compat.h>
25845f
-
25845f
-int
25845f
-__feclearexcept (int excepts)
25845f
-{
25845f
-  fpu_control_t cw;
25845f
-
25845f
-  /* Mask out unsupported bits/exceptions.  */
25845f
-  excepts &= FE_ALL_EXCEPT;
25845f
-
25845f
-  /* Read the complete control word.  */
25845f
-  _FPU_GETCW (cw);
25845f
-
25845f
-  /* Clear exception flag bits and cause bits.  EF bits are cleared by
25845f
-     assigning 1 to them (and there's no way to set them); other bits
25845f
-     are copied normally.  */
25845f
-
25845f
-  cw &= ~((excepts << CAUSE_SHIFT) | FE_ALL_EXCEPT);
25845f
-  cw |= excepts;
25845f
-
25845f
-  /* Put the new data in effect.  */
25845f
-  _FPU_SETFCW (cw);
25845f
-
25845f
-  /* Success.  */
25845f
-  return 0;
25845f
-}
25845f
-
25845f
-libm_hidden_ver (__feclearexcept, feclearexcept)
25845f
-versioned_symbol (libm, __feclearexcept, feclearexcept, GLIBC_2_2);
25845f
diff --git a/ports/sysdeps/am33/fpu/fedisblxcpt.c b/ports/sysdeps/am33/fpu/fedisblxcpt.c
25845f
deleted file mode 100644
25845f
index 170f8200ed1224fa..0000000000000000
25845f
--- a/ports/sysdeps/am33/fpu/fedisblxcpt.c
25845f
+++ /dev/null
25845f
@@ -1,41 +0,0 @@
25845f
-/* Disable floating-point exceptions.
25845f
-   Copyright (C) 2000, 2004 Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-   Contributed by Alexandre Oliva <aoliva@redhat.com>
25845f
-   based on corresponding file in the MIPS port.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Lesser General Public
25845f
-   License as published by the Free Software Foundation; either
25845f
-   version 2.1 of the License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Lesser General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Lesser General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#include <fenv.h>
25845f
-#include <fenv_libc.h>
25845f
-#include <fpu_control.h>
25845f
-
25845f
-int
25845f
-fedisableexcept (int excepts)
25845f
-{
25845f
-  fpu_control_t new_exc, old_exc;
25845f
-
25845f
-  /* Get the current control word.  */
25845f
-  _FPU_GETCW (new_exc);
25845f
-
25845f
-  old_exc = (new_exc & ENABLE_MASK) >> ENABLE_SHIFT;
25845f
-
25845f
-  excepts &= FE_ALL_EXCEPT;
25845f
-
25845f
-  new_exc &= ~(excepts << ENABLE_SHIFT);
25845f
-  _FPU_SETCW (new_exc);
25845f
-
25845f
-  return old_exc;
25845f
-}
25845f
diff --git a/ports/sysdeps/am33/fpu/feenablxcpt.c b/ports/sysdeps/am33/fpu/feenablxcpt.c
25845f
deleted file mode 100644
25845f
index fe6d880c2192fd7c..0000000000000000
25845f
--- a/ports/sysdeps/am33/fpu/feenablxcpt.c
25845f
+++ /dev/null
25845f
@@ -1,41 +0,0 @@
25845f
-/* Enable floating-point exceptions.
25845f
-   Copyright (C) 2000, 2004 Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-   Contributed by Alexandre Oliva <aoliva@redhat.com>
25845f
-   based on corresponding file in the MIPS port.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Lesser General Public
25845f
-   License as published by the Free Software Foundation; either
25845f
-   version 2.1 of the License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Lesser General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Lesser General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#include <fenv.h>
25845f
-#include <fenv_libc.h>
25845f
-#include <fpu_control.h>
25845f
-
25845f
-int
25845f
-feenableexcept (int excepts)
25845f
-{
25845f
-  fpu_control_t new_exc, old_exc;
25845f
-
25845f
-  /* Get the current control word.  */
25845f
-  _FPU_GETCW (new_exc);
25845f
-
25845f
-  old_exc = (new_exc & ENABLE_MASK) >> ENABLE_SHIFT;
25845f
-
25845f
-  excepts &= FE_ALL_EXCEPT;
25845f
-
25845f
-  new_exc |= excepts << ENABLE_SHIFT;
25845f
-  _FPU_SETCW (new_exc);
25845f
-
25845f
-  return old_exc;
25845f
-}
25845f
diff --git a/ports/sysdeps/am33/fpu/fegetenv.c b/ports/sysdeps/am33/fpu/fegetenv.c
25845f
deleted file mode 100644
25845f
index 6da6eeb91357d2d5..0000000000000000
25845f
--- a/ports/sysdeps/am33/fpu/fegetenv.c
25845f
+++ /dev/null
25845f
@@ -1,34 +0,0 @@
25845f
-/* Store current floating-point environment.
25845f
-   Copyright (C) 1998, 1999, 2000, 2002, 2004 Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-   Contributed by Alexandre Oliva <aoliva@redhat.com>
25845f
-   based on corresponding file in the MIPS port.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Lesser General Public
25845f
-   License as published by the Free Software Foundation; either
25845f
-   version 2.1 of the License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Lesser General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Lesser General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#include <fenv.h>
25845f
-#include <fpu_control.h>
25845f
-#include <shlib-compat.h>
25845f
-
25845f
-int
25845f
-__fegetenv (fenv_t *envp)
25845f
-{
25845f
-  _FPU_GETCW (*envp);
25845f
-
25845f
-  /* Success.  */
25845f
-  return 0;
25845f
-}
25845f
-
25845f
-versioned_symbol (libm, __fegetenv, fegetenv, GLIBC_2_2);
25845f
diff --git a/ports/sysdeps/am33/fpu/fegetexcept.c b/ports/sysdeps/am33/fpu/fegetexcept.c
25845f
deleted file mode 100644
25845f
index 13e5306af994302c..0000000000000000
25845f
--- a/ports/sysdeps/am33/fpu/fegetexcept.c
25845f
+++ /dev/null
25845f
@@ -1,34 +0,0 @@
25845f
-/* Get enabled floating-point exceptions.
25845f
-   Copyright (C) 2000, 2004 Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-   Contributed by Alexandre Oliva <aoliva@redhat.com>
25845f
-   based on corresponding file in the MIPS port.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Lesser General Public
25845f
-   License as published by the Free Software Foundation; either
25845f
-   version 2.1 of the License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Lesser General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Lesser General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#include <fenv.h>
25845f
-#include <fenv_libc.h>
25845f
-#include <fpu_control.h>
25845f
-
25845f
-int
25845f
-fegetexcept (void)
25845f
-{
25845f
-  unsigned int exc;
25845f
-
25845f
-  /* Get the current control word.  */
25845f
-  _FPU_GETCW (exc);
25845f
-
25845f
-  return (exc & ENABLE_MASK) >> ENABLE_SHIFT;
25845f
-}
25845f
diff --git a/ports/sysdeps/am33/fpu/fegetround.c b/ports/sysdeps/am33/fpu/fegetround.c
25845f
deleted file mode 100644
25845f
index d649f18bf7c8ffe2..0000000000000000
25845f
--- a/ports/sysdeps/am33/fpu/fegetround.c
25845f
+++ /dev/null
25845f
@@ -1,34 +0,0 @@
25845f
-/* Return current rounding direction.
25845f
-   Copyright (C) 1998, 2004 Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-   Contributed by Alexandre Oliva <aoliva@redhat.com>
25845f
-   based on corresponding file in the MIPS port.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Lesser General Public
25845f
-   License as published by the Free Software Foundation; either
25845f
-   version 2.1 of the License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Lesser General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Lesser General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#include <fenv.h>
25845f
-#include <fenv_libc.h>
25845f
-#include <fpu_control.h>
25845f
-
25845f
-int
25845f
-fegetround (void)
25845f
-{
25845f
-  int cw;
25845f
-
25845f
-  /* Get control word.  */
25845f
-  _FPU_GETCW (cw);
25845f
-
25845f
-  return (cw & ROUND_MASK);
25845f
-}
25845f
diff --git a/ports/sysdeps/am33/fpu/feholdexcpt.c b/ports/sysdeps/am33/fpu/feholdexcpt.c
25845f
deleted file mode 100644
25845f
index 1c002d8d9490364d..0000000000000000
25845f
--- a/ports/sysdeps/am33/fpu/feholdexcpt.c
25845f
+++ /dev/null
25845f
@@ -1,38 +0,0 @@
25845f
-/* Store current floating-point environment and clear exceptions.
25845f
-   Copyright (C) 2000, 2004 Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-   Contributed by Alexandre Oliva <aoliva@redhat.com>
25845f
-   based on corresponding file in the MIPS port.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Lesser General Public
25845f
-   License as published by the Free Software Foundation; either
25845f
-   version 2.1 of the License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Lesser General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Lesser General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#include <fenv.h>
25845f
-#include <fpu_control.h>
25845f
-
25845f
-int
25845f
-feholdexcept (fenv_t *envp)
25845f
-{
25845f
-  fpu_control_t cw;
25845f
-
25845f
-  /* Save the current state.  */
25845f
-  _FPU_GETCW (cw);
25845f
-  *envp = cw;
25845f
-
25845f
-  /* Clear all exception enable bits and flags.  */
25845f
-  cw &= ~(_FPU_MASK_V|_FPU_MASK_Z|_FPU_MASK_O|_FPU_MASK_U|_FPU_MASK_I);
25845f
-  _FPU_SETFCW (cw);
25845f
-
25845f
-  return 0;
25845f
-}
25845f
diff --git a/ports/sysdeps/am33/fpu/fenv_libc.h b/ports/sysdeps/am33/fpu/fenv_libc.h
25845f
deleted file mode 100644
25845f
index 40d57259bdc3e702..0000000000000000
25845f
--- a/ports/sysdeps/am33/fpu/fenv_libc.h
25845f
+++ /dev/null
25845f
@@ -1,32 +0,0 @@
25845f
-/* Copyright (C) 2000, 2002, 2004 Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-   Contributed by Alexandre Oliva <aoliva@redhat.com>
25845f
-   based on the corresponding file in the mips port.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Lesser General Public
25845f
-   License as published by the Free Software Foundation; either
25845f
-   version 2.1 of the License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Lesser General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Lesser General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#ifndef _FENV_LIBC_H
25845f
-#define _FENV_LIBC_H    1
25845f
-
25845f
-/* Mask for enabling exceptions and for the CAUSE bits.  */
25845f
-#define ENABLE_MASK	0x003E0U
25845f
-#define CAUSE_MASK	0x07C00U
25845f
-#define ROUND_MASK	0x30000U
25845f
-
25845f
-/* Shift for FE_* flags to get up to the ENABLE bits and the CAUSE bits.  */
25845f
-#define	ENABLE_SHIFT	5
25845f
-#define	CAUSE_SHIFT	10
25845f
-
25845f
-#endif /* _FENV_LIBC_H */
25845f
diff --git a/ports/sysdeps/am33/fpu/fesetenv.c b/ports/sysdeps/am33/fpu/fesetenv.c
25845f
deleted file mode 100644
25845f
index 110c49c9f8fd780a..0000000000000000
25845f
--- a/ports/sysdeps/am33/fpu/fesetenv.c
25845f
+++ /dev/null
25845f
@@ -1,59 +0,0 @@
25845f
-/* Install given floating-point environment.
25845f
-   Copyright (C) 1998, 1999, 2000, 2002, 2004 Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-   Contributed by Alexandre Oliva <aoliva@redhat.com>
25845f
-   based on corresponding file in the MIPS port.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Lesser General Public
25845f
-   License as published by the Free Software Foundation; either
25845f
-   version 2.1 of the License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Lesser General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Lesser General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#include <fenv.h>
25845f
-#include <fpu_control.h>
25845f
-#include <shlib-compat.h>
25845f
-
25845f
-int
25845f
-__fesetenv (const fenv_t *envp)
25845f
-{
25845f
-  fpu_control_t cw;
25845f
-
25845f
-  /* We want to clear all EF bits for the default end IEEE.  */
25845f
-
25845f
-  if (envp == FE_DFL_ENV)
25845f
-    _FPU_SETFCW (_FPU_DEFAULT|FE_ALL_EXCEPT);
25845f
-  else if (envp == FE_NOMASK_ENV)
25845f
-    _FPU_SETFCW (_FPU_IEEE|FE_ALL_EXCEPT);
25845f
-  else
25845f
-    {
25845f
-      fpu_control_t temp;
25845f
-
25845f
-      _FPU_GETCW (temp);
25845f
-      cw = *envp;
25845f
-
25845f
-      /* If EF bits are cleared and the user requests them to be set,
25845f
-	 we have to fail, because there's no way to do it.  */
25845f
-      if (~temp & cw & FE_ALL_EXCEPT)
25845f
-	return -1;
25845f
-
25845f
-      /* We clear EF bits by storing a 1 in them, so flip the
25845f
-	 FE_ALL_EXCEPT bits.  */
25845f
-      cw = (cw & ~FE_ALL_EXCEPT) | (~cw & FE_ALL_EXCEPT);
25845f
-      _FPU_SETFCW (cw);
25845f
-    }
25845f
-
25845f
-  /* Success.  */
25845f
-  return 0;
25845f
-}
25845f
-
25845f
-libm_hidden_ver (__fesetenv, fesetenv)
25845f
-versioned_symbol (libm, __fesetenv, fesetenv, GLIBC_2_2);
25845f
diff --git a/ports/sysdeps/am33/fpu/fesetround.c b/ports/sysdeps/am33/fpu/fesetround.c
25845f
deleted file mode 100644
25845f
index e77dc7684f93163b..0000000000000000
25845f
--- a/ports/sysdeps/am33/fpu/fesetround.c
25845f
+++ /dev/null
25845f
@@ -1,28 +0,0 @@
25845f
-/* Set current rounding direction.
25845f
-   Copyright (C) 2004 Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-   Contributed by Alexandre Oliva <aoliva@redhat.com>
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Lesser General Public
25845f
-   License as published by the Free Software Foundation; either
25845f
-   version 2.1 of the License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Lesser General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Lesser General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#include <fenv.h>
25845f
-
25845f
-int
25845f
-fesetround (int round)
25845f
-{
25845f
-  /* The only supported rounding mode is to-nearest.  Just check
25845f
-     whether we're switching to it.  */
25845f
-  return (round != FE_TONEAREST);
25845f
-}
25845f
diff --git a/ports/sysdeps/am33/fpu/feupdateenv.c b/ports/sysdeps/am33/fpu/feupdateenv.c
25845f
deleted file mode 100644
25845f
index 70951a36753f62b7..0000000000000000
25845f
--- a/ports/sysdeps/am33/fpu/feupdateenv.c
25845f
+++ /dev/null
25845f
@@ -1,46 +0,0 @@
25845f
-/* Install given floating-point environment and raise exceptions.
25845f
-   Copyright (C) 1998, 1999, 2000, 2002, 2004 Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-   Contributed by Alexandre Oliva <aoliva@redhat.com>
25845f
-   based on corresponding file in the MIPS port.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Lesser General Public
25845f
-   License as published by the Free Software Foundation; either
25845f
-   version 2.1 of the License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Lesser General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Lesser General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#include <fenv.h>
25845f
-#include <fpu_control.h>
25845f
-#include <shlib-compat.h>
25845f
-
25845f
-int
25845f
-__feupdateenv (const fenv_t *envp)
25845f
-{
25845f
-  int temp;
25845f
-
25845f
-  /* Save current exceptions.  */
25845f
-  _FPU_GETCW (temp);
25845f
-  temp &= FE_ALL_EXCEPT;
25845f
-
25845f
-  /* Install new environment.  */
25845f
-  fesetenv (envp);
25845f
-
25845f
-  /* Raise the safed exception.  Incidently for us the implementation
25845f
-     defined format of the values in objects of type fexcept_t is the
25845f
-     same as the ones specified using the FE_* constants.  */
25845f
-  feraiseexcept (temp);
25845f
-
25845f
-  /* Success.  */
25845f
-  return 0;
25845f
-}
25845f
-
25845f
-versioned_symbol (libm, __feupdateenv, feupdateenv, GLIBC_2_2);
25845f
diff --git a/ports/sysdeps/am33/fpu/fgetexcptflg.c b/ports/sysdeps/am33/fpu/fgetexcptflg.c
25845f
deleted file mode 100644
25845f
index d5828e6011a71881..0000000000000000
25845f
--- a/ports/sysdeps/am33/fpu/fgetexcptflg.c
25845f
+++ /dev/null
25845f
@@ -1,43 +0,0 @@
25845f
-/* Store current representation for exceptions.
25845f
-   Copyright (C) 1998, 1999, 2000, 2002, 2004 Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-   Contributed by Alexandre Oliva <aoliva@redhat.com>
25845f
-   based on corresponding file in the MIPS port.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Lesser General Public
25845f
-   License as published by the Free Software Foundation; either
25845f
-   version 2.1 of the License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Lesser General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Lesser General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#include <fenv.h>
25845f
-#include <fpu_control.h>
25845f
-#include <shlib-compat.h>
25845f
-
25845f
-int
25845f
-__fegetexceptflag (fexcept_t *flagp, int excepts)
25845f
-{
25845f
-  fexcept_t temp;
25845f
-
25845f
-  /* Get the current exceptions.  */
25845f
-  _FPU_GETCW (temp);
25845f
-
25845f
-  /* We only save the relevant bits here. In particular, care has to be 
25845f
-     taken with the CAUSE bits, as an inadvertent restore later on could
25845f
-     generate unexpected exceptions.  */
25845f
-
25845f
-  *flagp = temp & excepts & FE_ALL_EXCEPT;
25845f
-
25845f
-  /* Success.  */
25845f
-  return 0;
25845f
-}
25845f
-
25845f
-versioned_symbol (libm, __fegetexceptflag, fegetexceptflag, GLIBC_2_2);
25845f
diff --git a/ports/sysdeps/am33/fpu/fpu_control.h b/ports/sysdeps/am33/fpu/fpu_control.h
25845f
deleted file mode 100644
25845f
index de28228e7182627e..0000000000000000
25845f
--- a/ports/sysdeps/am33/fpu/fpu_control.h
25845f
+++ /dev/null
25845f
@@ -1,74 +0,0 @@
25845f
-/* FPU control word bits.  AM33/2.0 version.
25845f
-   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2004
25845f
-   Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-   Contributed by Alexandre Oliva <aoliva@redhat.com>
25845f
-   based on the corresponding file in the mips port.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Lesser General Public
25845f
-   License as published by the Free Software Foundation; either
25845f
-   version 2.1 of the License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Lesser General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Lesser General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#ifndef _FPU_CONTROL_H
25845f
-#define _FPU_CONTROL_H
25845f
-
25845f
-/* AM33/2.0 FPU floating point control register bits.
25845f
- *
25845f
- * 31-22  -> reserved
25845f
- * 21-18  -> floating-point condition codes (L, G, E, U)
25845f
- * 17-16  -> rounding modes (00 is to-nearest; other values are reserved
25845f
- * 15     -> reserved (read as 0, write with 0)
25845f
- * 14-10  -> Exception Cause (inValid, divZero, Overflow, Underflow, Inexact)
25845f
- *  9- 5  -> Exception Enable
25845f
- *  4- 0  -> Exception Flag, cleared when exception cause is set
25845f
- */
25845f
-
25845f
-#include <features.h>
25845f
-#include <fenv.h>
25845f
-
25845f
-/* masking of interrupts */
25845f
-#define _FPU_MASK_V     0x0200  /* Invalid operation */
25845f
-#define _FPU_MASK_Z     0x0100  /* Division by zero  */
25845f
-#define _FPU_MASK_O     0x0080  /* Overflow          */
25845f
-#define _FPU_MASK_U     0x0040  /* Underflow         */
25845f
-#define _FPU_MASK_I     0x0020  /* Inexact operation */
25845f
-
25845f
-/* rounding control */
25845f
-#define _FPU_RC_NEAREST 0x0     /* Only available mode */
25845f
-
25845f
-#define _FPU_RESERVED 0xffc08000  /* Reserved bits in fpcr */
25845f
-
25845f
-
25845f
-/* The fdlibm code requires strict IEEE double precision arithmetic,
25845f
-   and no interrupts for exceptions, rounding to nearest.  */
25845f
-
25845f
-#define _FPU_DEFAULT  0x0000001f
25845f
-
25845f
-/* IEEE:  same as above, but exceptions */
25845f
-#define _FPU_IEEE     0x000003ff
25845f
-
25845f
-/* Type of the control word.  */
25845f
-typedef unsigned int fpu_control_t;
25845f
-
25845f
-/* Macros for accessing the hardware control word.  _FPU_SETCW is
25845f
-   defined such that it won't modify the EF bits, that are cleared
25845f
-   when assigned bits that are set.  Use SETFCW to get them actually
25845f
-   reset.  */
25845f
-#define _FPU_SETFCW(cw) __asm__ ("fmov %0,fpcr" : : "ri" (cw))
25845f
-#define _FPU_SETCW(cw) _FPU_SETFCW((cw) & ~FE_ALL_EXCEPT)
25845f
-#define _FPU_GETCW(cw) __asm__ ("fmov fpcr,%0" : "=r" (cw))
25845f
-
25845f
-/* Default control word set at startup.  */
25845f
-extern fpu_control_t __fpu_control;
25845f
-
25845f
-#endif	/* fpu_control.h */
25845f
diff --git a/ports/sysdeps/am33/fpu/fraiseexcpt.c b/ports/sysdeps/am33/fpu/fraiseexcpt.c
25845f
deleted file mode 100644
25845f
index 628ad56e9be78034..0000000000000000
25845f
--- a/ports/sysdeps/am33/fpu/fraiseexcpt.c
25845f
+++ /dev/null
25845f
@@ -1,78 +0,0 @@
25845f
-/* Raise given exceptions.
25845f
-   Copyright (C) 2000, 2002, 2004 Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-   Contributed by Alexandre Oliva <aoliva@redhat.com>
25845f
-   based on corresponding file in the M68K port.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Lesser General Public
25845f
-   License as published by the Free Software Foundation; either
25845f
-   version 2.1 of the License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Lesser General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Lesser General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#include <fenv.h>
25845f
-#include <float.h>
25845f
-#include <math.h>
25845f
-#include <shlib-compat.h>
25845f
-
25845f
-int
25845f
-__feraiseexcept (int excepts)
25845f
-{
25845f
-  /* Raise exceptions represented by EXCEPTS.  But we must raise only one
25845f
-     signal at a time.  It is important that if the overflow/underflow
25845f
-     exception and the divide by zero exception are given at the same
25845f
-     time, the overflow/underflow exception follows the divide by zero
25845f
-     exception.  */
25845f
-
25845f
-  /* First: invalid exception.  */
25845f
-  if (excepts & FE_INVALID)
25845f
-    {
25845f
-      /* One example of a invalid operation is 0 * Infinity.  */
25845f
-      float x = HUGE_VALF, y = 0.0f;
25845f
-      __asm__ __volatile__ ("fmul %1,%0" : "+f" (x) : "f" (y));
25845f
-    }
25845f
-
25845f
-  /* Next: division by zero.  */
25845f
-  if (excepts & FE_DIVBYZERO)
25845f
-    {
25845f
-      float x = 1.0f, y = 0.0f;
25845f
-      __asm__ __volatile__ ("fdiv %1,%0" : "+f" (x) : "f" (y));
25845f
-    }
25845f
-
25845f
-  /* Next: overflow.  */
25845f
-  if (excepts & FE_OVERFLOW)
25845f
-    {
25845f
-      float x = FLT_MAX;
25845f
-
25845f
-      __asm__ __volatile__ ("fmul %0,%0" : "+f" (x));
25845f
-    }
25845f
-
25845f
-  /* Next: underflow.  */
25845f
-  if (excepts & FE_UNDERFLOW)
25845f
-    {
25845f
-      float x = -FLT_MIN;
25845f
-
25845f
-      __asm__ __volatile__ ("fmul %0,%0" : "+f" (x));
25845f
-    }
25845f
-
25845f
-  /* Last: inexact.  */
25845f
-  if (excepts & FE_INEXACT)
25845f
-    {
25845f
-      float x = 1.0f, y = 3.0f;
25845f
-      __asm__ __volatile__ ("fdiv %1,%0" : "=f" (x) : "f" (y));
25845f
-    }
25845f
-
25845f
-  /* Success.  */
25845f
-  return 0;
25845f
-}
25845f
-
25845f
-libm_hidden_ver (__feraiseexcept, feraiseexcept)
25845f
-versioned_symbol (libm, __feraiseexcept, feraiseexcept, GLIBC_2_2);
25845f
diff --git a/ports/sysdeps/am33/fpu/fsetexcptflg.c b/ports/sysdeps/am33/fpu/fsetexcptflg.c
25845f
deleted file mode 100644
25845f
index a5bde4020096076b..0000000000000000
25845f
--- a/ports/sysdeps/am33/fpu/fsetexcptflg.c
25845f
+++ /dev/null
25845f
@@ -1,56 +0,0 @@
25845f
-/* Set floating-point environment exception handling.
25845f
-   Copyright (C) 1998, 1999, 2000, 2002, 2004 Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-   Contributed by Alexandre Oliva <aoliva@redhat.com>
25845f
-   based on corresponding file in the MIPS port.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Lesser General Public
25845f
-   License as published by the Free Software Foundation; either
25845f
-   version 2.1 of the License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Lesser General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Lesser General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#include <fenv.h>
25845f
-#include <fpu_control.h>
25845f
-#include <shlib-compat.h>
25845f
-
25845f
-int
25845f
-__fesetexceptflag (const fexcept_t *flagp, int excepts)
25845f
-{
25845f
-  fpu_control_t cw, temp;
25845f
-
25845f
-  /* Get the current exceptions.  */
25845f
-  _FPU_GETCW (cw);
25845f
-
25845f
-  /* Make sure the flags we want restored are legal.  */
25845f
-  excepts &= FE_ALL_EXCEPT;
25845f
-  temp = *flagp & excepts;
25845f
-
25845f
-  /* If EF bits are clear and the user requests them to be set,
25845f
-     we have to fail, because there's no way to do it.  */
25845f
-  if (~(cw & excepts) & temp)
25845f
-    return -1;
25845f
-
25845f
-  /* We clear EF bits by storing a 1 in them, so flip the
25845f
-     FE_ALL_EXCEPT bits.  */
25845f
-  temp = (~temp & FE_ALL_EXCEPT);
25845f
-
25845f
-  /* Now clear the bits called for, and copy them in from flagp. Note that
25845f
-     we ignore all non-flag bits from *flagp, so they don't matter.  */
25845f
-  cw = (cw & ~FE_ALL_EXCEPT) | temp;
25845f
-
25845f
-  _FPU_SETFCW (cw);
25845f
-
25845f
-  /* Success.  */
25845f
-  return 0;
25845f
-}
25845f
-
25845f
-versioned_symbol (libm, __fesetexceptflag, fesetexceptflag, GLIBC_2_2);
25845f
diff --git a/ports/sysdeps/am33/fpu/ftestexcept.c b/ports/sysdeps/am33/fpu/ftestexcept.c
25845f
deleted file mode 100644
25845f
index ef3e761fcc110dd6..0000000000000000
25845f
--- a/ports/sysdeps/am33/fpu/ftestexcept.c
25845f
+++ /dev/null
25845f
@@ -1,33 +0,0 @@
25845f
-/* Test exception in current environment.
25845f
-   Copyright (C) 1998, 2004 Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-   Contributed by Alexandre Oliva <aoliva@redhat.com>
25845f
-   based on corresponding file in the MIPS port.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Lesser General Public
25845f
-   License as published by the Free Software Foundation; either
25845f
-   version 2.1 of the License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Lesser General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Lesser General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#include <fenv.h>
25845f
-#include <fpu_control.h>
25845f
-
25845f
-int
25845f
-fetestexcept (int excepts)
25845f
-{
25845f
-  int cw;
25845f
-
25845f
-  /* Get current control word.  */
25845f
-  _FPU_GETCW (cw);
25845f
-
25845f
-  return cw & excepts & FE_ALL_EXCEPT;
25845f
-}
25845f
diff --git a/ports/sysdeps/am33/jmpbuf-offsets.h b/ports/sysdeps/am33/jmpbuf-offsets.h
25845f
deleted file mode 100644
25845f
index 9884f2e3c099aeb8..0000000000000000
25845f
--- a/ports/sysdeps/am33/jmpbuf-offsets.h
25845f
+++ /dev/null
25845f
@@ -1,19 +0,0 @@
25845f
-/* Private macros for accessing __jmp_buf contents.  AM33 version.
25845f
-   Copyright (C) 2006 Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Lesser General Public
25845f
-   License as published by the Free Software Foundation; either
25845f
-   version 2.1 of the License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Lesser General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Lesser General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#define __JMP_BUF_SP		20
25845f
diff --git a/ports/sysdeps/am33/jmpbuf-unwind.h b/ports/sysdeps/am33/jmpbuf-unwind.h
25845f
deleted file mode 100644
25845f
index d5c01e27978d6ab4..0000000000000000
25845f
--- a/ports/sysdeps/am33/jmpbuf-unwind.h
25845f
+++ /dev/null
25845f
@@ -1,25 +0,0 @@
25845f
-/* Examine __jmp_buf for unwinding frames.  AM33 version.
25845f
-   Copyright (C) 2006 Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Lesser General Public
25845f
-   License as published by the Free Software Foundation; either
25845f
-   version 2.1 of the License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Lesser General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Lesser General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#include <setjmp.h>
25845f
-#include <jmpbuf-offsets.h>
25845f
-
25845f
-/* Test if longjmp to JMPBUF would unwind the frame
25845f
-   containing a local variable at ADDRESS.  */
25845f
-#define _JMPBUF_UNWINDS(jmpbuf, address, demangle)			\
25845f
-  ((void *) (address) < (void *) demangle (jmpbuf[__JMP_BUF_SP]))
25845f
diff --git a/ports/sysdeps/am33/linuxthreads/pspinlock.c b/ports/sysdeps/am33/linuxthreads/pspinlock.c
25845f
deleted file mode 100644
25845f
index a1674974abfb749b..0000000000000000
25845f
--- a/ports/sysdeps/am33/linuxthreads/pspinlock.c
25845f
+++ /dev/null
25845f
@@ -1,73 +0,0 @@
25845f
-/* POSIX spinlock implementation.  AM33 version.
25845f
-   Copyright 2001 Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Library General Public License as
25845f
-   published by the Free Software Foundation; either version 2 of the
25845f
-   License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Library General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Library General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#include <errno.h>
25845f
-#include <pthread.h>
25845f
-#include "internals.h"
25845f
-
25845f
-int
25845f
-__pthread_spin_lock (pthread_spinlock_t *lock)
25845f
-{
25845f
-  __asm__ __volatile__("1: bset %1, (%0); beq 1b"
25845f
-		       : : "a" (lock), "d" (1) : "memory");
25845f
-  return 0;
25845f
-}
25845f
-weak_alias (__pthread_spin_lock, pthread_spin_lock)
25845f
-
25845f
-
25845f
-int
25845f
-__pthread_spin_trylock (pthread_spinlock_t *lock)
25845f
-{
25845f
-  int oldval = 1;
25845f
-
25845f
-  __asm__ __volatile__ ("bset %0, (%1); beq 1f; clr %0; 1:" :
25845f
-			"+d" (oldval) : "a" (lock) : "memory");
25845f
-
25845f
-  return oldval ? EBUSY : 0;
25845f
-}
25845f
-weak_alias (__pthread_spin_trylock, pthread_spin_trylock)
25845f
-
25845f
-
25845f
-int
25845f
-__pthread_spin_unlock (pthread_spinlock_t *lock)
25845f
-{
25845f
-  *lock = 0;
25845f
-  return 0;
25845f
-}
25845f
-weak_alias (__pthread_spin_unlock, pthread_spin_unlock)
25845f
-
25845f
-
25845f
-int
25845f
-__pthread_spin_init (pthread_spinlock_t *lock, int pshared)
25845f
-{
25845f
-  /* We can ignore the `pshared' parameter.  Since we are busy-waiting
25845f
-     all processes which can access the memory location `lock' points
25845f
-     to can use the spinlock.  */
25845f
-  *lock = 0;
25845f
-  return 0;
25845f
-}
25845f
-weak_alias (__pthread_spin_init, pthread_spin_init)
25845f
-
25845f
-
25845f
-int
25845f
-__pthread_spin_destroy (pthread_spinlock_t *lock)
25845f
-{
25845f
-  /* Nothing to do.  */
25845f
-  return 0;
25845f
-}
25845f
-weak_alias (__pthread_spin_destroy, pthread_spin_destroy)
25845f
diff --git a/ports/sysdeps/am33/linuxthreads/pt-machine.h b/ports/sysdeps/am33/linuxthreads/pt-machine.h
25845f
deleted file mode 100644
25845f
index 86d0f8b1e1cb0e01..0000000000000000
25845f
--- a/ports/sysdeps/am33/linuxthreads/pt-machine.h
25845f
+++ /dev/null
25845f
@@ -1,67 +0,0 @@
25845f
-/* Machine-dependent pthreads configuration and inline functions.
25845f
-   am33 version.
25845f
-   Copyright (C) 1996,1997,1998,1999,2000,2001, 2004
25845f
-   Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-   Contributed by Alexandre Oliva <aoliva@redhat.com>
25845f
-   Based on ../i386/pt-machine.h.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Library General Public License as
25845f
-   published by the Free Software Foundation; either version 2 of the
25845f
-   License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Library General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Library General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#ifndef _PT_MACHINE_H
25845f
-#define _PT_MACHINE_H	1
25845f
-
25845f
-#ifndef __ASSEMBLER__
25845f
-#ifndef PT_EI
25845f
-# define PT_EI extern inline
25845f
-#endif
25845f
-
25845f
-/* Get some notion of the current stack.  Need not be exactly the top
25845f
-   of the stack, just something somewhere in the current frame.  */
25845f
-#define CURRENT_STACK_FRAME  __builtin_frame_address (0)
25845f
-
25845f
-/* Spinlock implementation; required.  */
25845f
-PT_EI long int
25845f
-testandset (int *spinlock)
25845f
-{
25845f
-  long int ret = 1;
25845f
-
25845f
-  /* This won't test&set the entire int, only the least significant
25845f
-     byte.  I hope this doesn't matter, since we can't do better.  */
25845f
-  __asm__ __volatile__ ("bset %0, %1; bne 1f; clr %0; 1:" :
25845f
-			"+d" (ret), "+m" (*(volatile int *)spinlock));
25845f
-
25845f
-  return ret;
25845f
-}
25845f
-
25845f
-
25845f
-PT_EI int
25845f
-get_eflags (void)
25845f
-{
25845f
-  int res;
25845f
-  __asm__ __volatile__ ("mov psw,%0" : "=d" (res));
25845f
-  return res;
25845f
-}
25845f
-
25845f
-
25845f
-PT_EI void
25845f
-set_eflags (int newflags)
25845f
-{
25845f
-  __asm__ __volatile__ ("mov %0,psw" : : "d" (newflags) : "cc");
25845f
-}
25845f
-
25845f
-#endif /* __ASSEMBLER__ */
25845f
-
25845f
-#endif /* pt-machine.h */
25845f
diff --git a/ports/sysdeps/am33/memusage.h b/ports/sysdeps/am33/memusage.h
25845f
deleted file mode 100644
25845f
index 19d7a732ca41c078..0000000000000000
25845f
--- a/ports/sysdeps/am33/memusage.h
25845f
+++ /dev/null
25845f
@@ -1,22 +0,0 @@
25845f
-/* Copyright 2000, 2001 Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Lesser General Public
25845f
-   License as published by the Free Software Foundation; either
25845f
-   version 2.1 of the License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Lesser General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Lesser General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#define GETSP() ({ uintptr_t stack_ptr; \
25845f
-		   asm ("mov sp,%0" : "=a" (stack_ptr)); \
25845f
-		   stack_ptr; })
25845f
-
25845f
-#include <sysdeps/generic/memusage.h>
25845f
diff --git a/ports/sysdeps/am33/preconfigure b/ports/sysdeps/am33/preconfigure
25845f
deleted file mode 100644
25845f
index 9495465389764b09..0000000000000000
25845f
--- a/ports/sysdeps/am33/preconfigure
25845f
+++ /dev/null
25845f
@@ -1,5 +0,0 @@
25845f
-case "$machine" in
25845f
-am33*)
25845f
-  base_machine=am33 machine=am33
25845f
-  ;;
25845f
-esac
25845f
diff --git a/ports/sysdeps/am33/setjmp.S b/ports/sysdeps/am33/setjmp.S
25845f
deleted file mode 100644
25845f
index 54b239d65c3a4f3a..0000000000000000
25845f
--- a/ports/sysdeps/am33/setjmp.S
25845f
+++ /dev/null
25845f
@@ -1,79 +0,0 @@
25845f
-/* setjmp for am33.
25845f
-   Copyright (C) 2001, 2004 Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Lesser General Public
25845f
-   License as published by the Free Software Foundation; either
25845f
-   version 2.1 of the License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Lesser General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Lesser General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#include <sysdep.h>
25845f
-#define _ASM
25845f
-#define _SETJMP_H
25845f
-#include <bits/setjmp.h>
25845f
-#include <asm-syntax.h>
25845f
-
25845f
-
25845f
-ENTRY (__sigsetjmp)
25845f
-.Lsigsetjmp:
25845f
-	/* Save registers.  */
25845f
-	mov d0,a0
25845f
-	mov d2,(0,a0)
25845f
-	mov d3,(4,a0)
25845f
-	mov mdr,d0
25845f
-	mov d0,(8,a0)
25845f
-	/* Restore d0 for __sigjmp_save.  */
25845f
-	mov a0,d0
25845f
-	mov a2,(12,a0)
25845f
-	mov a3,(16,a0)
25845f
-	mov sp,a1
25845f
-	mov a1,(20,a0)
25845f
-	add 24,a0
25845f
-	mov r4,(a0+)
25845f
-	mov r5,(a0+)
25845f
-	mov r6,(a0+)
25845f
-	mov r7,(a0+)
25845f
-#ifdef __AM33_2__
25845f
-	fmov fs4,(a0+)
25845f
-	fmov fs5,(a0+)
25845f
-	fmov fs6,(a0+)
25845f
-	fmov fs7,(a0+)
25845f
-	fmov fs8,(a0+)
25845f
-	fmov fs9,(a0+)
25845f
-	fmov fs10,(a0+)
25845f
-	fmov fs11,(a0+)
25845f
-	fmov fs12,(a0+)
25845f
-	fmov fs13,(a0+)
25845f
-	fmov fs14,(a0+)
25845f
-	fmov fs15,(a0+)
25845f
-	fmov fs16,(a0+)
25845f
-	fmov fs17,(a0+)
25845f
-	fmov fs18,(a0+)
25845f
-	fmov fs19,(a0+)
25845f
-#endif
25845f
-	/* Make a tail call to __sigjmp_save; it takes the same args.  */
25845f
-	jmp __sigjmp_save
25845f
-END (__sigsetjmp)
25845f
-
25845f
-/* BSD `_setjmp' entry point to `sigsetjmp (..., 1)'.  */
25845f
-ENTRY (setjmp)
25845f
-	/* Tail-call setsetjmp with savesigs==1.  */
25845f
-	mov 1,d1
25845f
-	bra .Lsigsetjmp
25845f
-END (setjmp)
25845f
-
25845f
-/* BSD `_setjmp' entry point to `sigsetjmp (..., 0)'.  */
25845f
-ENTRY (_setjmp)
25845f
-	/* Tail-call setsetjmp with savesigs==0.  */
25845f
-	clr d1
25845f
-	bra .Lsigsetjmp
25845f
-END (_setjmp)
25845f
diff --git a/ports/sysdeps/am33/shlib-versions b/ports/sysdeps/am33/shlib-versions
25845f
deleted file mode 100644
25845f
index ad6ded9dc4d755eb..0000000000000000
25845f
--- a/ports/sysdeps/am33/shlib-versions
25845f
+++ /dev/null
25845f
@@ -1 +0,0 @@
25845f
-am33.*-.*-linux.*	DEFAULT			GLIBC_2.2.5
25845f
diff --git a/ports/sysdeps/am33/stackinfo.h b/ports/sysdeps/am33/stackinfo.h
25845f
deleted file mode 100644
25845f
index c7a7977773458663..0000000000000000
25845f
--- a/ports/sysdeps/am33/stackinfo.h
25845f
+++ /dev/null
25845f
@@ -1,27 +0,0 @@
25845f
-/* Copyright 2001 Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Lesser General Public
25845f
-   License as published by the Free Software Foundation; either
25845f
-   version 2.1 of the License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Lesser General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Lesser General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-/* This file contains a bit of information about the stack allocation
25845f
-   of the processor.  */
25845f
-
25845f
-#ifndef _STACKINFO_H
25845f
-#define _STACKINFO_H	1
25845f
-
25845f
-/* On am33 the stack grows down.  */
25845f
-#define _STACK_GROWS_DOWN	1
25845f
-
25845f
-#endif	/* stackinfo.h */
25845f
diff --git a/ports/sysdeps/am33/sys/ucontext.h b/ports/sysdeps/am33/sys/ucontext.h
25845f
deleted file mode 100644
25845f
index 1615b6368c9530c0..0000000000000000
25845f
--- a/ports/sysdeps/am33/sys/ucontext.h
25845f
+++ /dev/null
25845f
@@ -1,122 +0,0 @@
25845f
-/* Copyright 1997, 1999, 2000, 2002 Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Library General Public License as
25845f
-   published by the Free Software Foundation; either version 2 of the
25845f
-   License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Library General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Library General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-/* AM33/2.0 context switching support.  */
25845f
-
25845f
-#ifndef _SYS_UCONTEXT_H
25845f
-#define _SYS_UCONTEXT_H	1
25845f
-
25845f
-#include <features.h>
25845f
-#include <signal.h>
25845f
-
25845f
-/* Type for general register.  */
25845f
-typedef int greg_t;
25845f
-
25845f
-/* Number of general registers.  */
25845f
-#define NGREG	28
25845f
-
25845f
-/* Container for all general registers.  */
25845f
-typedef greg_t gregset_t[NGREG];
25845f
-
25845f
-/* Number of each register is the `gregset_t' array.  */
25845f
-enum
25845f
-{
25845f
-  REG_D0 = 0,
25845f
-#define REG_D0	REG_D0
25845f
-  REG_D1,
25845f
-#define REG_D1	REG_D1
25845f
-  REG_D2,
25845f
-#define REG_D2	REG_D2
25845f
-  REG_D3,
25845f
-#define REG_D3	REG_D3
25845f
-  REG_A0,
25845f
-#define REG_A0	REG_A0
25845f
-  REG_A1,
25845f
-#define REG_A1	REG_A1
25845f
-  REG_A2,
25845f
-#define REG_A2	REG_A2
25845f
-  REG_A3,
25845f
-#define REG_A3	REG_A3
25845f
-  REG_E0,
25845f
-#define REG_E0	REG_E0
25845f
-  REG_E1,
25845f
-#define REG_E1	REG_E1
25845f
-  REG_E2,
25845f
-#define REG_E2	REG_E2
25845f
-  REG_E3,
25845f
-#define REG_E3	REG_E3
25845f
-  REG_E4,
25845f
-#define REG_E4	REG_E4
25845f
-  REG_E5,
25845f
-#define REG_E5	REG_E5
25845f
-  REG_E6,
25845f
-#define REG_E6	REG_E6
25845f
-  REG_E7,
25845f
-#define REG_E7	REG_E7
25845f
-  REG_LAR,
25845f
-#define REG_LAR	REG_LAR
25845f
-  REG_LIR,
25845f
-#define REG_LIR	REG_LIR
25845f
-  REG_MDR,
25845f
-#define REG_MDR	REG_MDR
25845f
-  REG_MCVF,
25845f
-#define REG_MCVF	REG_MCVF
25845f
-  REG_MCRL,
25845f
-#define REG_MCRL	REG_MCRL
25845f
-  REG_MCRH,
25845f
-#define REG_MCRH	REG_MCRH
25845f
-  REG_MDRQ,
25845f
-#define REG_MDRQ	REG_MDRQ
25845f
-  REG_SP,
25845f
-#define REG_SP	REG_SP
25845f
-  REG_EPSW,
25845f
-#define REG_EPSW	REG_EPSW
25845f
-  REG_PC,
25845f
-#define REG_PC	REG_PC
25845f
-};
25845f
-
25845f
-typedef int freg_t;
25845f
-
25845f
-/* Structure to describe FPU registers.  */
25845f
-typedef struct {
25845f
-  union {
25845f
-    double fp_dregs[16];
25845f
-    float fp_fregs[32];
25845f
-    freg_t fp_regs[32];
25845f
-  } regs;
25845f
-  freg_t fpcr;
25845f
-} fpregset_t;
25845f
-
25845f
-/* Context to describe whole processor state.  */
25845f
-typedef struct
25845f
-  {
25845f
-    gregset_t gregs;
25845f
-    fpregset_t fpregs;
25845f
-  } mcontext_t;
25845f
-
25845f
-/* Userlevel context.  */
25845f
-typedef struct ucontext
25845f
-  {
25845f
-    unsigned long int uc_flags;
25845f
-    struct ucontext *uc_link;
25845f
-    __sigset_t uc_sigmask;
25845f
-    stack_t uc_stack;
25845f
-    mcontext_t uc_mcontext;
25845f
-    long int uc_filler[5];
25845f
-  } ucontext_t;
25845f
-
25845f
-#endif /* sys/ucontext.h */
25845f
diff --git a/ports/sysdeps/am33/sysdep.h b/ports/sysdeps/am33/sysdep.h
25845f
deleted file mode 100644
25845f
index 2ddb656957b5bc8f..0000000000000000
25845f
--- a/ports/sysdeps/am33/sysdep.h
25845f
+++ /dev/null
25845f
@@ -1,81 +0,0 @@
25845f
-/* Copyright 2001 Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-   Contributed by Alexandre Oliva <aoliva@redhat.com>.
25845f
-   Based on ../i386/sysdep.h.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Library General Public License as
25845f
-   published by the Free Software Foundation; either version 2 of the
25845f
-   License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Library General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Library General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#include <sysdeps/generic/sysdep.h>
25845f
-
25845f
-#ifdef	__ASSEMBLER__
25845f
-
25845f
-/* Syntactic details of assembler.  */
25845f
-
25845f
-#ifdef HAVE_ELF
25845f
-/* For ELF we need the `.type' directive to make shared libs work right.  */
25845f
-#define ASM_TYPE_DIRECTIVE(name,typearg) .type name,typearg;
25845f
-#define ASM_SIZE_DIRECTIVE(name) .size name,.-name;
25845f
-
25845f
-/* In ELF C symbols are asm symbols.  */
25845f
-#undef	NO_UNDERSCORES
25845f
-#define NO_UNDERSCORES
25845f
-#else
25845f
-#define ASM_TYPE_DIRECTIVE(name,type)	/* Nothing is specified.  */
25845f
-#define ASM_SIZE_DIRECTIVE(name)	/* Nothing is specified.  */
25845f
-#endif
25845f
-
25845f
-/* Define an entry point visible from C.  */
25845f
-#define	ENTRY(name)							      \
25845f
-  ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME(name);				      \
25845f
-  ASM_TYPE_DIRECTIVE (C_SYMBOL_NAME(name),@function)			      \
25845f
-  C_LABEL(name)								      \
25845f
-  CALL_MCOUNT
25845f
-
25845f
-#undef	END
25845f
-#define END(name)							      \
25845f
-  ASM_SIZE_DIRECTIVE(name)						      \
25845f
-
25845f
-/* If compiled for profiling, call `mcount' at the start of each function.  */
25845f
-#ifdef	PROF
25845f
-/* The mcount code relies on a normal frame pointer being on the stack
25845f
-   to locate our caller, so push one just for its benefit.  */
25845f
-#define CALL_MCOUNT \
25845f
-  movm [a3],(sp); mov sp,a3; add -12,sp; \
25845f
-  call JUMPTARGET(mcount),[],0; add 12,sp; movm (sp),[a3];
25845f
-#else
25845f
-#define CALL_MCOUNT		/* Do nothing.  */
25845f
-#endif
25845f
-
25845f
-#ifdef	NO_UNDERSCORES
25845f
-/* Since C identifiers are not normally prefixed with an underscore
25845f
-   on this system, the asm identifier `syscall_error' intrudes on the
25845f
-   C name space.  Make sure we use an innocuous name.  */
25845f
-#define	syscall_error	__syscall_error
25845f
-#define mcount		_mcount
25845f
-#endif
25845f
-
25845f
-#undef JUMPTARGET
25845f
-#ifdef PIC
25845f
-#define JUMPTARGET(name)	name##@PLT
25845f
-#else
25845f
-#define JUMPTARGET(name)	name
25845f
-#endif
25845f
-
25845f
-/* Local label name for asm code. */
25845f
-#ifndef L
25845f
-#define L(name)		name
25845f
-#endif
25845f
-
25845f
-#endif	/* __ASSEMBLER__ */
25845f
diff --git a/ports/sysdeps/am33/tininess.h b/ports/sysdeps/am33/tininess.h
25845f
deleted file mode 100644
25845f
index 1db37790f881a73f..0000000000000000
25845f
--- a/ports/sysdeps/am33/tininess.h
25845f
+++ /dev/null
25845f
@@ -1 +0,0 @@
25845f
-#define TININESS_AFTER_ROUNDING	1
25845f
diff --git a/ports/sysdeps/unix/am33/sysdep.S b/ports/sysdeps/unix/am33/sysdep.S
25845f
deleted file mode 100644
25845f
index 26740c2404d6f00d..0000000000000000
25845f
--- a/ports/sysdeps/unix/am33/sysdep.S
25845f
+++ /dev/null
25845f
@@ -1,63 +0,0 @@
25845f
-/* Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 2000, 2001
25845f
-   Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-   Contributed by Alexandre Oliva <aoliva@redhat.com>.
25845f
-   Based on ../i386/sysdep.S.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Library General Public License as
25845f
-   published by the Free Software Foundation; either version 2 of the
25845f
-   License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Library General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Library General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#include <sysdep.h>
25845f
-#define _ERRNO_H
25845f
-#include <bits/errno.h>
25845f
-
25845f
-.globl C_SYMBOL_NAME(errno)
25845f
-.globl syscall_error
25845f
-
25845f
-#undef syscall_error
25845f
-#ifdef NO_UNDERSCORES
25845f
-__syscall_error:
25845f
-#else
25845f
-syscall_error:
25845f
-#endif
25845f
-#if defined (EWOULDBLOCK_sys) && EWOULDBLOCK_sys != EAGAIN
25845f
-	/* We translate the system's EWOULDBLOCK error into EAGAIN.
25845f
-	   The GNU C library always defines EWOULDBLOCK==EAGAIN.
25845f
-	   EWOULDBLOCK_sys is the original number.  */
25845f
-	cmp EWOULDBLOCK_sys,d0	/* Is it the old EWOULDBLOCK?  */
25845f
-	bne .Lnotb		/* Branch if not.  */
25845f
-	mov EAGAIN,d0		/* Yes; translate it to EAGAIN.  */
25845f
-.Lnotb:
25845f
-#endif
25845f
-#ifndef	PIC
25845f
-# ifndef _LIBC_REENTRANT
25845f
-	mov d0,(C_SYMBOL_NAME (errno))
25845f
-# else
25845f
-	movm [d2],(sp)
25845f
-	add -12,sp
25845f
-	mov d0,d2
25845f
-	call __errno_location,[],0
25845f
-	mov d2,(a0)
25845f
-	add 12,sp
25845f
-	movm (sp),[d2]
25845f
-# endif
25845f
-#else
25845f
-# error "This shouldn't be assembled for PIC"
25845f
-#endif
25845f
-	mov -1,d0
25845f
-	mov d0,a0
25845f
-	ret
25845f
-
25845f
-#undef	__syscall_error
25845f
-END (__syscall_error)
25845f
diff --git a/ports/sysdeps/unix/am33/sysdep.h b/ports/sysdeps/unix/am33/sysdep.h
25845f
deleted file mode 100644
25845f
index dff1baebf4667ed6..0000000000000000
25845f
--- a/ports/sysdeps/unix/am33/sysdep.h
25845f
+++ /dev/null
25845f
@@ -1,32 +0,0 @@
25845f
-/* Copyright 2001 Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-   Contributed by Alexandre Oliva <aoliva@redhat.com>.
25845f
-   Based on ../i386/sysdep.h.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Library General Public License as
25845f
-   published by the Free Software Foundation; either version 2 of the
25845f
-   License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Library General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Library General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#include <sysdeps/unix/sysdep.h>
25845f
-#include "../../am33/sysdep.h"
25845f
-
25845f
-#ifdef	__ASSEMBLER__
25845f
-
25845f
-#define	r0		d0	/* Normal return-value register.  */
25845f
-#define	r1		!!!!	/* Secondary return-value register.  */
25845f
-#define scratch 	d1	/* Call-clobbered register for random use.  */
25845f
-#define MOVE(x,y)	mov x, y
25845f
-
25845f
-#define ret		ret [],0
25845f
-
25845f
-#endif	/* __ASSEMBLER__ */
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/Makefile b/ports/sysdeps/unix/sysv/linux/am33/Makefile
25845f
deleted file mode 100644
25845f
index ece39e8a4cee3f3e..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/Makefile
25845f
+++ /dev/null
25845f
@@ -1,3 +0,0 @@
25845f
-ifeq ($(subdir),misc)
25845f
-sysdep_routines += setfsgid setfsuid
25845f
-endif
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/bits/fcntl.h b/ports/sysdeps/unix/sysv/linux/am33/bits/fcntl.h
25845f
deleted file mode 100644
25845f
index 33b8bcd37e149f3c..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/bits/fcntl.h
25845f
+++ /dev/null
25845f
@@ -1,180 +0,0 @@
25845f
-/* O_*, F_*, FD_* bit values for Linux.
25845f
-   Copyright (C) 1995, 1996, 1997, 1998, 2000, Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Library General Public License as
25845f
-   published by the Free Software Foundation; either version 2 of the
25845f
-   License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the GNU
25845f
-   Library General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Library General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#ifndef	_FCNTL_H
25845f
-# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
25845f
-#endif
25845f
-
25845f
-
25845f
-#include <sys/types.h>
25845f
-
25845f
-/* open/fcntl - O_SYNC is only implemented on blocks devices and on files
25845f
-   located on an ext2 file system */
25845f
-#define O_ACCMODE	   0003
25845f
-#define O_RDONLY	     00
25845f
-#define O_WRONLY	     01
25845f
-#define O_RDWR		     02
25845f
-#define O_CREAT		   0100	/* not fcntl */
25845f
-#define O_EXCL		   0200	/* not fcntl */
25845f
-#define O_NOCTTY	   0400	/* not fcntl */
25845f
-#define O_TRUNC		  01000	/* not fcntl */
25845f
-#define O_APPEND	  02000
25845f
-#define O_NONBLOCK	  04000
25845f
-#define O_NDELAY	O_NONBLOCK
25845f
-#define O_SYNC		 010000
25845f
-#define O_FSYNC		 O_SYNC
25845f
-#define O_ASYNC		 020000
25845f
-
25845f
-#ifdef __USE_GNU
25845f
-# define O_DIRECT	 040000	/* Direct disk access.	*/
25845f
-# define O_DIRECTORY	0200000	/* Must be a directory.	 */
25845f
-# define O_NOFOLLOW	0400000	/* Do not follow links.	 */
25845f
-#endif
25845f
-
25845f
-/* For now Linux has synchronisity options for data and read operations.
25845f
-   We define the symbols here but let them do the same as O_SYNC since
25845f
-   this is a superset.	*/
25845f
-#if defined __USE_POSIX199309 || defined __USE_UNIX98
25845f
-# define O_DSYNC	O_SYNC	/* Synchronize data.  */
25845f
-# define O_RSYNC	O_SYNC	/* Synchronize read operations.	 */
25845f
-#endif
25845f
-
25845f
-#ifdef __USE_LARGEFILE64
25845f
-# define O_LARGEFILE	0100000
25845f
-#endif
25845f
-
25845f
-/* Values for the second argument to `fcntl'.  */
25845f
-#define F_DUPFD		0	/* Duplicate file descriptor.  */
25845f
-#define F_GETFD		1	/* Get file descriptor flags.  */
25845f
-#define F_SETFD		2	/* Set file descriptor flags.  */
25845f
-#define F_GETFL		3	/* Get file status flags.  */
25845f
-#define F_SETFL		4	/* Set file status flags.  */
25845f
-#ifndef __USE_FILE_OFFSET64
25845f
-# define F_GETLK	5	/* Get record locking info.  */
25845f
-# define F_SETLK	6	/* Set record locking info (non-blocking).  */
25845f
-# define F_SETLKW	7	/* Set record locking info (blocking).	*/
25845f
-#else
25845f
-# define F_GETLK	F_GETLK64  /* Get record locking info.	*/
25845f
-# define F_SETLK	F_SETLK64  /* Set record locking info (non-blocking).*/
25845f
-# define F_SETLKW	F_SETLKW64 /* Set record locking info (blocking).  */
25845f
-#endif
25845f
-#define F_GETLK64	12	/* Get record locking info.  */
25845f
-#define F_SETLK64	13	/* Set record locking info (non-blocking).  */
25845f
-#define F_SETLKW64	14	/* Set record locking info (blocking).	*/
25845f
-
25845f
-#if defined __USE_BSD || defined __USE_XOPEN2K
25845f
-# define F_SETOWN	8	/* Get owner of socket (receiver of SIGIO).  */
25845f
-# define F_GETOWN	9	/* Set owner of socket (receiver of SIGIO).  */
25845f
-#endif
25845f
-
25845f
-#ifdef __USE_GNU
25845f
-# define F_SETSIG	10	/* Set number of signal to be sent.  */
25845f
-# define F_GETSIG	11	/* Get number of signal to be sent.  */
25845f
-#endif
25845f
-
25845f
-#ifdef __USE_GNU
25845f
-# define F_SETLEASE	1024	/* Set a lease.	 */
25845f
-# define F_GETLEASE	1025	/* Enquire what lease is active.  */
25845f
-# define F_NOTIFY	1026	/* Request notfications on a directory.	 */
25845f
-# define F_DUPFD_CLOEXEC 1030	/* Duplicate file descriptor with
25845f
-				   close-on-exit set.  */
25845f
-#endif
25845f
-
25845f
-/* For F_[GET|SET]FD.  */
25845f
-#define FD_CLOEXEC	1	/* actually anything with low bit set goes */
25845f
-
25845f
-/* For posix fcntl() and `l_type' field of a `struct flock' for lockf().  */
25845f
-#define F_RDLCK		0	/* Read lock.  */
25845f
-#define F_WRLCK		1	/* Write lock.	*/
25845f
-#define F_UNLCK		2	/* Remove lock.	 */
25845f
-
25845f
-/* For old implementation of bsd flock().  */
25845f
-#define F_EXLCK		4	/* or 3 */
25845f
-#define F_SHLCK		8	/* or 4 */
25845f
-
25845f
-#ifdef __USE_BSD
25845f
-/* Operations for bsd flock(), also used by the kernel implementation.	*/
25845f
-# define LOCK_SH	1	/* shared lock */
25845f
-# define LOCK_EX	2	/* exclusive lock */
25845f
-# define LOCK_NB	4	/* or'd with one of the above to prevent
25845f
-				   blocking */
25845f
-# define LOCK_UN	8	/* remove lock */
25845f
-#endif
25845f
-
25845f
-#ifdef __USE_GNU
25845f
-# define LOCK_MAND	32	/* This is a mandatory flock:	*/
25845f
-# define LOCK_READ	64	/* ... which allows concurrent read operations.	 */
25845f
-# define LOCK_WRITE	128	/* ... which allows concurrent write operations.  */
25845f
-# define LOCK_RW	192	/* ... Which allows concurrent read & write operations.	 */
25845f
-#endif
25845f
-
25845f
-#ifdef __USE_GNU
25845f
-/* Types of directory notifications that may be requested with F_NOTIFY.  */
25845f
-# define DN_ACCESS	0x00000001	/* File accessed.  */
25845f
-# define DN_MODIFY	0x00000002	/* File modified.  */
25845f
-# define DN_CREATE	0x00000004	/* File created.  */
25845f
-# define DN_DELETE	0x00000008	/* File removed.  */
25845f
-# define DN_RENAME	0x00000010	/* File renamed.  */
25845f
-# define DN_ATTRIB	0x00000020	/* File changed attibutes.  */
25845f
-# define DN_MULTISHOT	0x80000000	/* Don't remove notifier.  */
25845f
-#endif
25845f
-
25845f
-struct flock
25845f
-  {
25845f
-    short int l_type;	/* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK.	*/
25845f
-    short int l_whence;	/* Where `l_start' is relative to (like `lseek').  */
25845f
-#ifndef __USE_FILE_OFFSET64
25845f
-    __off_t l_start;	/* Offset where the lock begins.  */
25845f
-    __off_t l_len;	/* Size of the locked area; zero means until EOF.  */
25845f
-#else
25845f
-    __off64_t l_start;	/* Offset where the lock begins.  */
25845f
-    __off64_t l_len;	/* Size of the locked area; zero means until EOF.  */
25845f
-#endif
25845f
-    __pid_t l_pid;	/* Process holding the lock.  */
25845f
-  };
25845f
-
25845f
-#ifdef __USE_LARGEFILE64
25845f
-struct flock64
25845f
-  {
25845f
-    short int l_type;	/* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK.	*/
25845f
-    short int l_whence;	/* Where `l_start' is relative to (like `lseek').  */
25845f
-    __off64_t l_start;	/* Offset where the lock begins.  */
25845f
-    __off64_t l_len;	/* Size of the locked area; zero means until EOF.  */
25845f
-    __pid_t l_pid;	/* Process holding the lock.  */
25845f
-  };
25845f
-#endif
25845f
-
25845f
-/* Define some more compatibility macros to be backward compatible with
25845f
-   BSD systems which did not managed to hide these kernel macros.  */
25845f
-#ifdef	__USE_BSD
25845f
-# define FAPPEND	O_APPEND
25845f
-# define FFSYNC		O_FSYNC
25845f
-# define FASYNC		O_ASYNC
25845f
-# define FNONBLOCK	O_NONBLOCK
25845f
-# define FNDELAY	O_NDELAY
25845f
-#endif /* Use BSD.  */
25845f
-
25845f
-/* Advise to `posix_fadvise'.  */
25845f
-#ifdef __USE_XOPEN2K
25845f
-# define POSIX_FADV_NORMAL	0 /* No further special treatment.  */
25845f
-# define POSIX_FADV_RANDOM	1 /* Expect random page references.  */
25845f
-# define POSIX_FADV_SEQUENTIAL	2 /* Expect sequential page references.	 */
25845f
-# define POSIX_FADV_WILLNEED	3 /* Will need these pages.  */
25845f
-# define POSIX_FADV_DONTNEED	4 /* Don't need these pages.  */
25845f
-# define POSIX_FADV_NOREUSE	5 /* Data will be accessed once.  */
25845f
-#endif
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/bits/mman.h b/ports/sysdeps/unix/sysv/linux/am33/bits/mman.h
25845f
deleted file mode 100644
25845f
index 763b060e667097c6..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/bits/mman.h
25845f
+++ /dev/null
25845f
@@ -1,96 +0,0 @@
25845f
-/* Definitions for POSIX memory map interface.  Linux/AM33 version.
25845f
-   Copyright (C) 1997, 2000, 2001, 2004 Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Library General Public License as
25845f
-   published by the Free Software Foundation; either version 2 of the
25845f
-   License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Library General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Library General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#ifndef _SYS_MMAN_H
25845f
-# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
25845f
-#endif
25845f
-
25845f
-/* The following definitions basically come from the kernel headers.
25845f
-   But the kernel header is not namespace clean.  */
25845f
-
25845f
-
25845f
-/* Protections are chosen from these bits, OR'd together.  The
25845f
-   implementation does not necessarily support PROT_EXEC or PROT_WRITE
25845f
-   without PROT_READ.  The only guarantees are that no writing will be
25845f
-   allowed without PROT_WRITE and no access will be allowed for PROT_NONE. */
25845f
-
25845f
-#define PROT_READ	0x1		/* Page can be read.  */
25845f
-#define PROT_WRITE	0x2		/* Page can be written.  */
25845f
-#define PROT_EXEC	0x4		/* Page can be executed.  */
25845f
-#define PROT_NONE	0x0		/* Page can not be accessed.  */
25845f
-#define PROT_GROWSDOWN	  0x01000000	/* Extend change to start of
25845f
-					   growsdown vma (mprotect only).  */
25845f
-#define PROT_GROWSUP	  0x02000000	/* Extend change to start of
25845f
-					   growsup vma (mprotect only).  */
25845f
-
25845f
-/* Sharing types (must choose one and only one of these).  */
25845f
-#define MAP_SHARED	0x01		/* Share changes.  */
25845f
-#define MAP_PRIVATE	0x02		/* Changes are private.  */
25845f
-#ifdef __USE_MISC
25845f
-# define MAP_TYPE	0x0f		/* Mask for type of mapping.  */
25845f
-#endif
25845f
-
25845f
-/* Other flags.  */
25845f
-#define MAP_FIXED	0x10		/* Interpret addr exactly.  */
25845f
-#ifdef __USE_MISC
25845f
-# define MAP_FILE	0
25845f
-# define MAP_ANONYMOUS	0x20		/* Don't use a file.  */
25845f
-# define MAP_ANON	MAP_ANONYMOUS
25845f
-#endif
25845f
-
25845f
-/* These are Linux-specific.  */
25845f
-#ifdef __USE_MISC
25845f
-# define MAP_GROWSDOWN	0x0100		/* Stack-like segment.  */
25845f
-# define MAP_DENYWRITE	0x0800		/* ETXTBSY */
25845f
-# define MAP_EXECUTABLE	0x1000		/* Mark it as an executable.  */
25845f
-# define MAP_LOCKED	0x2000		/* Lock the mapping.  */
25845f
-# define MAP_NORESERVE	0x4000		/* Don't check for reservations.  */
25845f
-#endif
25845f
-
25845f
-/* Flags to `msync'.  */
25845f
-#define MS_ASYNC	1		/* Sync memory asynchronously.  */
25845f
-#define MS_SYNC		4		/* Synchronous memory sync.  */
25845f
-#define MS_INVALIDATE	2		/* Invalidate the caches.  */
25845f
-
25845f
-/* Flags for `mlockall'.  */
25845f
-#define MCL_CURRENT	1		/* Lock all currently mapped pages.  */
25845f
-#define MCL_FUTURE	2		/* Lock all additions to address
25845f
-					   space.  */
25845f
-
25845f
-/* Flags for `mremap'.  */
25845f
-#ifdef __USE_GNU
25845f
-# define MREMAP_MAYMOVE	1
25845f
-#endif
25845f
-
25845f
-/* Advice to `madvise'.  */
25845f
-#ifdef __USE_BSD
25845f
-# define MADV_NORMAL	 0	/* No further special treatment.  */
25845f
-# define MADV_RANDOM	 1	/* Expect random page references.  */
25845f
-# define MADV_SEQUENTIAL 2	/* Expect sequential page references.  */
25845f
-# define MADV_WILLNEED	 3	/* Will need these pages.  */
25845f
-# define MADV_DONTNEED	 4	/* Don't need these pages.  */
25845f
-#endif
25845f
-
25845f
-/* The POSIX people had to invent similar names for the same things.  */
25845f
-#ifdef __USE_XOPEN2K
25845f
-# define POSIX_MADV_NORMAL	0 /* No further special treatment.  */
25845f
-# define POSIX_MADV_RANDOM	1 /* Expect random page references.  */
25845f
-# define POSIX_MADV_SEQUENTIAL	2 /* Expect sequential page references.  */
25845f
-# define POSIX_MADV_WILLNEED	3 /* Will need these pages.  */
25845f
-# define POSIX_MADV_DONTNEED	4 /* Don't need these pages.  */
25845f
-#endif
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/brk.c b/ports/sysdeps/unix/sysv/linux/am33/brk.c
25845f
deleted file mode 100644
25845f
index dc7ec639b3a558c0..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/brk.c
25845f
+++ /dev/null
25845f
@@ -1,45 +0,0 @@
25845f
-/* brk system call for Linux/am33.
25845f
-   Copyright (C) 1995, 1996, 2000 Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-   Contributed by Alexandre Oliva <aoliva@redhat.com>.
25845f
-   Based on ../i386/brk.c.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Library General Public License as
25845f
-   published by the Free Software Foundation; either version 2 of the
25845f
-   License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Library General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Library General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#include <errno.h>
25845f
-#include <unistd.h>
25845f
-#include <sysdep.h>
25845f
-
25845f
-/* This must be initialized data because commons can't have aliases.  */
25845f
-void *__curbrk = 0;
25845f
-
25845f
-int
25845f
-__brk (void *addr)
25845f
-{
25845f
-  void *newbrk;
25845f
-
25845f
-  newbrk = INLINE_SYSCALL (brk, 1, addr);
25845f
-
25845f
-  __curbrk = newbrk;
25845f
-
25845f
-  if (newbrk < addr)
25845f
-    {
25845f
-      __set_errno (ENOMEM);
25845f
-      return -1;
25845f
-    }
25845f
-
25845f
-  return 0;
25845f
-}
25845f
-weak_alias (__brk, brk)
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/chown.c b/ports/sysdeps/unix/sysv/linux/am33/chown.c
25845f
deleted file mode 100644
25845f
index 819923eb4971ad16..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/chown.c
25845f
+++ /dev/null
25845f
@@ -1 +0,0 @@
25845f
-#include <sysdeps/unix/sysv/linux/i386/chown.c>
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/clone.S b/ports/sysdeps/unix/sysv/linux/am33/clone.S
25845f
deleted file mode 100644
25845f
index e014c4ace94b71b6..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/clone.S
25845f
+++ /dev/null
25845f
@@ -1,80 +0,0 @@
25845f
-/* Copyright 2001 Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-   Contributed by Alexandre Oliva <aoliva@redhat.com>.
25845f
-   Based on ../i386/clone.S.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Library General Public License as
25845f
-   published by the Free Software Foundation; either version 2 of the
25845f
-   License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Library General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Library General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-/* clone() is even more special than fork() as it mucks with stacks
25845f
-   and invokes a function in the right context after its all over.  */
25845f
-
25845f
-#include <sysdep.h>
25845f
-#define _ERRNO_H	1
25845f
-#include <bits/errno.h>
25845f
-#include <asm-syntax.h>
25845f
-#include <bp-sym.h>
25845f
-
25845f
-/* int clone(int (*fn)(void *arg), void *child_stack, int flags, void *arg); */
25845f
-
25845f
-        .text
25845f
-ENTRY (BP_SYM (__clone))
25845f
-	/* Sanity check arguments.  */
25845f
-	cmp	0,d0	/* no NULL function pointers */
25845f
-	beq	L(error_inval)
25845f
-	cmp	0,d1	/* no NULL stack pointers */
25845f
-	beq	L(error_inval)
25845f
-
25845f
-	/* Allocate room for a function call in the new stack, and
25845f
-	   store fn and arg in it.  They will be read back in
25845f
-	   thread_start.  */
25845f
-	mov	d1,a0
25845f
-	sub	12,a0
25845f
-	mov	d0,(a0)
25845f
-	mov	(16,sp),d1
25845f
-	mov	d1,(4,a0)
25845f
-
25845f
-	/* Do the system call */
25845f
-	mov	a0,d1
25845f
-	mov	(12,sp),a0
25845f
-	mov	SYS_ify(clone),d0
25845f
-	syscall	0
25845f
-
25845f
-	cmp	0,d0
25845f
-	beq	thread_start
25845f
-	blt	L(to_SYSCALL_ERROR_LABEL)
25845f
-
25845f
-L(pseudo_end):
25845f
-	ret
25845f
-
25845f
-L(error_inval):
25845f
-	mov	-EINVAL,d0
25845f
-L(to_SYSCALL_ERROR_LABEL):
25845f
-	jmp	SYSCALL_ERROR_LABEL
25845f
-
25845f
-thread_start:
25845f
-	mov	0,a3	/* terminate the stack frame */
25845f
-	mov	(4,sp),d0
25845f
-	mov	(sp),a0
25845f
-	calls	(a0)
25845f
-#ifdef PIC
25845f
-L(here):
25845f
-	mov	pc,a2
25845f
-	add	_GLOBAL_OFFSET_TABLE_-(L(here) - .),a2
25845f
-#endif
25845f
-	call	JUMPTARGET (_exit),[],0
25845f
-
25845f
-PSEUDO_END (BP_SYM (__clone))
25845f
-
25845f
-weak_alias (BP_SYM (__clone), BP_SYM (clone))
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/configure b/ports/sysdeps/unix/sysv/linux/am33/configure
25845f
deleted file mode 100644
25845f
index 870c6a79299f161e..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/configure
25845f
+++ /dev/null
25845f
@@ -1,4 +0,0 @@
25845f
-# This file is generated from configure.in by Autoconf.  DO NOT EDIT!
25845f
- # Local configure fragment for am33/sysdeps/unix/sysv/linux/am33
25845f
-
25845f
-arch_minimum_kernel=2.6.25
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/configure.in b/ports/sysdeps/unix/sysv/linux/am33/configure.in
25845f
deleted file mode 100644
25845f
index 43e33f74ca823331..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/configure.in
25845f
+++ /dev/null
25845f
@@ -1,4 +0,0 @@
25845f
-GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
25845f
-# Local configure fragment for am33/sysdeps/unix/sysv/linux/am33
25845f
-
25845f
-arch_minimum_kernel=2.6.25
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/fchown.c b/ports/sysdeps/unix/sysv/linux/am33/fchown.c
25845f
deleted file mode 100644
25845f
index 3a69ecc9e7dec0d4..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/fchown.c
25845f
+++ /dev/null
25845f
@@ -1 +0,0 @@
25845f
-#include <sysdeps/unix/sysv/linux/i386/fchown.c>
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/fcntl.c b/ports/sysdeps/unix/sysv/linux/am33/fcntl.c
25845f
deleted file mode 100644
25845f
index ea951bc4f931fad3..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/fcntl.c
25845f
+++ /dev/null
25845f
@@ -1 +0,0 @@
25845f
-#include <sysdeps/unix/sysv/linux/i386/fcntl.c>
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/fxstat.c b/ports/sysdeps/unix/sysv/linux/am33/fxstat.c
25845f
deleted file mode 100644
25845f
index 4f219f0b9dfa95de..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/fxstat.c
25845f
+++ /dev/null
25845f
@@ -1 +0,0 @@
25845f
-#include <sysdeps/unix/sysv/linux/i386/fxstat.c>
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/getegid.c b/ports/sysdeps/unix/sysv/linux/am33/getegid.c
25845f
deleted file mode 100644
25845f
index 37b4b4a530503613..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/getegid.c
25845f
+++ /dev/null
25845f
@@ -1 +0,0 @@
25845f
-#include <sysdeps/unix/sysv/linux/i386/getegid.c>
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/geteuid.c b/ports/sysdeps/unix/sysv/linux/am33/geteuid.c
25845f
deleted file mode 100644
25845f
index ebcb555b5e321b50..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/geteuid.c
25845f
+++ /dev/null
25845f
@@ -1 +0,0 @@
25845f
-#include <sysdeps/unix/sysv/linux/i386/geteuid.c>
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/getgid.c b/ports/sysdeps/unix/sysv/linux/am33/getgid.c
25845f
deleted file mode 100644
25845f
index 0a4d6061f08b9a02..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/getgid.c
25845f
+++ /dev/null
25845f
@@ -1 +0,0 @@
25845f
-#include <sysdeps/unix/sysv/linux/i386/getgid.c>
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/getgroups.c b/ports/sysdeps/unix/sysv/linux/am33/getgroups.c
25845f
deleted file mode 100644
25845f
index 20a7166103ad24e4..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/getgroups.c
25845f
+++ /dev/null
25845f
@@ -1 +0,0 @@
25845f
-#include <sysdeps/unix/sysv/linux/i386/getgroups.c>
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/getmsg.c b/ports/sysdeps/unix/sysv/linux/am33/getmsg.c
25845f
deleted file mode 100644
25845f
index 3a1fa0852504b0ce..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/getmsg.c
25845f
+++ /dev/null
25845f
@@ -1 +0,0 @@
25845f
-#include <sysdeps/unix/sysv/linux/i386/getmsg.c>
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/getresgid.c b/ports/sysdeps/unix/sysv/linux/am33/getresgid.c
25845f
deleted file mode 100644
25845f
index b703a414cc2a2b07..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/getresgid.c
25845f
+++ /dev/null
25845f
@@ -1 +0,0 @@
25845f
-#include <sysdeps/unix/sysv/linux/i386/getresgid.c>
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/getresuid.c b/ports/sysdeps/unix/sysv/linux/am33/getresuid.c
25845f
deleted file mode 100644
25845f
index 0b14cefe34668cd6..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/getresuid.c
25845f
+++ /dev/null
25845f
@@ -1 +0,0 @@
25845f
-#include <sysdeps/unix/sysv/linux/i386/getresuid.c>
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/getuid.c b/ports/sysdeps/unix/sysv/linux/am33/getuid.c
25845f
deleted file mode 100644
25845f
index d682c79a49289efb..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/getuid.c
25845f
+++ /dev/null
25845f
@@ -1 +0,0 @@
25845f
-#include <sysdeps/unix/sysv/linux/i386/getuid.c>
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/lchown.c b/ports/sysdeps/unix/sysv/linux/am33/lchown.c
25845f
deleted file mode 100644
25845f
index c89de99ba235bf45..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/lchown.c
25845f
+++ /dev/null
25845f
@@ -1 +0,0 @@
25845f
-#include <sysdeps/unix/sysv/linux/i386/lchown.c>
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/linuxthreads/sysdep-cancel.h b/ports/sysdeps/unix/sysv/linux/am33/linuxthreads/sysdep-cancel.h
25845f
deleted file mode 100644
25845f
index 101cab0b17170d07..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/linuxthreads/sysdep-cancel.h
25845f
+++ /dev/null
25845f
@@ -1,158 +0,0 @@
25845f
-/* Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-   Contributed by Alexandre Oliva <aoliva@redhat.com>
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Lesser General Public
25845f
-   License as published by the Free Software Foundation; either
25845f
-   version 2.1 of the License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Lesser General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Lesser General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#include <sysdep.h>
25845f
-#include <tls.h>
25845f
-#include <pt-machine.h>
25845f
-#ifndef __ASSEMBLER__
25845f
-# include <linuxthreads/internals.h>
25845f
-#endif
25845f
-
25845f
-#if IS_IN (libc) || IS_IN (libpthread) || IS_IN (librt)
25845f
-
25845f
-# undef PSEUDO
25845f
-# define PSEUDO(name, syscall_name, args)				\
25845f
-  .text	;								\
25845f
- ENTRY (name)								\
25845f
-  PUSHARGS_##args							\
25845f
-  DOARGS_##args								\
25845f
-  SINGLE_THREAD_P;							\
25845f
-  bne L(pseudo_cancel);							\
25845f
-  mov SYS_ify (syscall_name),d0;					\
25845f
-  syscall 0								\
25845f
-  POPARGS_##args ;							\
25845f
-  cmp -126,d0;								\
25845f
-  bls L(pseudo_end);							\
25845f
-  jmp SYSCALL_ERROR_LABEL;						\
25845f
- L(pseudo_cancel):							\
25845f
-  add -(16+STACK_SPACE (args)),sp;					\
25845f
-  SAVE_ARGS_##args							\
25845f
-  CENABLE								\
25845f
-  mov d0,r0;								\
25845f
-  LOAD_ARGS_##args							\
25845f
-  mov SYS_ify (syscall_name),d0;					\
25845f
-  syscall 0;								\
25845f
-  mov d0,(12,sp);							\
25845f
-  mov r0,d0;								\
25845f
-  CDISABLE								\
25845f
-  mov (12,sp),d0;							\
25845f
-  add +16+STACK_SPACE (args),sp						\
25845f
-  POPARGS_##args ;							\
25845f
-  cmp -126,d0;								\
25845f
-  bls L(pseudo_end);							\
25845f
-  jmp SYSCALL_ERROR_LABEL;						\
25845f
- L(pseudo_end):								\
25845f
-  mov d0,a0
25845f
-
25845f
-/* Reserve up to 2 stack slots for a0 and d1, but fewer than that if
25845f
-   we don't have that many arguments.  */
25845f
-# define STACK_SPACE(n) (((((n) < 3) * (2 - (n))) + 2) * 4)
25845f
-
25845f
-# define SAVE_ARGS_0
25845f
-# define SAVE_ARGS_1	mov a0,(20,sp) ;
25845f
-# define SAVE_ARGS_2	SAVE_ARGS_1 mov d1,(24,sp) ;
25845f
-# define SAVE_ARGS_3	SAVE_ARGS_2
25845f
-# define SAVE_ARGS_4	SAVE_ARGS_3
25845f
-# define SAVE_ARGS_5	SAVE_ARGS_4
25845f
-# define SAVE_ARGS_6	SAVE_ARGS_5
25845f
-
25845f
-# define LOAD_ARGS_0
25845f
-# define LOAD_ARGS_1	mov (20,sp),a0 ;
25845f
-# define LOAD_ARGS_2	LOAD_ARGS_1 mov (24,sp),d1 ;
25845f
-# define LOAD_ARGS_3	LOAD_ARGS_2
25845f
-# define LOAD_ARGS_4	LOAD_ARGS_3
25845f
-# define LOAD_ARGS_5	LOAD_ARGS_4
25845f
-# define LOAD_ARGS_6	LOAD_ARGS_5
25845f
-
25845f
-# if IS_IN (libpthread)
25845f
-#  define CENABLE	call __pthread_enable_asynccancel,[],0;
25845f
-#  define CDISABLE	call __pthread_disable_asynccancel,[],0;
25845f
-# elif IS_IN (librt)
25845f
-#  ifdef PIC
25845f
-#   define CENABLE	movm [a2],(sp); \
25845f
-			1: mov pc,a2; \
25845f
-			add _GLOBAL_OFFSET_TABLE_-(1b-.),a2; \
25845f
-			call +__librt_enable_asynccancel@PLT,[],0; \
25845f
-			movm (sp),[a2];
25845f
-#   define CENABLE	movm [a2],(sp); \
25845f
-			1: mov pc,a2; \
25845f
-			add _GLOBAL_OFFSET_TABLE_-(1b-.),a2; \
25845f
-			call +__librt_disable_asynccancel@PLT,[],0; \
25845f
-			movm (sp),[a2];
25845f
-#  else
25845f
-#   define CENABLE	call +__librt_enable_asynccancel,[],0;
25845f
-#   define CDISABLE	call +__librt_disable_asynccancel,[],0;
25845f
-#  endif
25845f
-# else
25845f
-#  define CENABLE	call +__libc_enable_asynccancel,[],0;
25845f
-#  define CDISABLE	call +__libc_disable_asynccancel,[],0;
25845f
-# endif
25845f
-
25845f
-#if IS_IN (libc)
25845f
-# define __local_multiple_threads __libc_multiple_threads
25845f
-#elif IS_IN (libpthread)
25845f
-# define __local_multiple_threads __pthread_multiple_threads
25845f
-#else
25845f
-# define __local_multiple_threads __librt_multiple_threads
25845f
-#endif
25845f
-
25845f
-# ifndef __ASSEMBLER__
25845f
-#  if defined FLOATING_STACKS && USE___THREAD && defined PIC
25845f
-#   define SINGLE_THREAD_P \
25845f
-  __builtin_expect (THREAD_GETMEM (THREAD_SELF,				      \
25845f
-				   p_header.data.multiple_threads) == 0, 1)
25845f
-#  else
25845f
-extern int __local_multiple_threads
25845f
-#   if IS_IN (libc) || IS_IN (libpthread)
25845f
-  attribute_hidden;
25845f
-#   else
25845f
-  ;
25845f
-#   endif
25845f
-#   define SINGLE_THREAD_P __builtin_expect (__local_multiple_threads == 0, 1)
25845f
-#  endif
25845f
-# else
25845f
-#  if !defined PIC
25845f
-#   define SINGLE_THREAD_P \
25845f
-	mov (+__local_multiple_threads),d0; \
25845f
-	cmp 0,d0
25845f
-#  elif IS_IN (libc) || IS_IN (libpthread)
25845f
-#   define SINGLE_THREAD_P \
25845f
-	movm [a2],(sp); \
25845f
-     1: mov pc,a2; \
25845f
-	add _GLOBAL_OFFSET_TABLE_-(1b-.),a2; \
25845f
-	mov (+__local_multiple_threads@GOTOFF,a2),d0; \
25845f
-	movm (sp),[a2]; \
25845f
-	cmp 0,d0
25845f
-#  else
25845f
-#   define SINGLE_THREAD_P \
25845f
-	movm [a2],(sp); \
25845f
-     1: mov pc,a2; \
25845f
-	add _GLOBAL_OFFSET_TABLE_-(1b-.),a2; \
25845f
-	mov (+__local_multiple_threads@GOT,a2),a2; \
25845f
-	mov (a2),d0; \
25845f
-	movm (sp),[a2]; \
25845f
-	cmp 0,d0
25845f
-#  endif
25845f
-# endif
25845f
-
25845f
-#elif !defined __ASSEMBLER__
25845f
-
25845f
-/* This code should never be used but we define it anyhow.  */
25845f
-# define SINGLE_THREAD_P (1)
25845f
-
25845f
-#endif
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/lockf64.c b/ports/sysdeps/unix/sysv/linux/am33/lockf64.c
25845f
deleted file mode 100644
25845f
index a88f5a784a544f0a..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/lockf64.c
25845f
+++ /dev/null
25845f
@@ -1 +0,0 @@
25845f
-#include <sysdeps/unix/sysv/linux/i386/lockf64.c>
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/lxstat.c b/ports/sysdeps/unix/sysv/linux/am33/lxstat.c
25845f
deleted file mode 100644
25845f
index 0efa0aea491950a6..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/lxstat.c
25845f
+++ /dev/null
25845f
@@ -1 +0,0 @@
25845f
-#include <sysdeps/unix/sysv/linux/i386/lxstat.c>
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/profil-counter.h b/ports/sysdeps/unix/sysv/linux/am33/profil-counter.h
25845f
deleted file mode 100644
25845f
index f4b7eaae76da4cf5..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/profil-counter.h
25845f
+++ /dev/null
25845f
@@ -1,26 +0,0 @@
25845f
-/* Low-level statistical profiling support function.  Linux/am33 version.
25845f
-   Copyright (C) 1996, 1997, 1998, 2001 Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Library General Public License as
25845f
-   published by the Free Software Foundation; either version 2 of the
25845f
-   License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Library General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Library General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#include <signal.h>
25845f
-#include <sigcontextinfo.h>
25845f
-
25845f
-static void
25845f
-profil_counter (int signo, SIGCONTEXT scp)
25845f
-{
25845f
-  profil_count ((void *) GET_PC (scp));
25845f
-}
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/putmsg.c b/ports/sysdeps/unix/sysv/linux/am33/putmsg.c
25845f
deleted file mode 100644
25845f
index ebc1680ca7d1f2b5..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/putmsg.c
25845f
+++ /dev/null
25845f
@@ -1 +0,0 @@
25845f
-#include <sysdeps/unix/sysv/linux/i386/putmsg.c>
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/setegid.c b/ports/sysdeps/unix/sysv/linux/am33/setegid.c
25845f
deleted file mode 100644
25845f
index 2e3a54c893448c3d..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/setegid.c
25845f
+++ /dev/null
25845f
@@ -1 +0,0 @@
25845f
-#include <sysdeps/unix/sysv/linux/i386/setegid.c>
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/seteuid.c b/ports/sysdeps/unix/sysv/linux/am33/seteuid.c
25845f
deleted file mode 100644
25845f
index 18e41d08c1b7821f..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/seteuid.c
25845f
+++ /dev/null
25845f
@@ -1 +0,0 @@
25845f
-#include <sysdeps/unix/sysv/linux/i386/seteuid.c>
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/setfsgid.c b/ports/sysdeps/unix/sysv/linux/am33/setfsgid.c
25845f
deleted file mode 100644
25845f
index 0886712569e3e055..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/setfsgid.c
25845f
+++ /dev/null
25845f
@@ -1 +0,0 @@
25845f
-#include <sysdeps/unix/sysv/linux/i386/setfsgid.c>
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/setfsuid.c b/ports/sysdeps/unix/sysv/linux/am33/setfsuid.c
25845f
deleted file mode 100644
25845f
index a9f22eb8ab823deb..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/setfsuid.c
25845f
+++ /dev/null
25845f
@@ -1 +0,0 @@
25845f
-#include <sysdeps/unix/sysv/linux/i386/setfsuid.c>
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/setgid.c b/ports/sysdeps/unix/sysv/linux/am33/setgid.c
25845f
deleted file mode 100644
25845f
index 377021d9ec8f9cea..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/setgid.c
25845f
+++ /dev/null
25845f
@@ -1 +0,0 @@
25845f
-#include <sysdeps/unix/sysv/linux/i386/setgid.c>
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/setgroups.c b/ports/sysdeps/unix/sysv/linux/am33/setgroups.c
25845f
deleted file mode 100644
25845f
index cb9a7708e38ebc68..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/setgroups.c
25845f
+++ /dev/null
25845f
@@ -1 +0,0 @@
25845f
-#include <sysdeps/unix/sysv/linux/i386/setgroups.c>
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/setregid.c b/ports/sysdeps/unix/sysv/linux/am33/setregid.c
25845f
deleted file mode 100644
25845f
index 99c57ad20f1ddb0c..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/setregid.c
25845f
+++ /dev/null
25845f
@@ -1 +0,0 @@
25845f
-#include <sysdeps/unix/sysv/linux/i386/setregid.c>
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/setresgid.c b/ports/sysdeps/unix/sysv/linux/am33/setresgid.c
25845f
deleted file mode 100644
25845f
index daca1a48332e49d6..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/setresgid.c
25845f
+++ /dev/null
25845f
@@ -1 +0,0 @@
25845f
-#include <sysdeps/unix/sysv/linux/i386/setresgid.c>
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/setresuid.c b/ports/sysdeps/unix/sysv/linux/am33/setresuid.c
25845f
deleted file mode 100644
25845f
index 3aeabe9ad708c454..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/setresuid.c
25845f
+++ /dev/null
25845f
@@ -1 +0,0 @@
25845f
-#include <sysdeps/unix/sysv/linux/i386/setresuid.c>
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/setreuid.c b/ports/sysdeps/unix/sysv/linux/am33/setreuid.c
25845f
deleted file mode 100644
25845f
index 8ad61226e979db47..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/setreuid.c
25845f
+++ /dev/null
25845f
@@ -1 +0,0 @@
25845f
-#include <sysdeps/unix/sysv/linux/i386/setreuid.c>
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/setrlimit.c b/ports/sysdeps/unix/sysv/linux/am33/setrlimit.c
25845f
deleted file mode 100644
25845f
index bfaef74c387f91c0..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/setrlimit.c
25845f
+++ /dev/null
25845f
@@ -1 +0,0 @@
25845f
-#include <sysdeps/unix/sysv/linux/i386/setrlimit.c>
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/setuid.c b/ports/sysdeps/unix/sysv/linux/am33/setuid.c
25845f
deleted file mode 100644
25845f
index de394379be6f9f90..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/setuid.c
25845f
+++ /dev/null
25845f
@@ -1 +0,0 @@
25845f
-#include <sysdeps/unix/sysv/linux/i386/setuid.c>
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/socket.S b/ports/sysdeps/unix/sysv/linux/am33/socket.S
25845f
deleted file mode 100644
25845f
index b4d3caab8a6506d8..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/socket.S
25845f
+++ /dev/null
25845f
@@ -1,72 +0,0 @@
25845f
-/* Copyright 2001 Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-   Contributed by Alexandre Oliva <aoliva@redhat.com>.
25845f
-   Based on ../i386/socket.S.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Library General Public License as
25845f
-   published by the Free Software Foundation; either version 2 of the
25845f
-   License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Library General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Library General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#include <sysdep.h>
25845f
-#include <socketcall.h>
25845f
-
25845f
-#define P(a, b) P2(a, b)
25845f
-#define P2(a, b) a##b
25845f
-
25845f
-	.text
25845f
-/* The socket-oriented system calls are handled unusally in Linux.
25845f
-   They are all gated through the single `socketcall' system call number.
25845f
-   `socketcall' takes two arguments: the first is the subcode, specifying
25845f
-   which socket function is being called; and the second is a pointer to
25845f
-   the arguments to the specific function.
25845f
-
25845f
-   The .S files for the other calls just #define socket and #include this.  */
25845f
-
25845f
-#ifndef __socket
25845f
-#ifndef NO_WEAK_ALIAS
25845f
-#define __socket P(__,socket)
25845f
-#else
25845f
-#define __socket socket
25845f
-#endif
25845f
-#endif
25845f
-
25845f
-.globl __socket
25845f
-ENTRY (__socket)
25845f
-
25845f
-	mov d0,(4,sp)
25845f
-	mov d1,(8,sp)
25845f
-
25845f
-	mov SYS_ify(socketcall),d0	/* System call number in d0.  */
25845f
-
25845f
-	/* Use ## so `socket' is a separate token that might be #define'd.  */
25845f
-	mov P(SOCKOP_,socket),a0	/* Subcode is first arg to syscall.  */
25845f
-	mov sp,d1
25845f
-	add 4,d1			/* Address of args is 2nd arg.  */
25845f
-
25845f
-        /* Do the system call trap.  */
25845f
-	syscall 0
25845f
-
25845f
-	/* d0 is < 0 if there was an error.  */
25845f
-	cmp -126,d0
25845f
-	bls L(pseudo_end)
25845f
-	jmp SYSCALL_ERROR_LABEL
25845f
-
25845f
-	/* Successful; return the syscall's value.  */
25845f
-L(pseudo_end):
25845f
-	ret
25845f
-
25845f
-PSEUDO_END (__socket)
25845f
-
25845f
-#ifndef NO_WEAK_ALIAS
25845f
-weak_alias (__socket, socket)
25845f
-#endif
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/syscall.S b/ports/sysdeps/unix/sysv/linux/am33/syscall.S
25845f
deleted file mode 100644
25845f
index 63fa6ddcd4f670ae..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/syscall.S
25845f
+++ /dev/null
25845f
@@ -1,42 +0,0 @@
25845f
-/* Copyright (C) 1995, 1996, 1998, 2001 Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-   Contributed by Alexandre Oliva <aoliva@redhat.com>.
25845f
-   Based on ../i386/syscall.S.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Library General Public License as
25845f
-   published by the Free Software Foundation; either version 2 of the
25845f
-   License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Library General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Library General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#include <sysdep.h>
25845f
-
25845f
-/* Please consult the file sysdeps/unix/sysv/linux/am33/sysdep.h for
25845f
-   more information about the value -126 used below.*/
25845f
-
25845f
-	.text
25845f
-ENTRY (syscall)
25845f
-	movm [d2,d3,a2,a3],(sp)	/* Save register contents.  */
25845f
-	mov d1,a0
25845f
-	mov (28,sp),d1
25845f
-	mov (32,sp),a3
25845f
-	mov (36,sp),a2
25845f
-	mov (40,sp),d3
25845f
-	mov (44,sp),d2
25845f
-	syscall 0			/* Do the system call.  */
25845f
-	movm (sp),[d2,d3,a2,a3]	/* Restore register contents.  */
25845f
-	cmp -126,d0			/* Check for error.  */
25845f
-	bls L(pseudo_end)
25845f
-	jmp SYSCALL_ERROR_LABEL		/* Jump to error handler if error.  */
25845f
-L(pseudo_end):
25845f
-	ret				/* Return to caller.  */
25845f
-
25845f
-PSEUDO_END (syscall)
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/sysdep.S b/ports/sysdeps/unix/sysv/linux/am33/sysdep.S
25845f
deleted file mode 100644
25845f
index 877fd1e0823af3dd..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/sysdep.S
25845f
+++ /dev/null
25845f
@@ -1,41 +0,0 @@
25845f
-/* Copyright (C) 1995, 1996, 1997, 1998, 2001, 2004
25845f
-	Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-   Contributed by Alexandre Oliva <aoliva@redhat.com>.
25845f
-   Based on ../i386/sysdep.S.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Library General Public License as
25845f
-   published by the Free Software Foundation; either version 2 of the
25845f
-   License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Library General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Library General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#include <sysdep.h>
25845f
-
25845f
-/* The following code is only used in the shared library when we
25845f
-   compile the reentrant version.  Otherwise each system call defines
25845f
-   each own version.  */
25845f
-
25845f
-#ifndef PIC
25845f
-
25845f
-#undef CALL_MCOUNT
25845f
-#define CALL_MCOUNT /* Don't insert the profiling call, it clobbers %eax.  */
25845f
-
25845f
-	.text
25845f
-ENTRY (__syscall_error)
25845f
-	mov d0,d1
25845f
-	clr d0
25845f
-	sub d1,d0
25845f
-
25845f
-#define __syscall_error __syscall_error_1
25845f
-#include <../../../am33/sysdep.S>
25845f
-
25845f
-#endif	/* !PIC */
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/sysdep.h b/ports/sysdeps/unix/sysv/linux/am33/sysdep.h
25845f
deleted file mode 100644
25845f
index 68f93f8003e2dc07..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/sysdep.h
25845f
+++ /dev/null
25845f
@@ -1,316 +0,0 @@
25845f
-/* Copyright 2001, 2004 Free Software Foundation, Inc.
25845f
-   This file is part of the GNU C Library.
25845f
-   Contributed by Alexandre Oliva <aoliva@redhat.com>.
25845f
-   Based on ../i386/sysdep.h.
25845f
-
25845f
-   The GNU C Library is free software; you can redistribute it and/or
25845f
-   modify it under the terms of the GNU Library General Public License as
25845f
-   published by the Free Software Foundation; either version 2 of the
25845f
-   License, or (at your option) any later version.
25845f
-
25845f
-   The GNU C Library is distributed in the hope that it will be useful,
25845f
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
25845f
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25845f
-   Library General Public License for more details.
25845f
-
25845f
-   You should have received a copy of the GNU Library General Public
25845f
-   License along with the GNU C Library.  If not, see
25845f
-   <http://www.gnu.org/licenses/>.  */
25845f
-
25845f
-#ifndef _LINUX_AM33_SYSDEP_H
25845f
-#define _LINUX_AM33_SYSDEP_H 1
25845f
-
25845f
-/* There is some commonality.  */
25845f
-#include "../../../am33/sysdep.h"
25845f
-
25845f
-/* For Linux we can use the system call table in the header file
25845f
-	/usr/include/asm/unistd.h
25845f
-   of the kernel.  But these symbols do not follow the SYS_* syntax
25845f
-   so we have to redefine the `SYS_ify' macro here.  */
25845f
-#undef SYS_ify
25845f
-#define SYS_ify(syscall_name)	__NR_##syscall_name
25845f
-
25845f
-/* ELF-like local names start with `.L'.  */
25845f
-#undef L
25845f
-#define L(name)	.L##name
25845f
-
25845f
-#ifdef __ASSEMBLER__
25845f
-
25845f
-/* Linux uses a negative return value to indicate syscall errors,
25845f
-   unlike most Unices, which use the condition codes' carry flag.
25845f
-
25845f
-   Since version 2.1 the return value of a system call might be
25845f
-   negative even if the call succeeded.  E.g., the `lseek' system call
25845f
-   might return a large offset.  Therefore we must not anymore test
25845f
-   for < 0, but test for a real error by making sure the value in %eax
25845f
-   is a real error number.  Linus said he will make sure the no syscall
25845f
-   returns a value in -1 .. -4095 as a valid result so we can savely
25845f
-   test with -4095.  */
25845f
-
25845f
-/* We don't want the label for the error handle to be global when we define
25845f
-   it here.  */
25845f
-#ifdef PIC
25845f
-# define SYSCALL_ERROR_LABEL 0f
25845f
-#else
25845f
-# define SYSCALL_ERROR_LABEL syscall_error
25845f
-#endif
25845f
-
25845f
-#undef	PSEUDO
25845f
-#define	PSEUDO(name, syscall_name, args)				      \
25845f
-  .text;								      \
25845f
-  ENTRY (name)								      \
25845f
-    DO_CALL (syscall_name, args);					      \
25845f
-    cmp -126,d0;							      \
25845f
-    bls L(pseudo_end);							      \
25845f
-    jmp SYSCALL_ERROR_LABEL;						      \
25845f
-  L(pseudo_end):							      \
25845f
-    mov d0,a0;
25845f
-
25845f
-#undef	PSEUDO_END
25845f
-#define	PSEUDO_END(name)						      \
25845f
-  SYSCALL_ERROR_HANDLER							      \
25845f
-  END (name)
25845f
-
25845f
-#undef  PSEUDO_NOERROR
25845f
-#define	PSEUDO_NOERRNO(name, syscall_name, args)			      \
25845f
-  .text;								      \
25845f
-  ENTRY (name)								      \
25845f
-    DO_CALL (syscall_name, args)
25845f
-
25845f
-#undef	PSEUDO_END_NOERRNO
25845f
-#define	PSEUDO_END_NOERRNO(name)					      \
25845f
-  END (name)
25845f
-
25845f
-#define ret_NOERRNO ret
25845f
-
25845f
-/* The function has to return the error code.  */
25845f
-#undef	PSEUDO_ERRVAL
25845f
-#define	PSEUDO_ERRVAL(name, syscall_name, args) \
25845f
-  .text;								      \
25845f
-  ENTRY (name)								      \
25845f
-    DO_CALL (syscall_name, args);					      \
25845f
-    clr d1;								      \
25845f
-    sub d0,d1,d0
25845f
-
25845f
-#undef	PSEUDO_END_ERRVAL
25845f
-#define	PSEUDO_END_ERRVAL(name) \
25845f
-  END (name)
25845f
-
25845f
-#define ret_ERRVAL ret
25845f
-
25845f
-#ifndef PIC
25845f
-#define SYSCALL_ERROR_HANDLER	/* Nothing here; code in sysdep.S is used.  */
25845f
-#else
25845f
-/* Store (- d0) into errno through the GOT.  */
25845f
-#ifdef _LIBC_REENTRANT
25845f
-#define SYSCALL_ERROR_HANDLER						      \
25845f
-0:movm [d2,a2],(sp);							      \
25845f
-  add -12,sp;								      \
25845f
-1:mov pc,a2;								      \
25845f
-  add _GLOBAL_OFFSET_TABLE_-(1b-.),a2;					      \
25845f
-  clr d2;								      \
25845f
-  sub d0,d2;								      \
25845f
-  call __errno_location@PLT,[],0;					      \
25845f
-  mov d2,(a0);								      \
25845f
-  add 12,sp;								      \
25845f
-  movm (sp),[d2,a2];							      \
25845f
-  mov -1,d0;								      \
25845f
-  mov d0,a0;								      \
25845f
-  jmp L(pseudo_end);
25845f
-/* A quick note: it is assumed that the call to `__errno_location' does
25845f
-   not modify the stack!  */
25845f
-#else
25845f
-#define SYSCALL_ERROR_HANDLER						      \
25845f
-0:mov pc,a0;								      \
25845f
-  add _GLOBAL_OFFSET_TABLE_-(0b-.),a0;					      \
25845f
-  clr d1;								      \
25845f
-  sub d0,d1;								      \
25845f
-  mov (errno@GOT,a0),a1;						      \
25845f
-  mov d1,(a0);								      \
25845f
-  mov -1,d0;								      \
25845f
-  mov d0,a0;								      \
25845f
-  jmp L(pseudo_end);
25845f
-#endif	/* _LIBC_REENTRANT */
25845f
-#endif	/* PIC */
25845f
-
25845f
-/* Linux takes system call arguments in registers:
25845f
-
25845f
-	syscall number	d0	     call-clobbered
25845f
-	arg 1		a0	     call-clobbered
25845f
-	arg 2		d1	     call-clobbered
25845f
-	arg 3		a3	     call-saved
25845f
-	arg 4		a2	     call-saved
25845f
-	arg 5		d3	     call-saved
25845f
-	arg 6		d2	     call-saved
25845f
-
25845f
-   The stack layout upon entering the function is:
25845f
-
25845f
-	 (24,sp)	Arg# 6
25845f
-	 (20,sp)	Arg# 5
25845f
-	 (16,sp)	Arg# 4
25845f
-	 (12,sp)	Arg# 3
25845f
-	  d1		Arg# 2
25845f
-	  d0		Arg# 1
25845f
-	  (sp)		Return address
25845f
-
25845f
-   (Of course a function with say 3 arguments does not have entries for
25845f
-   arguments 4, 5 and 6.)  */
25845f
-
25845f
-#undef	DO_CALL
25845f
-#define DO_CALL(syscall_name, args)			      		      \
25845f
-    PUSHARGS_##args							      \
25845f
-    DOARGS_##args							      \
25845f
-    mov SYS_ify (syscall_name),d0;					      \
25845f
-    syscall 0								      \
25845f
-    POPARGS_##args
25845f
-
25845f
-#define PUSHARGS_0	/* No arguments to push.  */
25845f
-#define	_DOARGS_0(N)	/* No arguments to frob.  */
25845f
-#define	DOARGS_0	/* No arguments to frob.  */
25845f
-#define	POPARGS_0	/* No arguments to pop.  */
25845f
-
25845f
-#define PUSHARGS_1	/* No arguments to push.  */
25845f
-#define	_DOARGS_1(N)	_DOARGS_0 (N-4) mov d0,a0;
25845f
-#define	DOARGS_1	_DOARGS_1 (4)
25845f
-#define	POPARGS_1	/* No arguments to pop.  */
25845f
-
25845f
-#define PUSHARGS_2	/* No arguments to push.  */
25845f
-#define	_DOARGS_2(N)	_DOARGS_1 (N-4) /* Argument already in d1.  */
25845f
-#define	DOARGS_2	_DOARGS_2 (8)
25845f
-#define	POPARGS_2	/* No arguments to pop.  */
25845f
-
25845f
-#define PUSHARGS_3	movm [a3],(sp);
25845f
-#define	_DOARGS_3(N)	_DOARGS_2 (N-4) mov (N,sp),a3;
25845f
-#define DOARGS_3	_DOARGS_3 (16)
25845f
-#define POPARGS_3	; movm (sp),[a3]
25845f
-
25845f
-#define PUSHARGS_4	movm [a2,a3],(sp);
25845f
-#define	_DOARGS_4(N)	_DOARGS_3 (N-4) mov (N,sp),a2;
25845f
-#define DOARGS_4	_DOARGS_4 (24)
25845f
-#define POPARGS_4	; movm (sp),[a2,a3]
25845f
-
25845f
-#define PUSHARGS_5	movm [d3,a2,a3],(sp);
25845f
-#define	_DOARGS_5(N)	_DOARGS_4 (N-4) mov (N,sp),d3;
25845f
-#define DOARGS_5	_DOARGS_5 (32)
25845f
-#define POPARGS_5	; movm (sp),[d3,a2,a3]
25845f
-
25845f
-#define PUSHARGS_6	movm [d2,d3,a2,a3],(sp);
25845f
-#define	_DOARGS_6(N)	_DOARGS_5 (N-4) mov (N,sp),d2;
25845f
-#define DOARGS_6	_DOARGS_6 (40)
25845f
-#define POPARGS_6	; movm (sp),[d2,d3,a2,a3]
25845f
-
25845f
-#else	/* !__ASSEMBLER__ */
25845f
-
25845f
-/* Define a macro which expands inline into the wrapper code for a system
25845f
-   call.  */
25845f
-#undef INLINE_SYSCALL
25845f
-#define INLINE_SYSCALL(name, nr, args...) \
25845f
-  ({									\
25845f
-    unsigned int resultvar = INTERNAL_SYSCALL (name, , nr, args);	\
25845f
-    if (__builtin_expect (INTERNAL_SYSCALL_ERROR_P (resultvar, ), 0))	\
25845f
-      {									\
25845f
-	__set_errno (INTERNAL_SYSCALL_ERRNO (resultvar, ));		\
25845f
-	resultvar = 0xffffffff;						\
25845f
-      }									\
25845f
-    (int) resultvar; })
25845f
-
25845f
-#define INTERNAL_SYSCALL(name, err, nr, args...)			\
25845f
-({									\
25845f
-	register long __sc0 asm ("d0") = __NR_##name; 			\
25845f
-	inline_syscall##nr(name, ## args);				\
25845f
-	__sc0;								\
25845f
-})
25845f
-
25845f
-#undef INTERNAL_SYSCALL_DECL
25845f
-#define INTERNAL_SYSCALL_DECL(err) do { } while (0)
25845f
-
25845f
-#undef INTERNAL_SYSCALL_ERROR_P
25845f
-#define INTERNAL_SYSCALL_ERROR_P(val, err) \
25845f
-  ((unsigned int) (val) >= (unsigned long)-125)
25845f
-
25845f
-#undef INTERNAL_SYSCALL_ERRNO
25845f
-#define INTERNAL_SYSCALL_ERRNO(val, err) (-(val))
25845f
-
25845f
-#define inline_syscall0(name,dummy...) \
25845f
-__asm__ __volatile__ ("syscall 0" \
25845f
-	              : "+d" (__sc0) \
25845f
-	              : : "memory")
25845f
-
25845f
-#define inline_syscall1(name,arg1) \
25845f
-register long __sc1 asm ("a0") = (long) (arg1); \
25845f
-inline_syscall0 (name); \
25845f
-__asm__ __volatile__ ("" : : "r" (__sc1))
25845f
-
25845f
-#define inline_syscall2(name,arg1,arg2) \
25845f
-register long __sc2 asm ("d1") = (long) (arg2); \
25845f
-inline_syscall1 (name,(arg1)); \
25845f
-__asm__ __volatile__ ("" : : "r" (__sc2))
25845f
-
25845f
-/* We can't tell whether a3 is going to be eliminated in the enclosing
25845f
-   function, so we have to assume it isn't.  We first load the value
25845f
-   of any arguments into their registers, except for a3 itself, that
25845f
-   may be needed to load the value of the other arguments.  Then, we
25845f
-   save a3's value in some other register, and load the argument value
25845f
-   into a3.  We have to force both a3 and its copy to be live in
25845f
-   different registers at the same time, to avoid having the copy
25845f
-   spilled and the value reloaded into the same register, in which
25845f
-   case we'd be unable to get the value of a3 back, should the stack
25845f
-   slot reference be (offset,a3).  */
25845f
-#define inline_syscall3(name,arg1,arg2,arg3) \
25845f
-long __sc3v = (long) (arg3); \
25845f
-register long __sc1 asm ("a0") = (long) (arg1); \
25845f
-register long __sc2 asm ("d1") = (long) (arg2); \
25845f
-register long __sc3 asm ("a3") = __sc3;	\
25845f
-register long __sc3c; \
25845f
-__asm__ __volatile__ ("mov %1,%0" : "=&r" (__sc3c) : "r" (__sc3)); \
25845f
-__sc3 = __sc3v; \
25845f
-__asm__ __volatile__ ("" : : "r" (__sc3c), "r" (__sc3)); \
25845f
-inline_syscall0 (name); \
25845f
-__sc3 = __sc3c; \
25845f
-__asm__ __volatile__ ("" : : "r" (__sc3), "r" (__sc2), "r" (__sc1))
25845f
-
25845f
-#ifdef PIC
25845f
-/* Since a2 is the PIC register, it requires similar handling as a3
25845f
-   when we're generating PIC, as a2's value may be needed to load
25845f
-   arguments whose values live in global variables.  The difference is
25845f
-   that we don't need to require its value to be live in a register;
25845f
-   it may well be in a stack slot, as long as we save it before
25845f
-   clobbering a3 and restore it after restoring a3.  */
25845f
-#define inline_syscall4(name,arg1,arg2,arg3,arg4) \
25845f
-long __sc4v = (long) (arg4); \
25845f
-long __sc3v = (long) (arg3); \
25845f
-register long __sc1 asm ("a0") = (long) (arg1); \
25845f
-register long __sc2 asm ("d1") = (long) (arg2); \
25845f
-register long __sc3 asm ("a3") = __sc3;	\
25845f
-register long __sc3c; \
25845f
-register long __sc4 asm ("a2") = __sc4;	\
25845f
-long __sc4c = __sc4; \
25845f
-__sc4 = __sc4v; \
25845f
-__asm__ __volatile__ ("mov %1,%0" : "=&r" (__sc3c) : "r" (__sc3)); \
25845f
-__sc3 = __sc3v; \
25845f
-__asm__ __volatile__ ("" : : "r" (__sc3c), "r" (__sc3), "r" (__sc4)); \
25845f
-inline_syscall0 (name); \
25845f
-__sc3 = __sc3c; \
25845f
-__sc4 = __sc4c; \
25845f
-__asm__ __volatile__ ("" : : "r" (__sc4), "r" (__sc3), \
25845f
-			     "r" (__sc2), "r" (__sc1))
25845f
-#else
25845f
-#define inline_syscall4(name,arg1,arg2,arg3,arg4) \
25845f
-register long __sc4 asm ("a2") = (long) (arg4); \
25845f
-inline_syscall3 (name,(arg1),(arg2),(arg3)); \
25845f
-__asm__ __volatile__ ("" : : "r" (__sc4))
25845f
-#endif
25845f
-
25845f
-#define inline_syscall5(name,arg1,arg2,arg3,arg4,arg5) \
25845f
-register long __sc5 asm ("d3") = (long) (arg5); \
25845f
-inline_syscall4 (name,(arg1),(arg2),(arg3),(arg4)); \
25845f
-__asm__ __volatile__ ("" : : "r" (__sc5))
25845f
-
25845f
-#define inline_syscall6(name,arg1,arg2,arg3,arg4,arg5,arg6) \
25845f
-register long __sc6 asm ("d2") = (long) (arg6); \
25845f
-inline_syscall5 (name,(arg1),(arg2),(arg3),(arg4),(arg5)); \
25845f
-__asm__ __volatile__ ("" : : "r" (__sc6))
25845f
-
25845f
-#endif	/* __ASSEMBLER__ */
25845f
-
25845f
-#endif /* linux/am33/sysdep.h */
25845f
diff --git a/ports/sysdeps/unix/sysv/linux/am33/xstat.c b/ports/sysdeps/unix/sysv/linux/am33/xstat.c
25845f
deleted file mode 100644
25845f
index e9869f550892e9a2..0000000000000000
25845f
--- a/ports/sysdeps/unix/sysv/linux/am33/xstat.c
25845f
+++ /dev/null
25845f
@@ -1 +0,0 @@
25845f
-#include <sysdeps/unix/sysv/linux/i386/xstat.c>