summaryrefslogtreecommitdiffstats
path: root/libc/arch-sh
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2012-01-30 17:17:58 +0100
committerDavid 'Digit' Turner <digit@android.com>2012-01-31 20:28:23 +0100
commit70b1668a76d3b719ae690903ea790fda964a5458 (patch)
tree674232e6152fa67c0db8b07b0083bb3ac6c9bd8c /libc/arch-sh
parente80044455961005ac95e405c8d553f2418d8e50c (diff)
downloadbionic-70b1668a76d3b719ae690903ea790fda964a5458.zip
bionic-70b1668a76d3b719ae690903ea790fda964a5458.tar.gz
bionic-70b1668a76d3b719ae690903ea790fda964a5458.tar.bz2
remove obsolete SuperH support
We don't have a toolchain anymore, we don't have working original kernel headers, and nobody is maintaining this so there is really no point in keeping this here. Details of the patch: - removed code paths from Android.mk files related to the SuperH architecture ("sh") - removed libc/arch-sh, linker/arch-sh, libc/kernel/arch-sh - simplified libc/SYSCALLS.TXT - simplified the scripts in libc/tools/ and libc/kernel/tools Change-Id: I26b0e1422bdc347489e4573e2fbec0e402f75560 Signed-off-by: David 'Digit' Turner <digit@android.com>
Diffstat (limited to 'libc/arch-sh')
-rw-r--r--libc/arch-sh/bionic/__get_pc.S37
-rw-r--r--libc/arch-sh/bionic/__get_sp.S36
-rw-r--r--libc/arch-sh/bionic/__get_tls.c37
-rw-r--r--libc/arch-sh/bionic/__set_tls.c37
-rw-r--r--libc/arch-sh/bionic/_exit_with_stack_teardown.S52
-rw-r--r--libc/arch-sh/bionic/_setjmp.S125
-rw-r--r--libc/arch-sh/bionic/atomic_cmpxchg.S50
-rw-r--r--libc/arch-sh/bionic/atomics_sh.c110
-rw-r--r--libc/arch-sh/bionic/bzero.S29
-rw-r--r--libc/arch-sh/bionic/clone.S79
-rw-r--r--libc/arch-sh/bionic/crtbegin_dynamic.S97
-rw-r--r--libc/arch-sh/bionic/crtbegin_static.S91
-rw-r--r--libc/arch-sh/bionic/crtend.S39
-rw-r--r--libc/arch-sh/bionic/ffs.S103
-rw-r--r--libc/arch-sh/bionic/memcpy.S268
-rw-r--r--libc/arch-sh/bionic/memmove.S5
-rw-r--r--libc/arch-sh/bionic/memset.S295
-rw-r--r--libc/arch-sh/bionic/pipe.S63
-rw-r--r--libc/arch-sh/bionic/setjmp.S167
-rw-r--r--libc/arch-sh/bionic/sigsetjmp.S166
-rw-r--r--libc/arch-sh/bionic/syscall.S69
-rw-r--r--libc/arch-sh/bionic/unwind.c30
-rw-r--r--libc/arch-sh/include/endian.h39
-rw-r--r--libc/arch-sh/include/machine/_types.h126
-rw-r--r--libc/arch-sh/include/machine/asm.h217
-rw-r--r--libc/arch-sh/include/machine/exec.h35
-rw-r--r--libc/arch-sh/include/machine/ieee.h132
-rw-r--r--libc/arch-sh/include/machine/internal_types.h6
-rw-r--r--libc/arch-sh/include/machine/kernel.h42
-rw-r--r--libc/arch-sh/include/machine/limits.h60
-rw-r--r--libc/arch-sh/include/machine/setjmp.h7
-rw-r--r--libc/arch-sh/syscalls.mk182
-rw-r--r--libc/arch-sh/syscalls/__brk.S32
-rw-r--r--libc/arch-sh/syscalls/__fcntl.S32
-rw-r--r--libc/arch-sh/syscalls/__fcntl64.S32
-rw-r--r--libc/arch-sh/syscalls/__fork.S32
-rw-r--r--libc/arch-sh/syscalls/__fstatfs64.S32
-rw-r--r--libc/arch-sh/syscalls/__getcpu.S32
-rw-r--r--libc/arch-sh/syscalls/__getcwd.S32
-rw-r--r--libc/arch-sh/syscalls/__getpriority.S32
-rw-r--r--libc/arch-sh/syscalls/__ioctl.S32
-rw-r--r--libc/arch-sh/syscalls/__llseek.S35
-rw-r--r--libc/arch-sh/syscalls/__mmap2.S36
-rw-r--r--libc/arch-sh/syscalls/__open.S32
-rw-r--r--libc/arch-sh/syscalls/__openat.S32
-rw-r--r--libc/arch-sh/syscalls/__ptrace.S32
-rw-r--r--libc/arch-sh/syscalls/__reboot.S32
-rw-r--r--libc/arch-sh/syscalls/__rt_sigaction.S32
-rw-r--r--libc/arch-sh/syscalls/__rt_sigprocmask.S32
-rw-r--r--libc/arch-sh/syscalls/__rt_sigtimedwait.S32
-rw-r--r--libc/arch-sh/syscalls/__sched_getaffinity.S32
-rw-r--r--libc/arch-sh/syscalls/__set_thread_area.S32
-rw-r--r--libc/arch-sh/syscalls/__setresuid.S32
-rw-r--r--libc/arch-sh/syscalls/__setreuid.S32
-rw-r--r--libc/arch-sh/syscalls/__setuid.S32
-rw-r--r--libc/arch-sh/syscalls/__sigsuspend.S32
-rw-r--r--libc/arch-sh/syscalls/__socketcall.S32
-rw-r--r--libc/arch-sh/syscalls/__statfs64.S32
-rw-r--r--libc/arch-sh/syscalls/__sys_clone.S35
-rw-r--r--libc/arch-sh/syscalls/__syslog.S32
-rw-r--r--libc/arch-sh/syscalls/__timer_create.S32
-rw-r--r--libc/arch-sh/syscalls/__timer_delete.S32
-rw-r--r--libc/arch-sh/syscalls/__timer_getoverrun.S32
-rw-r--r--libc/arch-sh/syscalls/__timer_gettime.S32
-rw-r--r--libc/arch-sh/syscalls/__timer_settime.S32
-rw-r--r--libc/arch-sh/syscalls/__wait4.S32
-rw-r--r--libc/arch-sh/syscalls/__waitid.S35
-rw-r--r--libc/arch-sh/syscalls/_exit.S32
-rw-r--r--libc/arch-sh/syscalls/_exit_thread.S32
-rw-r--r--libc/arch-sh/syscalls/_waitpid.S32
-rw-r--r--libc/arch-sh/syscalls/access.S32
-rw-r--r--libc/arch-sh/syscalls/acct.S32
-rw-r--r--libc/arch-sh/syscalls/capget.S32
-rw-r--r--libc/arch-sh/syscalls/capset.S32
-rw-r--r--libc/arch-sh/syscalls/chdir.S32
-rw-r--r--libc/arch-sh/syscalls/chmod.S32
-rw-r--r--libc/arch-sh/syscalls/chown.S32
-rw-r--r--libc/arch-sh/syscalls/chroot.S32
-rw-r--r--libc/arch-sh/syscalls/clock_getres.S32
-rw-r--r--libc/arch-sh/syscalls/clock_gettime.S32
-rw-r--r--libc/arch-sh/syscalls/clock_nanosleep.S32
-rw-r--r--libc/arch-sh/syscalls/clock_settime.S32
-rw-r--r--libc/arch-sh/syscalls/close.S32
-rw-r--r--libc/arch-sh/syscalls/delete_module.S32
-rw-r--r--libc/arch-sh/syscalls/dup.S32
-rw-r--r--libc/arch-sh/syscalls/dup2.S32
-rw-r--r--libc/arch-sh/syscalls/epoll_create.S32
-rw-r--r--libc/arch-sh/syscalls/epoll_ctl.S32
-rw-r--r--libc/arch-sh/syscalls/epoll_wait.S32
-rw-r--r--libc/arch-sh/syscalls/eventfd.S32
-rw-r--r--libc/arch-sh/syscalls/execve.S32
-rw-r--r--libc/arch-sh/syscalls/fchdir.S32
-rw-r--r--libc/arch-sh/syscalls/fchmod.S32
-rw-r--r--libc/arch-sh/syscalls/fchmodat.S32
-rw-r--r--libc/arch-sh/syscalls/fchown.S32
-rw-r--r--libc/arch-sh/syscalls/fchownat.S35
-rw-r--r--libc/arch-sh/syscalls/fdatasync.S32
-rw-r--r--libc/arch-sh/syscalls/fgetxattr.S32
-rw-r--r--libc/arch-sh/syscalls/flistxattr.S32
-rw-r--r--libc/arch-sh/syscalls/flock.S32
-rw-r--r--libc/arch-sh/syscalls/fremovexattr.S32
-rw-r--r--libc/arch-sh/syscalls/fsetxattr.S35
-rw-r--r--libc/arch-sh/syscalls/fstat.S32
-rw-r--r--libc/arch-sh/syscalls/fstatat.S32
-rw-r--r--libc/arch-sh/syscalls/fsync.S32
-rw-r--r--libc/arch-sh/syscalls/ftruncate.S32
-rw-r--r--libc/arch-sh/syscalls/ftruncate64.S32
-rw-r--r--libc/arch-sh/syscalls/futex.S36
-rw-r--r--libc/arch-sh/syscalls/getdents.S32
-rw-r--r--libc/arch-sh/syscalls/getegid.S32
-rw-r--r--libc/arch-sh/syscalls/geteuid.S32
-rw-r--r--libc/arch-sh/syscalls/getgid.S32
-rw-r--r--libc/arch-sh/syscalls/getgroups.S32
-rw-r--r--libc/arch-sh/syscalls/getitimer.S32
-rw-r--r--libc/arch-sh/syscalls/getpgid.S32
-rw-r--r--libc/arch-sh/syscalls/getpid.S32
-rw-r--r--libc/arch-sh/syscalls/getppid.S32
-rw-r--r--libc/arch-sh/syscalls/getresgid.S32
-rw-r--r--libc/arch-sh/syscalls/getresuid.S32
-rw-r--r--libc/arch-sh/syscalls/getrlimit.S32
-rw-r--r--libc/arch-sh/syscalls/getrusage.S32
-rw-r--r--libc/arch-sh/syscalls/gettid.S32
-rw-r--r--libc/arch-sh/syscalls/gettimeofday.S32
-rw-r--r--libc/arch-sh/syscalls/getuid.S32
-rw-r--r--libc/arch-sh/syscalls/getxattr.S32
-rw-r--r--libc/arch-sh/syscalls/init_module.S32
-rw-r--r--libc/arch-sh/syscalls/inotify_add_watch.S32
-rw-r--r--libc/arch-sh/syscalls/inotify_init.S32
-rw-r--r--libc/arch-sh/syscalls/inotify_rm_watch.S32
-rw-r--r--libc/arch-sh/syscalls/ioprio_get.S32
-rw-r--r--libc/arch-sh/syscalls/ioprio_set.S32
-rw-r--r--libc/arch-sh/syscalls/kill.S32
-rw-r--r--libc/arch-sh/syscalls/klogctl.S32
-rw-r--r--libc/arch-sh/syscalls/lchown.S32
-rw-r--r--libc/arch-sh/syscalls/lgetxattr.S32
-rw-r--r--libc/arch-sh/syscalls/link.S32
-rw-r--r--libc/arch-sh/syscalls/listxattr.S32
-rw-r--r--libc/arch-sh/syscalls/llistxattr.S32
-rw-r--r--libc/arch-sh/syscalls/lremovexattr.S32
-rw-r--r--libc/arch-sh/syscalls/lseek.S32
-rw-r--r--libc/arch-sh/syscalls/lsetxattr.S35
-rw-r--r--libc/arch-sh/syscalls/lstat.S32
-rw-r--r--libc/arch-sh/syscalls/madvise.S32
-rw-r--r--libc/arch-sh/syscalls/mincore.S32
-rw-r--r--libc/arch-sh/syscalls/mkdir.S32
-rw-r--r--libc/arch-sh/syscalls/mkdirat.S32
-rw-r--r--libc/arch-sh/syscalls/mknod.S32
-rw-r--r--libc/arch-sh/syscalls/mlock.S32
-rw-r--r--libc/arch-sh/syscalls/mount.S35
-rw-r--r--libc/arch-sh/syscalls/mprotect.S32
-rw-r--r--libc/arch-sh/syscalls/mremap.S32
-rw-r--r--libc/arch-sh/syscalls/msync.S32
-rw-r--r--libc/arch-sh/syscalls/munlock.S32
-rw-r--r--libc/arch-sh/syscalls/munmap.S32
-rw-r--r--libc/arch-sh/syscalls/nanosleep.S32
-rw-r--r--libc/arch-sh/syscalls/pause.S32
-rw-r--r--libc/arch-sh/syscalls/pipe2.S32
-rw-r--r--libc/arch-sh/syscalls/poll.S32
-rw-r--r--libc/arch-sh/syscalls/prctl.S35
-rw-r--r--libc/arch-sh/syscalls/pread64.S35
-rw-r--r--libc/arch-sh/syscalls/pwrite64.S35
-rw-r--r--libc/arch-sh/syscalls/read.S32
-rw-r--r--libc/arch-sh/syscalls/readahead.S32
-rw-r--r--libc/arch-sh/syscalls/readlink.S32
-rw-r--r--libc/arch-sh/syscalls/readv.S32
-rw-r--r--libc/arch-sh/syscalls/removexattr.S32
-rw-r--r--libc/arch-sh/syscalls/rename.S32
-rw-r--r--libc/arch-sh/syscalls/renameat.S32
-rw-r--r--libc/arch-sh/syscalls/rmdir.S32
-rw-r--r--libc/arch-sh/syscalls/sched_get_priority_max.S32
-rw-r--r--libc/arch-sh/syscalls/sched_get_priority_min.S32
-rw-r--r--libc/arch-sh/syscalls/sched_getparam.S32
-rw-r--r--libc/arch-sh/syscalls/sched_getscheduler.S32
-rw-r--r--libc/arch-sh/syscalls/sched_rr_get_interval.S32
-rw-r--r--libc/arch-sh/syscalls/sched_setaffinity.S32
-rw-r--r--libc/arch-sh/syscalls/sched_setparam.S32
-rw-r--r--libc/arch-sh/syscalls/sched_setscheduler.S32
-rw-r--r--libc/arch-sh/syscalls/sched_yield.S32
-rw-r--r--libc/arch-sh/syscalls/select.S35
-rw-r--r--libc/arch-sh/syscalls/sendfile.S32
-rw-r--r--libc/arch-sh/syscalls/setgid.S32
-rw-r--r--libc/arch-sh/syscalls/setgroups.S32
-rw-r--r--libc/arch-sh/syscalls/setitimer.S32
-rw-r--r--libc/arch-sh/syscalls/setpgid.S32
-rw-r--r--libc/arch-sh/syscalls/setpriority.S32
-rw-r--r--libc/arch-sh/syscalls/setregid.S32
-rw-r--r--libc/arch-sh/syscalls/setresgid.S32
-rw-r--r--libc/arch-sh/syscalls/setrlimit.S32
-rw-r--r--libc/arch-sh/syscalls/setsid.S32
-rw-r--r--libc/arch-sh/syscalls/settimeofday.S32
-rw-r--r--libc/arch-sh/syscalls/setxattr.S35
-rw-r--r--libc/arch-sh/syscalls/sigaction.S32
-rw-r--r--libc/arch-sh/syscalls/sigaltstack.S32
-rw-r--r--libc/arch-sh/syscalls/sigpending.S32
-rw-r--r--libc/arch-sh/syscalls/sigprocmask.S32
-rw-r--r--libc/arch-sh/syscalls/stat.S32
-rw-r--r--libc/arch-sh/syscalls/symlink.S32
-rw-r--r--libc/arch-sh/syscalls/sync.S32
-rw-r--r--libc/arch-sh/syscalls/sysinfo.S32
-rw-r--r--libc/arch-sh/syscalls/times.S32
-rw-r--r--libc/arch-sh/syscalls/tkill.S32
-rw-r--r--libc/arch-sh/syscalls/truncate.S32
-rw-r--r--libc/arch-sh/syscalls/umask.S32
-rw-r--r--libc/arch-sh/syscalls/umount2.S32
-rw-r--r--libc/arch-sh/syscalls/uname.S32
-rw-r--r--libc/arch-sh/syscalls/unlink.S32
-rw-r--r--libc/arch-sh/syscalls/unlinkat.S32
-rw-r--r--libc/arch-sh/syscalls/utimensat.S32
-rw-r--r--libc/arch-sh/syscalls/utimes.S32
-rw-r--r--libc/arch-sh/syscalls/vfork.S32
-rw-r--r--libc/arch-sh/syscalls/write.S32
-rw-r--r--libc/arch-sh/syscalls/writev.S32
212 files changed, 0 insertions, 8635 deletions
diff --git a/libc/arch-sh/bionic/__get_pc.S b/libc/arch-sh/bionic/__get_pc.S
deleted file mode 100644
index 155b387..0000000
--- a/libc/arch-sh/bionic/__get_pc.S
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Copyright (C) 2009 The Android Open Source Project
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-.text
-.type __get_pc, @function
-.globl __get_pc
-.align 4
-
-__get_pc:
- mova 1f, r0
- rts
-1: nop
-
diff --git a/libc/arch-sh/bionic/__get_sp.S b/libc/arch-sh/bionic/__get_sp.S
deleted file mode 100644
index 0e34a01..0000000
--- a/libc/arch-sh/bionic/__get_sp.S
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Copyright (C) 2009 The Android Open Source Project
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-.text
-.type __get_sp, @function
-.globl __get_sp
-.align 4
-
-__get_sp:
- rts
- mov r15, r0
-
diff --git a/libc/arch-sh/bionic/__get_tls.c b/libc/arch-sh/bionic/__get_tls.c
deleted file mode 100644
index 8a5e4ff..0000000
--- a/libc/arch-sh/bionic/__get_tls.c
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Copyright (C) 2009 The Android Open Source Project
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-/* see the implementation of __set_tls and pthread.c to understand this
- * code. Basically, the content of fs:[0] always is a pointer to the base
- * address of the tls region
- */
-void *__get_tls(void)
-{
- void *tls;
- asm volatile("stc gbr, %0" : "=r"(tls));
- return tls;
-}
diff --git a/libc/arch-sh/bionic/__set_tls.c b/libc/arch-sh/bionic/__set_tls.c
deleted file mode 100644
index 7f863de..0000000
--- a/libc/arch-sh/bionic/__set_tls.c
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Copyright (C) 2009 The Android Open Source Project
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-#include <pthread.h>
-
-/*
- * Simply set tls address into GBR.
- */
-int __set_tls(void *ptr)
-{
- asm volatile("ldc %0, gbr" : /* no output */ : "r" (ptr));
- return 0;
-}
diff --git a/libc/arch-sh/bionic/_exit_with_stack_teardown.S b/libc/arch-sh/bionic/_exit_with_stack_teardown.S
deleted file mode 100644
index 6356eb6..0000000
--- a/libc/arch-sh/bionic/_exit_with_stack_teardown.S
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Copyright (C) 2009 The Android Open Source Project
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-#include <asm/unistd.h>
-
-.text
-.type _exit_with_stack_teardown, @function
-.globl _exit_with_stack_teardown
-.align 4
-
-# void _exit_with_stack_teardown(void * stackBase, int stackSize, int retCode)
-
-_exit_with_stack_teardown:
- mov r6, r8 /* save retCode : breaks r8 value */
- mov.l 0f, r3 /* system call number */
- trapa #(2 + 0x10) /* invoke system call with num of args */
-
- mov r8, r4 /* restore retCode */
- mov.l 1f, r3 /* system call number */
- trapa #(1 + 0x10) /* invoke system call with num of args */
-
- /* exit() should never return, cause a crash if it does */
- mov #0, r0
- mov.l @r0, r0
-
- .align 2
-0: .long __NR_munmap
-1: .long __NR_exit
diff --git a/libc/arch-sh/bionic/_setjmp.S b/libc/arch-sh/bionic/_setjmp.S
deleted file mode 100644
index a04fcb6..0000000
--- a/libc/arch-sh/bionic/_setjmp.S
+++ /dev/null
@@ -1,125 +0,0 @@
-/* $OpenBSD: _setjmp.S,v 1.2 2007/03/02 06:11:54 miod Exp $ */
-/* $NetBSD: _setjmp.S,v 1.7 2006/01/05 02:04:41 uwe Exp $ */
-
-/*-
- * Copyright (c) 1990 The Regents of the University of California.
- * All rights reserved.
- *
- * This code is derived from software contributed to Berkeley by
- * William Jolitz.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * from: @(#)_setjmp.s 5.1 (Berkeley) 4/23/90
- */
-
-#include <machine/asm.h>
-#include <machine/setjmp.h>
-
-/*
- * C library -- _setjmp, _longjmp
- *
- * _longjmp(a,v)
- * will generate a "return(v)" from the last call to
- * _setjmp(a)
- * by restoring registers from the stack.
- * The previous signal state is NOT restored.
- */
-
-ENTRY(_setjmp)
- xor r0, r0
-#if defined(__SH4__) && !defined(__SH4_NOFPU__)
- add #(_JBLEN * 4), r4
- sts fpscr, r1
- mov.l r1, @-r4
- lds r0, fpscr
- sts.l fpul, @-r4
- fmov.s fr15, @-r4
- fmov.s fr14, @-r4
- fmov.s fr13, @-r4
- fmov.s fr12, @-r4
- frchg
- fmov.s fr15, @-r4
- fmov.s fr14, @-r4
- fmov.s fr13, @-r4
- fmov.s fr12, @-r4
- lds r1, fpscr
-#else
- add #((_JBLEN - 10) * 4), r4
-#endif
- sts.l mach, @-r4
- sts.l macl, @-r4
- mov.l r15, @-r4
- mov.l r14, @-r4
- mov.l r13, @-r4
- mov.l r12, @-r4
- mov.l r11, @-r4
- mov.l r10, @-r4
- mov.l r9, @-r4
- mov.l r8, @-r4
- sts.l pr, @-r4
- mov.l r0, @-r4 /* dummy signal mask */
- rts
- mov.l r0, @-r4 /* no saved signal mask */
- SET_ENTRY_SIZE(_setjmp)
-
-ENTRY(_longjmp)
- add #8, r4
- lds.l @r4+, pr
- mov.l @r4+, r8
- mov.l @r4+, r9
- mov.l @r4+, r10
- mov.l @r4+, r11
- mov.l @r4+, r12
- mov.l @r4+, r13
- mov.l @r4+, r14
- mov.l @r4+, r15
- lds.l @r4+, macl
- lds.l @r4+, mach
-#if defined(__SH4__) && !defined(__SH4_NOFPU__)
- xor r0, r0
- lds r0, fpscr
- frchg
- fmov.s @r4+, fr12
- fmov.s @r4+, fr13
- fmov.s @r4+, fr14
- fmov.s @r4+, fr15
- frchg
- fmov.s @r4+, fr12
- fmov.s @r4+, fr13
- fmov.s @r4+, fr14
- fmov.s @r4+, fr15
- lds.l @r4+, fpul
- lds.l @r4+, fpscr
-#endif
-
- mov r5, r0
- tst r0, r0
- bf .L0
- add #1, r0
-.L0:
- rts
- nop
- SET_ENTRY_SIZE(_longjmp)
diff --git a/libc/arch-sh/bionic/atomic_cmpxchg.S b/libc/arch-sh/bionic/atomic_cmpxchg.S
deleted file mode 100644
index 4ccd6cf..0000000
--- a/libc/arch-sh/bionic/atomic_cmpxchg.S
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright (C) 2009 The Android Open Source Project
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-.text
-.type __atomic_cmpxchg, @function
-.globl __atomic_cmpxchg
-.align 4
-
-__atomic_cmpxchg:
- mova 1f, r0
- nop
- mov r15, r1
- mov #-8, r15 /* critical region start */
-0: mov.l @r6, r2
- cmp/eq r2, r4
- bt not_yet_modified
- mov #1, r0
- bra done
- nop
-not_yet_modified:
- mov #0, r0
- mov.l r5, @r6
-done:
-1: mov r1, r15 /* critical region end */
- rts
- nop
diff --git a/libc/arch-sh/bionic/atomics_sh.c b/libc/arch-sh/bionic/atomics_sh.c
deleted file mode 100644
index c7815ff..0000000
--- a/libc/arch-sh/bionic/atomics_sh.c
+++ /dev/null
@@ -1,110 +0,0 @@
-/*
- * Copyright (C) 2009 The Android Open Source Project
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#include <pthread.h>
-#include <linux/futex.h>
-
-#define SWAP_LOCK_COUNT 32U
-static pthread_mutex_t _swap_locks[SWAP_LOCK_COUNT];
-
-#define SWAP_LOCK(addr) \
- &_swap_locks[((unsigned)(void *)(addr) >> 3U) % SWAP_LOCK_COUNT]
-
-#if 0
-/*
- * Only this function is moved to atomic_cmpxchg.S, and
- * implemented with gUSA framework.
- */
-int __atomic_cmpxchg(int old, int _new, volatile int *ptr)
-{
- int result;
- pthread_mutex_t *lock = SWAP_LOCK(ptr);
-
- pthread_mutex_lock(lock);
-
- if (*ptr == old) {
- *ptr = _new;
- result = 0;
- } else {
- result = 1;
- }
- pthread_mutex_unlock(lock);
- return result;
-}
-#else
-extern int __atomic_cmpxchg(int old, int _new, volatile int *ptr);
-#endif
-
-int __atomic_swap(int _new, volatile int *ptr)
-{
- int oldValue;
- do {
- oldValue = *ptr;
- } while (__atomic_cmpxchg(oldValue, _new, ptr));
- return oldValue;
-}
-
-int __atomic_dec(volatile int *ptr)
-{
- int oldValue;
- do {
- oldValue = *ptr;
- } while (__atomic_cmpxchg(oldValue, oldValue-1, ptr));
- return oldValue;
-}
-
-int __atomic_inc(volatile int *ptr)
-{
- int32_t oldValue;
- do {
- oldValue = *ptr;
- } while (__atomic_cmpxchg(oldValue, oldValue+1, ptr));
- return oldValue;
-}
-
-extern int futex(volatile void *, int, int, void *, void *, int);
-
-int __futex_wait(volatile void *ftx, int val, const struct timespec *timeout)
-{
- return futex(ftx, FUTEX_WAIT, val, (void *)timeout, NULL, 0);
-}
-
-int __futex_wake(volatile void *ftx, int count)
-{
- return futex(ftx, FUTEX_WAKE, count, NULL, NULL, 0);
-}
-
-int __futex_syscall3(volatile void *ftx, int op, int val)
-{
- return futex(ftx, op, val, NULL, NULL, 0);
-}
-
-int __futex_syscall4(volative void *ftx, int op, int val, const struct timespec *timeout)
-{
- return futex(ftx, op, val, (void *)timeout, NULL, 0);
-}
diff --git a/libc/arch-sh/bionic/bzero.S b/libc/arch-sh/bionic/bzero.S
deleted file mode 100644
index ca8bed4..0000000
--- a/libc/arch-sh/bionic/bzero.S
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Copyright (C) 2009 The Android Open Source Project
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-#define BZERO
-#include "memset.S"
diff --git a/libc/arch-sh/bionic/clone.S b/libc/arch-sh/bionic/clone.S
deleted file mode 100644
index 9cb19ee..0000000
--- a/libc/arch-sh/bionic/clone.S
+++ /dev/null
@@ -1,79 +0,0 @@
-/*
- * Copyright (C) 2009 The Android Open Source Project
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-#include <sys/linux-syscalls.h>
-
-.text
-.type __pthread_clone, @function
-.globl __pthread_clone
-.align 4
-
-__pthread_clone:
- /* insert the args onto the new stack */
- mov r5, r0
- mov.l r4, @-r0 /* func */
- mov.l r7, @-r0 /* arg */
-
- /* do the system call */
- mov r6, r4 /* Set clone_flags. new sp is ready in r5. */
- mov.l 0f, r3
- trapa #(4 + 0x10)
-
- /* check error */
- cmp/pz r0
- bf __error
-
- /* check if parent or child */
- cmp/pl r0
- bt __return
-
- /* prepare args for __thread_entry */
- mov #8, r1
- sub r1, r15 /* -8 */
- mov.l @r15+, r5 /* +4 */ /* arg */
- mov.l @r15+, r4 /* +4 */ /* func */
- mov r15, r6 /* tls */
-
- /* jump to __thread_entry */
- mov.l 1f, r0
- jmp @r0
- nop
-
-__error:
- mov #-1, r0
-__return:
- rts
- nop
-
- .align 2
-0: .long __NR_clone
-1: .long __thread_entry
-
-/* XXX: TODO: Add __bionic_clone here
- * See bionic/bionic_clone.c and arch-arm/bionic/clone.S
- * for more details...
- */ \ No newline at end of file
diff --git a/libc/arch-sh/bionic/crtbegin_dynamic.S b/libc/arch-sh/bionic/crtbegin_dynamic.S
deleted file mode 100644
index daf6c8b..0000000
--- a/libc/arch-sh/bionic/crtbegin_dynamic.S
+++ /dev/null
@@ -1,97 +0,0 @@
-/*
- * Copyright (C) 2009-2010 The Android Open Source Project
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-.text
-.align 4
-.type _start,#function
-.globl _start
-
-# this is the small startup code that is first run when
-# any executable that is dynamically-linked with Bionic
-# runs.
-#
-# it's purpose is to call __libc_init with appropriate
-# arguments, which are:
-#
-# - the address of the raw data block setup by the Linux
-# kernel ELF loader
-#
-# - address of an "onexit" function, not used on any
-# platform supported by Bionic
-#
-# - address of the "main" function of the program. We
-# can't hard-code it in the adr pseudo instruction
-# so we use a tiny trampoline that will get relocated
-# by the dynamic linker before this code runs
-#
-# - address of the constructor list
-#
-_start:
- mov r15, r4
- mov #0, r5
- mov.l 0f, r6
- mova 2f, r0
- mov r0, r7
- mov.l 1f, r0
- jmp @r0
- nop
-
- .balign 4
-0: .long main
-1: .long __libc_init
-2: .long __PREINIT_ARRAY__
- .long __INIT_ARRAY__
- .long __FINI_ARRAY__
- .long __CTOR_LIST__
-
-# the .ctors section contains a list of pointers to "constructor"
-# functions that need to be called in order during C library initialization,
-# just before the program is being run. This is a C++ requirement
-#
-# the last entry shall be 0, and is defined in crtend.S
-#
- .section .preinit_array, "aw"
- .globl __PREINIT_ARRAY__
-__PREINIT_ARRAY__:
- .long -1
-
- .section .init_array, "aw"
- .globl __INIT_ARRAY__
-__INIT_ARRAY__:
- .long -1
-
- .section .fini_array, "aw"
- .globl __FINI_ARRAY__
-__FINI_ARRAY__:
- .long -1
-
- .section .ctors, "aw"
- .globl __CTOR_LIST__
-__CTOR_LIST__:
- .long -1
-
-#include "__dso_handle.S"
diff --git a/libc/arch-sh/bionic/crtbegin_static.S b/libc/arch-sh/bionic/crtbegin_static.S
deleted file mode 100644
index 1d3fdf8..0000000
--- a/libc/arch-sh/bionic/crtbegin_static.S
+++ /dev/null
@@ -1,91 +0,0 @@
-/*
- * Copyright (C) 2009-2010 The Android Open Source Project
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-.text
-.align 4
-.type _start,#function
-.globl _start
-
-# this is the small startup code that is first run when
-# any executable that is statically-linked with Bionic
-# runs.
-#
-# it's purpose is to call __libc_init with appropriate
-# arguments, which are:
-#
-# - the address of the raw data block setup by the Linux
-# kernel ELF loader
-#
-# - address of an "onexit" function, not used on any
-# platform supported by Bionic
-#
-# - address of the "main" function of the program. We
-# can't hard-code it in the adr pseudo instruction
-# so we use a tiny trampoline that will get relocated
-# by the dynamic linker before this code runs
-#
-# - address of the constructor list
-#
-_start:
- mov r15, r4
- mov #0, r5
- mov.l 0f, r6
- mova 2f, r0
- mov r0, r7
- mov.l 1f, r0
- jmp @r0
- nop
-
- .balign 4
-0: .long main
-1: .long __libc_init
-2: .long __PREINIT_ARRAY__
- .long __INIT_ARRAY__
- .long __FINI_ARRAY__
- .long __CTOR_LIST__
-
- .section .preinit_array, "aw"
- .globl __PREINIT_ARRAY__
-__PREINIT_ARRAY__:
- .long -1
-
- .section .init_array, "aw"
- .globl __INIT_ARRAY__
-__INIT_ARRAY__:
- .long -1
-
- .section .fini_array, "aw"
- .globl __FINI_ARRAY__
-__FINI_ARRAY__:
- .long -1
-
- .section .ctors, "aw"
- .globl __CTOR_LIST__
-__CTOR_LIST__:
- .long -1
-
-#include "__dso_handle.S"
diff --git a/libc/arch-sh/bionic/crtend.S b/libc/arch-sh/bionic/crtend.S
deleted file mode 100644
index 4ced3aa..0000000
--- a/libc/arch-sh/bionic/crtend.S
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Copyright (C) 2009 The Android Open Source Project
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
- .section .preinit_array, "aw"
- .long 0
-
- .section .init_array, "aw"
- .long 0
-
- .section .fini_array, "aw"
- .long 0
-
- .section .ctors, "aw"
- .long 0
diff --git a/libc/arch-sh/bionic/ffs.S b/libc/arch-sh/bionic/ffs.S
deleted file mode 100644
index 733694b..0000000
--- a/libc/arch-sh/bionic/ffs.S
+++ /dev/null
@@ -1,103 +0,0 @@
-/* $NetBSD: ffs.S,v 1.1 2005/12/20 19:28:50 christos Exp $ */
-
-/*-
- * Copyright (c) 2002 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by ITOH Yasufumi.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the NetBSD
- * Foundation, Inc. and its contributors.
- * 4. Neither the name of The NetBSD Foundation nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <machine/asm.h>
-
-#if defined(LIBC_SCCS) && !defined(lint)
- RCSID("$NetBSD: ffs.S,v 1.1 2005/12/20 19:28:50 christos Exp $")
-#endif
-
-/*
- * ffs - find first bit set
- *
- * This code makes use of ``test 8bit'' and ``shift 8bit'' instructions.
- * The remaining 8bit is tested in every 2bit.
- */
-
-ENTRY(ffs)
- mov r4,r0 ! using r0 specific instructions
- tst #0xff,r0
- bf/s L8bit
- mov #0+1,r1 ! ret = 1..8
-
- tst r0,r0 ! ffs(0) is 0
- bt Lzero ! testing here to accelerate ret=1..8 cases
-
- shlr8 r0
- tst #0xff,r0
- bf/s L8bit
- mov #8+1,r1 ! ret = 9..16
-
- shlr8 r0
- tst #0xff,r0
- bf/s L8bit
- mov #16+1,r1 ! ret = 17..24
-
- shlr8 r0
- mov #24+1,r1 ! ret = 25..32
-
-L8bit:
- tst #0x0f,r0
- bt 4f
-
- tst #0x03,r0
- bt 2f
- tst #0x01,r0 ! not bit 0 -> T
- mov #0,r0
- rts
- addc r1,r0 ! 0 + r1 + T -> r0
-
-2: tst #0x04,r0
- mov #2,r0
- rts
- addc r1,r0
-
-4: tst #0x30,r0
- bt 6f
- tst #0x10,r0
- mov #4,r0
- rts
- addc r1,r0
-
-6: tst #0x40,r0
- mov #6,r0
- rts
- addc r1,r0
-
-Lzero: rts
- nop
diff --git a/libc/arch-sh/bionic/memcpy.S b/libc/arch-sh/bionic/memcpy.S
deleted file mode 100644
index 9d1b897..0000000
--- a/libc/arch-sh/bionic/memcpy.S
+++ /dev/null
@@ -1,268 +0,0 @@
-/* $OpenBSD: memcpy.S,v 1.1.1.1 2006/10/10 22:07:10 miod Exp $ */
-/* $NetBSD: memcpy.S,v 1.2 2006/04/22 23:53:47 uwe Exp $ */
-
-/*
- * Copyright (c) 2000 SHIMIZU Ryo <ryo@misakimix.org>
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. The name of the author may not be used to endorse or promote products
- * derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <machine/asm.h>
-
-#if !defined(MEMCOPY) && !defined(MEMMOVE) && !defined(BCOPY)
-#define MEMCOPY
-#endif
-
-#if defined(MEMCOPY) || defined(MEMMOVE)
-#define REG_DST0 r3
-#define REG_SRC r5
-#define REG_DST r4
-#else
-#define REG_SRC r4
-#define REG_DST r5
-#endif
-
-#define REG_LEN r6
-
-#if defined(MEMCOPY)
-ENTRY(memcpy)
-#elif defined(MEMMOVE)
-ENTRY(memmove)
-#elif defined(BCOPY)
-ENTRY(bcopy)
-#endif
-#ifdef REG_DST0
- mov REG_DST,REG_DST0
-#endif
- cmp/eq REG_DST,REG_SRC /* if ( src == dst ) return; */
- bt/s bcopy_return
- cmp/hi REG_DST,REG_SRC
- bf/s bcopy_overlap
-
- mov REG_SRC,r0
- xor REG_DST,r0
- and #3,r0
- mov r0,r1
- tst r0,r0 /* (src ^ dst) & 3 */
- bf/s word_align
-
-longword_align:
- tst REG_LEN,REG_LEN /* if ( len==0 ) return; */
- bt/s bcopy_return
-
-
- mov REG_SRC,r0
- tst #1,r0 /* if ( src & 1 ) */
- bt 1f
- mov.b @REG_SRC+,r0 /* *dst++ = *src++; */
- add #-1,REG_LEN
- mov.b r0,@REG_DST
- add #1,REG_DST
-1:
-
-
- mov #1,r0
- cmp/hi r0,REG_LEN /* if ( (len > 1) && */
- bf/s 1f
- mov REG_SRC,r0
- tst #2,r0 /* (src & 2) { */
- bt 1f
- mov.w @REG_SRC+,r0 /* *((unsigned short*)dst)++ = *((unsigned short*)src)++; */
- add #-2,REG_LEN /* len -= 2; */
- mov.w r0,@REG_DST
- add #2,REG_DST /* } */
-1:
-
-
- mov #3,r1
- cmp/hi r1,REG_LEN /* while ( len > 3 ) { */
- bf/s no_align_delay
- tst REG_LEN,REG_LEN
-2:
- mov.l @REG_SRC+,r0 /* *((unsigned long*)dst)++ = *((unsigned long*)src)++; */
- add #-4,REG_LEN /* len -= 4; */
- mov.l r0,@REG_DST
- cmp/hi r1,REG_LEN
- bt/s 2b
- add #4,REG_DST /* } */
-
- bra no_align_delay
- tst REG_LEN,REG_LEN
-
-
-word_align:
- mov r1,r0
- tst #1,r0
- bf/s no_align_delay
- tst REG_LEN,REG_LEN /* if ( len == 0 ) return; */
- bt bcopy_return
-
-
- mov REG_SRC,r0 /* if ( src & 1 ) */
- tst #1,r0
- bt 1f
- mov.b @REG_SRC+,r0 /* *dst++ = *src++; */
- add #-1,REG_LEN
- mov.b r0,@REG_DST
- add #1,REG_DST
-1:
-
-
- mov #1,r1
- cmp/hi r1,REG_LEN /* while ( len > 1 ) { */
- bf/s no_align_delay
- tst REG_LEN,REG_LEN
-2:
- mov.w @REG_SRC+,r0 /* *((unsigned short*)dst)++ = *((unsigned short*)src)++; */
- add #-2,REG_LEN /* len -= 2; */
- mov.w r0,@REG_DST
- cmp/hi r1,REG_LEN
- bt/s 2b
- add #2,REG_DST /* } */
-
-
-no_align:
- tst REG_LEN,REG_LEN /* while ( len!= ) { */
-no_align_delay:
- bt bcopy_return
-1:
- mov.b @REG_SRC+,r0 /* *dst++ = *src++; */
- add #-1,REG_LEN /* len--; */
- mov.b r0,@REG_DST
- tst REG_LEN,REG_LEN
- bf/s 1b
- add #1,REG_DST /* } */
-bcopy_return:
- rts
-#ifdef REG_DST0
- mov REG_DST0,r0
-#else
- nop
-#endif
-
-
-bcopy_overlap:
- add REG_LEN,REG_SRC
- add REG_LEN,REG_DST
-
- mov REG_SRC,r0
- xor REG_DST,r0
- and #3,r0
- mov r0,r1
- tst r0,r0 /* (src ^ dst) & 3 */
- bf/s ov_word_align
-
-ov_longword_align:
- tst REG_LEN,REG_LEN /* if ( len==0 ) return; */
- bt/s bcopy_return
-
-
- mov REG_SRC,r0
- tst #1,r0 /* if ( src & 1 ) */
- bt 1f
- add #-1,REG_SRC /* *--dst = *--src; */
- mov.b @REG_SRC,r0
- mov.b r0,@-REG_DST
- add #-1,REG_LEN
-1:
-
-
- mov #1,r0
- cmp/hi r0,REG_LEN /* if ( (len > 1) && */
- bf/s 1f
- mov REG_SRC,r0
- tst #2,r0 /* (src & 2) { */
- bt 1f
- add #-2,REG_SRC /* *--((unsigned short*)dst) = *--((unsigned short*)src); */
- mov.w @REG_SRC,r0
- add #-2,REG_LEN /* len -= 2; */
- mov.w r0,@-REG_DST /* } */
-1:
-
-
- mov #3,r1
- cmp/hi r1,REG_LEN /* while ( len > 3 ) { */
- bf/s ov_no_align_delay
- tst REG_LEN,REG_LEN
-2:
- add #-4,REG_SRC
- mov.l @REG_SRC,r0 /* *((unsigned long*)dst)++ = *((unsigned long*)src)++; */
- add #-4,REG_LEN /* len -= 4; */
- cmp/hi r1,REG_LEN
- bt/s 2b
- mov.l r0,@-REG_DST /* } */
-
- bra ov_no_align_delay
- tst REG_LEN,REG_LEN
-
-
-ov_word_align:
- mov r1,r0
- tst #1,r0
- bf/s ov_no_align_delay
- tst REG_LEN,REG_LEN /* if ( len == 0 ) return; */
- bt bcopy_return
-
-
- mov REG_SRC,r0 /* if ( src & 1 ) */
- tst #1,r0
- bt 1f
- add #-1,REG_SRC
- mov.b @REG_SRC,r0 /* *--dst = *--src; */
- add #-1,REG_LEN
- mov.b r0,@-REG_DST
-1:
-
-
- mov #1,r1
- cmp/hi r1,REG_LEN /* while ( len > 1 ) { */
- bf/s ov_no_align_delay
- tst REG_LEN,REG_LEN
-2:
- add #-2,REG_SRC
- mov.w @REG_SRC,r0 /* *--((unsigned short*)dst) = *--((unsigned short*)src); */
- add #-2,REG_LEN /* len -= 2; */
- cmp/hi r1,REG_LEN
- bt/s 2b
- mov.w r0,@-REG_DST /* } */
-
-
-ov_no_align:
- tst REG_LEN,REG_LEN /* while ( len!= ) { */
-ov_no_align_delay:
- bt 9f
-1:
- add #-1,REG_SRC
- mov.b @REG_SRC,r0 /* *--dst = *--src; */
- add #-1,REG_LEN /* len--; */
- tst REG_LEN,REG_LEN
- bf/s 1b
- mov.b r0,@-REG_DST /* } */
-9:
- rts
-#ifdef REG_DST0
- mov REG_DST0,r0
-#else
- nop
-#endif
diff --git a/libc/arch-sh/bionic/memmove.S b/libc/arch-sh/bionic/memmove.S
deleted file mode 100644
index 023fc10..0000000
--- a/libc/arch-sh/bionic/memmove.S
+++ /dev/null
@@ -1,5 +0,0 @@
-/* $OpenBSD: memmove.S,v 1.1.1.1 2006/10/10 22:07:10 miod Exp $ */
-/* $NetBSD: memmove.S,v 1.2 2006/04/22 23:53:47 uwe Exp $ */
-
-#define MEMMOVE
-#include "memcpy.S"
diff --git a/libc/arch-sh/bionic/memset.S b/libc/arch-sh/bionic/memset.S
deleted file mode 100644
index 73b0d06..0000000
--- a/libc/arch-sh/bionic/memset.S
+++ /dev/null
@@ -1,295 +0,0 @@
-/* $OpenBSD: memset.S,v 1.1.1.1 2006/10/10 22:07:10 miod Exp $ */
-/* $NetBSD: memset.S,v 1.1 2005/12/20 19:28:50 christos Exp $ */
-
-/*-
- * Copyright (c) 2002 SHIMIZU Ryo. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. The name of the author may not be used to endorse or promote products
- * derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <machine/asm.h>
-
-#define REG_PTR r0
-#define REG_TMP1 r1
-
-#ifdef BZERO
-# define REG_C r2
-# define REG_DST r4
-# define REG_LEN r5
-#else
-# define REG_DST0 r3
-# define REG_DST r4
-# define REG_C r5
-# define REG_LEN r6
-#endif
-
-#ifdef BZERO
-ENTRY(bzero)
-#else
-ENTRY(memset)
- mov REG_DST,REG_DST0 /* for return value */
-#endif
- /* small amount to fill ? */
- mov #28,REG_TMP1
- cmp/hs REG_TMP1,REG_LEN /* if (len >= 28) goto large; */
- bt/s large
- mov #12,REG_TMP1 /* if (len >= 12) goto small; */
- cmp/hs REG_TMP1,REG_LEN
- bt/s small
-#ifdef BZERO
- mov #0,REG_C
-#endif
- /* very little fill (0 ~ 11 bytes) */
- tst REG_LEN,REG_LEN
- add REG_DST,REG_LEN
- bt/s done
- add #1,REG_DST
-
- /* unroll 4 loops */
- cmp/eq REG_DST,REG_LEN
-1: mov.b REG_C,@-REG_LEN
- bt/s done
- cmp/eq REG_DST,REG_LEN
- mov.b REG_C,@-REG_LEN
- bt/s done
- cmp/eq REG_DST,REG_LEN
- mov.b REG_C,@-REG_LEN
- bt/s done
- cmp/eq REG_DST,REG_LEN
- mov.b REG_C,@-REG_LEN
- bf/s 1b
- cmp/eq REG_DST,REG_LEN
-done:
-#ifdef BZERO
- rts
- nop
-#else
- rts
- mov REG_DST0,r0
-#endif
-
-
-small:
- mov REG_DST,r0
- tst #1,r0
- bt/s small_aligned
- mov REG_DST,REG_TMP1
- shll REG_LEN
- mova 1f,r0 /* 1f must be 4bytes aligned! */
- add #16,REG_TMP1 /* REG_TMP1 = dst+16; */
- sub REG_LEN,r0
- jmp @r0
- mov REG_C,r0
-
- .align 2
- mov.b r0,@(15,REG_TMP1)
- mov.b r0,@(14,REG_TMP1)
- mov.b r0,@(13,REG_TMP1)
- mov.b r0,@(12,REG_TMP1)
- mov.b r0,@(11,REG_TMP1)
- mov.b r0,@(10,REG_TMP1)
- mov.b r0,@(9,REG_TMP1)
- mov.b r0,@(8,REG_TMP1)
- mov.b r0,@(7,REG_TMP1)
- mov.b r0,@(6,REG_TMP1)
- mov.b r0,@(5,REG_TMP1)
- mov.b r0,@(4,REG_TMP1)
- mov.b r0,@(3,REG_TMP1)
- mov.b r0,@(2,REG_TMP1)
- mov.b r0,@(1,REG_TMP1)
- mov.b r0,@REG_TMP1
- mov.b r0,@(15,REG_DST)
- mov.b r0,@(14,REG_DST)
- mov.b r0,@(13,REG_DST)
- mov.b r0,@(12,REG_DST)
- mov.b r0,@(11,REG_DST)
- mov.b r0,@(10,REG_DST)
- mov.b r0,@(9,REG_DST)
- mov.b r0,@(8,REG_DST)
- mov.b r0,@(7,REG_DST)
- mov.b r0,@(6,REG_DST)
- mov.b r0,@(5,REG_DST)
- mov.b r0,@(4,REG_DST)
- mov.b r0,@(3,REG_DST)
- mov.b r0,@(2,REG_DST)
- mov.b r0,@(1,REG_DST)
-#ifdef BZERO
- rts
-1: mov.b r0,@REG_DST
-#else
- mov.b r0,@REG_DST
-1: rts
- mov REG_DST0,r0
-#endif
-
-
-/* 2 bytes aligned small fill */
-small_aligned:
-#ifndef BZERO
- extu.b REG_C,REG_TMP1 /* REG_C = ??????xx, REG_TMP1 = ????00xx */
- shll8 REG_C /* REG_C = ????xx00, REG_TMP1 = ????00xx */
- or REG_TMP1,REG_C /* REG_C = ????xxxx */
-#endif
-
- mov REG_LEN,r0
- tst #1,r0 /* len is aligned? */
- bt/s 1f
- add #-1,r0
- mov.b REG_C,@(r0,REG_DST) /* fill last a byte */
- mov r0,REG_LEN
-1:
-
- mova 1f,r0 /* 1f must be 4bytes aligned! */
- sub REG_LEN,r0
- jmp @r0
- mov REG_C,r0
-
- .align 2
- mov.w r0,@(30,REG_DST)
- mov.w r0,@(28,REG_DST)
- mov.w r0,@(26,REG_DST)
- mov.w r0,@(24,REG_DST)
- mov.w r0,@(22,REG_DST)
- mov.w r0,@(20,REG_DST)
- mov.w r0,@(18,REG_DST)
- mov.w r0,@(16,REG_DST)
- mov.w r0,@(14,REG_DST)
- mov.w r0,@(12,REG_DST)
- mov.w r0,@(10,REG_DST)
- mov.w r0,@(8,REG_DST)
- mov.w r0,@(6,REG_DST)
- mov.w r0,@(4,REG_DST)
- mov.w r0,@(2,REG_DST)
-#ifdef BZERO
- rts
-1: mov.w r0,@REG_DST
-#else
- mov.w r0,@REG_DST
-1: rts
- mov REG_DST0,r0
-#endif
-
-
-
- .align 2
-large:
-#ifdef BZERO
- mov #0,REG_C
-#else
- extu.b REG_C,REG_TMP1 /* REG_C = ??????xx, REG_TMP1 = ????00xx */
- shll8 REG_C /* REG_C = ????xx00, REG_TMP1 = ????00xx */
- or REG_C,REG_TMP1 /* REG_C = ????xx00, REG_TMP1 = ????xxxx */
- swap.w REG_TMP1,REG_C /* REG_C = xxxx????, REG_TMP1 = ????xxxx */
- xtrct REG_TMP1,REG_C /* REG_C = xxxxxxxx */
-#endif
-
- mov #3,REG_TMP1
- tst REG_TMP1,REG_DST
- mov REG_DST,REG_PTR
- bf/s unaligned_dst
- add REG_LEN,REG_PTR /* REG_PTR = dst + len; */
- tst REG_TMP1,REG_LEN
- bf/s unaligned_len
-
-aligned:
- /* fill 32*n bytes */
- mov #32,REG_TMP1
- cmp/hi REG_LEN,REG_TMP1
- bt 9f
- .align 2
-1: sub REG_TMP1,REG_PTR
- mov.l REG_C,@REG_PTR
- sub REG_TMP1,REG_LEN
- mov.l REG_C,@(4,REG_PTR)
- cmp/hi REG_LEN,REG_TMP1
- mov.l REG_C,@(8,REG_PTR)
- mov.l REG_C,@(12,REG_PTR)
- mov.l REG_C,@(16,REG_PTR)
- mov.l REG_C,@(20,REG_PTR)
- mov.l REG_C,@(24,REG_PTR)
- bf/s 1b
- mov.l REG_C,@(28,REG_PTR)
-9:
-
- /* fill left 4*n bytes */
- cmp/eq REG_DST,REG_PTR
- bt 9f
- add #4,REG_DST
- cmp/eq REG_DST,REG_PTR
-1: mov.l REG_C,@-REG_PTR
- bt/s 9f
- cmp/eq REG_DST,REG_PTR
- mov.l REG_C,@-REG_PTR
- bt/s 9f
- cmp/eq REG_DST,REG_PTR
- mov.l REG_C,@-REG_PTR
- bt/s 9f
- cmp/eq REG_DST,REG_PTR
- mov.l REG_C,@-REG_PTR
- bf/s 1b
- cmp/eq REG_DST,REG_PTR
-9:
-#ifdef BZERO
- rts
- nop
-#else
- rts
- mov REG_DST0,r0
-#endif
-
-
-unaligned_dst:
- mov #1,REG_TMP1
- tst REG_TMP1,REG_DST /* if (dst & 1) { */
- add #1,REG_TMP1
- bt/s 2f
- tst REG_TMP1,REG_DST
- mov.b REG_C,@REG_DST /* *dst++ = c; */
- add #1,REG_DST
- tst REG_TMP1,REG_DST
-2: /* } */
- /* if (dst & 2) { */
- bt 4f
- mov.w REG_C,@REG_DST /* *(u_int16_t*)dst++ = c; */
- add #2,REG_DST
-4: /* } */
-
-
- tst #3,REG_PTR /* if (ptr & 3) { */
- bt/s 4f /* */
-unaligned_len:
- tst #1,REG_PTR /* if (ptr & 1) { */
- bt/s 2f
- tst #2,REG_PTR
- mov.b REG_C,@-REG_PTR /* --ptr = c; */
-2: /* } */
- /* if (ptr & 2) { */
- bt 4f
- mov.w REG_C,@-REG_PTR /* *--(u_int16_t*)ptr = c; */
-4: /* } */
- /* } */
-
- mov REG_PTR,REG_LEN
- bra aligned
- sub REG_DST,REG_LEN
-
diff --git a/libc/arch-sh/bionic/pipe.S b/libc/arch-sh/bionic/pipe.S
deleted file mode 100644
index 936da2d..0000000
--- a/libc/arch-sh/bionic/pipe.S
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * Copyright (C) 2009 The Android Open Source Project
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-#include <sys/linux-syscalls.h>
-
-.text
-.type pipe, @function
-.globl pipe
-.align 4
-
-pipe:
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(0 + 0x10)
-
-
- /* check return value */
- cmp/pz r0
- bt setfds
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
- bra end
- nop
-setfds:
- mov.l r0, @r4
- add #4, r4
- mov.l r1, @r4
-end:
- rts
- nop
-
- .align 2
-0: .long __NR_pipe
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/bionic/setjmp.S b/libc/arch-sh/bionic/setjmp.S
deleted file mode 100644
index 67f3397..0000000
--- a/libc/arch-sh/bionic/setjmp.S
+++ /dev/null
@@ -1,167 +0,0 @@
-/* $OpenBSD: setjmp.S,v 1.2 2007/03/02 06:11:54 miod Exp $ */
-/* $NetBSD: setjmp.S,v 1.10 2006/01/05 19:21:37 uwe Exp $ */
-
-/*-
- * Copyright (c) 1990 The Regents of the University of California.
- * All rights reserved.
- *
- * This code is derived from software contributed to Berkeley by
- * William Jolitz.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * from: @(#)setjmp.s 5.1 (Berkeley) 4/23/90
- */
-
-#include <machine/asm.h>
-#include <machine/setjmp.h>
-
-/*
- * C library -- setjmp, longjmp
- *
- * longjmp(a,v)
- * will generate a "return(v)" from the last call to
- * setjmp(a)
- * by restoring registers from the stack.
- * The previous signal state is restored.
- */
-
-ENTRY(setjmp)
- PIC_PROLOGUE(.L_got_1)
- sts.l pr, @-sp
- mov.l r4, @-sp
-
- mov.l .L_sigprocmask_1, r0
- mov r4, r6
- mov #1, r4 /* how = SIG_BLOCK */
- mov #0, r5 /* new = NULL */
-1: CALL r0
- add #4, r6 /* old = &sigmask */
-
- mov.l @sp+, r4
- lds.l @sp+, pr
- PIC_EPILOGUE
-
- /* identical to _setjmp except that the first word is non-zero */
-#if defined(__SH4__) && !defined(__SH4_NOFPU__)
- add #(_JBLEN * 4), r4
- sts fpscr, r1
- xor r0, r0
- mov.l r1, @-r4
- lds r0, fpscr
- sts.l fpul, @-r4
- fmov.s fr15, @-r4
- fmov.s fr14, @-r4
- fmov.s fr13, @-r4
- fmov.s fr12, @-r4
- frchg
- fmov.s fr15, @-r4
- fmov.s fr14, @-r4
- fmov.s fr13, @-r4
- fmov.s fr12, @-r4
- lds r1, fpscr
-#else
- add #((_JBLEN - 10) * 4), r4
-#endif
- sts.l mach, @-r4
- sts.l macl, @-r4
- mov.l r15, @-r4
- mov.l r14, @-r4
- mov.l r13, @-r4
- mov.l r12, @-r4
- mov.l r11, @-r4
- mov.l r10, @-r4
- mov.l r9, @-r4
- mov.l r8, @-r4
- sts.l pr, @-r4
- add #-4, r4 /* skip signal mask */
- mov #1, r0
- mov.l r0, @-r4 /* has signal mask */
- rts
- xor r0, r0
-
- .align 2
-.L_got_1: PIC_GOT_DATUM
-.L_sigprocmask_1: CALL_DATUM(_C_LABEL(sigprocmask), 1b)
- SET_ENTRY_SIZE(setjmp)
-
-ENTRY(longjmp)
- /* we won't return here, so we don't need to save pr and r12 */
- PIC_PROLOGUE_NOSAVE(.L_got_2)
- mov.l r5, @-sp
- mov.l r4, @-sp
-
- mov.l .L_sigprocmask_2, r0
- mov r4, r5
- mov #3, r4 /* how = SIG_SETMASK */
- add #4, r5 /* new = &sigmask */
-1: CALL r0
- mov #0, r6 /* old = NULL */
-
- mov.l @sp+, r4
- mov.l @sp+, r5
-
- /* identical to _longjmp */
- add #8, r4
- lds.l @r4+, pr
- mov.l @r4+, r8
- mov.l @r4+, r9
- mov.l @r4+, r10
- mov.l @r4+, r11
- mov.l @r4+, r12
- mov.l @r4+, r13
- mov.l @r4+, r14
- mov.l @r4+, r15
- lds.l @r4+, macl
- lds.l @r4+, mach
-#if defined(__SH4__) && !defined(__SH4_NOFPU__)
- xor r0, r0
- lds r0, fpscr
- frchg
- fmov.s @r4+, fr12
- fmov.s @r4+, fr13
- fmov.s @r4+, fr14
- fmov.s @r4+, fr15
- frchg
- fmov.s @r4+, fr12
- fmov.s @r4+, fr13
- fmov.s @r4+, fr14
- fmov.s @r4+, fr15
- lds.l @r4+, fpul
- lds.l @r4+, fpscr
-#endif
-
- mov r5, r0
- tst r0, r0 /* make sure return value is non-zero */
- bf .L0
- add #1, r0
-.L0:
- rts
- nop
-
- .align 2
-.L_got_2: PIC_GOT_DATUM
-.L_sigprocmask_2: CALL_DATUM(_C_LABEL(sigprocmask), 1b)
- SET_ENTRY_SIZE(longjmp)
diff --git a/libc/arch-sh/bionic/sigsetjmp.S b/libc/arch-sh/bionic/sigsetjmp.S
deleted file mode 100644
index f88913a..0000000
--- a/libc/arch-sh/bionic/sigsetjmp.S
+++ /dev/null
@@ -1,166 +0,0 @@
-/* $OpenBSD: sigsetjmp.S,v 1.2 2007/03/02 06:11:54 miod Exp $ */
-/* $NetBSD: sigsetjmp.S,v 1.9 2006/01/05 19:21:37 uwe Exp $ */
-
-/*-
- * Copyright (c) 1990 The Regents of the University of California.
- * All rights reserved.
- *
- * This code is derived from software contributed to Berkeley by
- * William Jolitz.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * from: @(#)setjmp.s 5.1 (Berkeley) 4/23/90
- */
-
-#include <machine/asm.h>
-#include <machine/setjmp.h>
-
-ENTRY(sigsetjmp)
- tst r5, r5 /* if (savemask == 0) */
- bt 2f
-
- /* identical to setjmp */
- PIC_PROLOGUE(.L_got_1)
- sts.l pr, @-sp
- mov.l r4, @-sp
- mov.l r5, @-sp
-
- mov.l .L_sigprocmask_1, r0
- mov r4, r6
- mov #1, r4 /* how = SIG_BLOCK */
- mov #0, r5 /* new = NULL */
-1: CALL r0
- add #4, r6 /* old = &sigmask */
-
- mov.l @sp+, r5
- mov.l @sp+, r4
- lds.l @sp+, pr
- PIC_EPILOGUE
-
-2: /* identical to _setjmp except that first word is in r5 */
-#if defined(__SH4__) && !defined(__SH4_NOFPU__)
- add #(_JBLEN * 4), r4
- sts fpscr, r1
- xor r0, r0
- mov.l r1, @-r4
- lds r0, fpscr
- sts.l fpul, @-r4
- fmov.s fr15, @-r4
- fmov.s fr14, @-r4
- fmov.s fr13, @-r4
- fmov.s fr12, @-r4
- frchg
- fmov.s fr15, @-r4
- fmov.s fr14, @-r4
- fmov.s fr13, @-r4
- fmov.s fr12, @-r4
- lds r1, fpscr
-#else
- add #((_JBLEN - 10) * 4), r4
-#endif
- sts.l mach, @-r4
- sts.l macl, @-r4
- mov.l r15, @-r4
- mov.l r14, @-r4
- mov.l r13, @-r4
- mov.l r12, @-r4
- mov.l r11, @-r4
- mov.l r10, @-r4
- mov.l r9, @-r4
- mov.l r8, @-r4
- sts.l pr, @-r4
- add #-4, r4 /* skip signal mask */
- mov.l r5, @-r4 /* has signal mask? */
- rts
- xor r0, r0
-
- .align 2
-.L_got_1: PIC_GOT_DATUM
-.L_sigprocmask_1: CALL_DATUM(_C_LABEL(sigprocmask), 1b)
- SET_ENTRY_SIZE(sigsetjmp)
-
-ENTRY(siglongjmp)
- mov.l @r4+, r0
- tst r0, r0
- bt 2f /* if no mask */
-
- /* identical to longjmp */
- /* we won't return here, so we don't need to save pr and r12 */
- PIC_PROLOGUE_NOSAVE(.L_got_2)
- mov.l r5, @-sp
- mov.l r4, @-sp
-
- mov.l .L_sigprocmask_2, r0
- mov r4, r5 /* new = &sigmask */
- mov #3, r4 /* how = SIG_SETMASK */
-1: CALL r0
- mov #0, r6 /* old = NULL */
-
- mov.l @sp+, r4
- mov.l @sp+, r5
-
-2: /* identical to _longjmp */
- add #4, r4
- lds.l @r4+, pr
- mov.l @r4+, r8
- mov.l @r4+, r9
- mov.l @r4+, r10
- mov.l @r4+, r11
- mov.l @r4+, r12
- mov.l @r4+, r13
- mov.l @r4+, r14
- mov.l @r4+, r15
- lds.l @r4+, macl
- lds.l @r4+, mach
-#if defined(__SH4__) && !defined(__SH4_NOFPU__)
- xor r0, r0
- lds r0, fpscr
- frchg
- fmov.s @r4+, fr12
- fmov.s @r4+, fr13
- fmov.s @r4+, fr14
- fmov.s @r4+, fr15
- frchg
- fmov.s @r4+, fr12
- fmov.s @r4+, fr13
- fmov.s @r4+, fr14
- fmov.s @r4+, fr15
- lds.l @r4+, fpul
- lds.l @r4+, fpscr
-#endif
-
- mov r5, r0
- tst r0, r0 /* make sure return value is non-zero */
- bf .L0
- add #1, r0
-.L0:
- rts
- nop
-
- .align 2
-.L_got_2: PIC_GOT_DATUM
-.L_sigprocmask_2: CALL_DATUM(_C_LABEL(sigprocmask), 1b)
- SET_ENTRY_SIZE(siglongjmp)
diff --git a/libc/arch-sh/bionic/syscall.S b/libc/arch-sh/bionic/syscall.S
deleted file mode 100644
index 7e9f307..0000000
--- a/libc/arch-sh/bionic/syscall.S
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * Copyright (C) 2009 The Android Open Source Project
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-#include <sys/linux-syscalls.h>
-
-.text
-.type syscall, @function
-.globl syscall
-.align 4
-
-/*
- * Current implementation assumes that the all syscall
- * has maximum 7 arguments.
- */
-syscall:
- /* get args */
- mov r4, r3 /* system call number */
- mov r5, r4
- mov r6, r5
- mov r7, r6
- mov.l @r15, r7
- mov.l @(4, r15), r0
- mov.l @(8, r15), r1
- mov.l @(12, r15), r2
-
- /* invoke trap */
- trapa #(7 + 0x10) /* assuming 7 arguments */
-
- /* check return value */
- cmp/pz r0
- bt end
-
- /* keep error number */
- mov.l r0, @-r15
- mov.l 0f, r1
- jsr @r1
- mov r0, r4
- mov.l @r15+, r0
-
-end:
- rts
- nop
-
- .align 2
-0: .long __set_errno
diff --git a/libc/arch-sh/bionic/unwind.c b/libc/arch-sh/bionic/unwind.c
deleted file mode 100644
index 33ec58c..0000000
--- a/libc/arch-sh/bionic/unwind.c
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Copyright (C) 2009 The Android Open Source Project
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-typedef long unsigned int *_Unwind_Ptr;
-
diff --git a/libc/arch-sh/include/endian.h b/libc/arch-sh/include/endian.h
deleted file mode 100644
index ad10164..0000000
--- a/libc/arch-sh/include/endian.h
+++ /dev/null
@@ -1,39 +0,0 @@
-/* $OpenBSD: endian.h,v 1.1.1.1 2006/10/06 21:02:55 miod Exp $ */
-/* $NetBSD: endian.h,v 1.4 2000/03/17 00:09:25 mycroft Exp $ */
-
-/* Written by Manuel Bouyer. Public domain */
-
-#ifndef _SH_ENDIAN_H_
-#define _SH_ENDIAN_H_
-
-#ifdef __GNUC__
-
-#define __swap64md __swap64gen
-
-#define __swap16md(x) ({ \
- uint16_t rval; \
- \
- __asm volatile ("swap.b %1,%0" : "=r"(rval) : "r"(x)); \
- \
- rval; \
-})
-
-#define __swap32md(x) ({ \
- uint32_t rval; \
- \
- __asm volatile ("swap.b %1,%0; swap.w %0,%0; swap.b %0,%0" \
- : "=r"(rval) : "r"(x)); \
- \
- rval; \
-})
-
-#define MD_SWAP
-
-#endif /* __GNUC_ */
-
-#define _BYTE_ORDER _LITTLE_ENDIAN
-#include <sys/endian.h>
-
-#define __STRICT_ALIGNMENT
-
-#endif /* !_SH_ENDIAN_H_ */
diff --git a/libc/arch-sh/include/machine/_types.h b/libc/arch-sh/include/machine/_types.h
deleted file mode 100644
index 6f59e21..0000000
--- a/libc/arch-sh/include/machine/_types.h
+++ /dev/null
@@ -1,126 +0,0 @@
-/* $OpenBSD: _types.h,v 1.6 2008/07/21 20:50:55 martynas Exp $ */
-
-/*-
- * Copyright (c) 1990, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * @(#)types.h 8.3 (Berkeley) 1/5/94
- * @(#)ansi.h 8.2 (Berkeley) 1/4/94
- */
-
-#ifndef _SH__TYPES_H_
-#define _SH__TYPES_H_
-
-#if defined(_KERNEL)
-typedef struct label_t {
- int val[9];
-} label_t;
-#endif
-
-/* 7.18.1.1 Exact-width integer types */
-typedef __signed char __int8_t;
-typedef unsigned char __uint8_t;
-typedef short __int16_t;
-typedef unsigned short __uint16_t;
-typedef int __int32_t;
-typedef unsigned int __uint32_t;
-/* LONGLONG */
-typedef long long __int64_t;
-/* LONGLONG */
-typedef unsigned long long __uint64_t;
-
-/* 7.18.1.2 Minimum-width integer types */
-typedef __int8_t __int_least8_t;
-typedef __uint8_t __uint_least8_t;
-typedef __int16_t __int_least16_t;
-typedef __uint16_t __uint_least16_t;
-typedef __int32_t __int_least32_t;
-typedef __uint32_t __uint_least32_t;
-typedef __int64_t __int_least64_t;
-typedef __uint64_t __uint_least64_t;
-
-/* 7.18.1.3 Fastest minimum-width integer types */
-typedef __int32_t __int_fast8_t;
-typedef __uint32_t __uint_fast8_t;
-typedef __int32_t __int_fast16_t;
-typedef __uint32_t __uint_fast16_t;
-typedef __int32_t __int_fast32_t;
-typedef __uint32_t __uint_fast32_t;
-typedef __int64_t __int_fast64_t;
-typedef __uint64_t __uint_fast64_t;
-
-/* 7.18.1.4 Integer types capable of holding object pointers */
-typedef long __intptr_t;
-typedef unsigned long __uintptr_t;
-
-/* 7.18.1.5 Greatest-width integer types */
-typedef __int64_t __intmax_t;
-typedef __uint64_t __uintmax_t;
-
-/* Register size */
-typedef __uint32_t __register_t;
-
-/* VM system types */
-typedef unsigned long __vaddr_t;
-typedef unsigned long __paddr_t;
-typedef unsigned long __vsize_t;
-typedef unsigned long __psize_t;
-
-/* Standard system types */
-typedef int __clock_t;
-typedef int __clockid_t;
-typedef double __double_t;
-typedef float __float_t;
-typedef long long __off_t;
-typedef long __ptrdiff_t;
-#if 0
-/* cut it off for Android-SH */
-typedef unsigned long __size_t;
-#endif
-typedef long __ssize_t;
-typedef int __time_t;
-typedef int __timer_t;
-#if defined(__GNUC__) && __GNUC__ >= 3
-typedef __builtin_va_list __va_list;
-#else
-struct __va_list_tag;
-typedef struct __va_list_tag * __va_list;
-#endif
-
-/* Wide character support types */
-#ifndef __cplusplus
-typedef int __wchar_t;
-#endif
-typedef int __wint_t;
-typedef int __rune_t;
-typedef void * __wctrans_t;
-typedef void * __wctype_t;
-
-/* Feature test macros */
-#define __HAVE_GENERIC_SOFT_INTERRUPTS
-
-#endif /* _SH__TYPES_H_ */
diff --git a/libc/arch-sh/include/machine/asm.h b/libc/arch-sh/include/machine/asm.h
deleted file mode 100644
index c659a9d..0000000
--- a/libc/arch-sh/include/machine/asm.h
+++ /dev/null
@@ -1,217 +0,0 @@
-/* $OpenBSD: asm.h,v 1.1.1.1 2006/10/06 21:02:55 miod Exp $ */
-/* $NetBSD: asm.h,v 1.25 2006/01/20 22:02:40 christos Exp $ */
-
-/*-
- * Copyright (c) 1990 The Regents of the University of California.
- * All rights reserved.
- *
- * This code is derived from software contributed to Berkeley by
- * William Jolitz.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * @(#)asm.h 5.5 (Berkeley) 5/7/91
- */
-
-#ifndef _SH_ASM_H_
-#define _SH_ASM_H_
-
-#ifdef __ELF__
-# define _C_LABEL(x) x
-#else
-#ifdef __STDC__
-# define _C_LABEL(x) _ ## x
-#else
-# define _C_LABEL(x) _/**/x
-#endif
-#endif
-#define _ASM_LABEL(x) x
-
-#ifdef __STDC__
-# define __CONCAT(x,y) x ## y
-# define __STRING(x) #x
-#else
-# define __CONCAT(x,y) x/**/y
-# define __STRING(x) "x"
-#endif
-
-/* let kernels and others override entrypoint alignment */
-#ifndef _ALIGN_TEXT
-# define _ALIGN_TEXT .align 2
-#endif
-
-#ifdef __ELF__
-#define _ENTRY(x) \
- .text ;\
- _ALIGN_TEXT ;\
- .globl x ;\
- .type x,@function ;\
- x:
-#else /* !__ELF__ */
-#define _ENTRY(x) \
- .text ;\
- _ALIGN_TEXT ;\
- .globl x ;\
- x:
-#endif /* !__ELF__ */
-
-#ifdef GPROF
-#define _PROF_PROLOGUE \
- mov.l 1f,r1 ; \
- mova 2f,r0 ; \
- jmp @r1 ; \
- nop ; \
- .align 2 ; \
-1: .long __mcount ; \
-2:
-#else /* !GPROF */
-#define _PROF_PROLOGUE
-#endif /* !GPROF */
-
-#define ENTRY(y) _ENTRY(_C_LABEL(y)) _PROF_PROLOGUE
-#define NENTRY(y) _ENTRY(_C_LABEL(y))
-#define ASENTRY(y) _ENTRY(_ASM_LABEL(y)) _PROF_PROLOGUE
-
-#define SET_ENTRY_SIZE(y) \
- .size _C_LABEL(y), . - _C_LABEL(y)
-
-#define SET_ASENTRY_SIZE(y) \
- .size _ASM_LABEL(y), . - _ASM_LABEL(y)
-
-#ifdef __ELF__
-#define ALTENTRY(name) \
- .globl _C_LABEL(name) ;\
- .type _C_LABEL(name),@function ;\
- _C_LABEL(name):
-#else
-#define ALTENTRY(name) \
- .globl _C_LABEL(name) ;\
- _C_LABEL(name):
-#endif
-
-
-/*
- * Hide the gory details of PIC calls vs. normal calls. Use as in the
- * following example:
- *
- * sts.l pr, @-sp
- * PIC_PROLOGUE(.L_got, r0) ! saves old r12 on stack
- * ...
- * mov.l .L_function_1, r0
- * 1: CALL r0 ! each call site needs a label
- * nop
- * ...
- * mov.l .L_function_2, r0
- * 2: CALL r0
- * nop
- * ...
- * PIC_EPILOGUE ! restores r12 from stack
- * lds.l @sp+, pr ! so call in right order
- * rts
- * nop
- *
- * .align 2
- * .L_got:
- * PIC_GOT_DATUM
- * .L_function_1: ! if you call the same function twice
- * CALL_DATUM(function, 1b) ! provide call datum for each call
- * .L_function_2:
- * CALL_DATUM(function, 2b)
- */
-
-#ifdef PIC
-
-#define PIC_PLT(x) x@PLT
-#define PIC_GOT(x) x@GOT
-#define PIC_GOTOFF(x) x@GOTOFF
-
-#define PIC_PROLOGUE(got) \
- mov.l r12, @-sp; \
- PIC_PROLOGUE_NOSAVE(got)
-
-/*
- * Functions that do non local jumps don't need to preserve r12,
- * so we can shave off two instructions to save/restore it.
- */
-#define PIC_PROLOGUE_NOSAVE(got) \
- mov.l got, r12; \
- mova got, r0; \
- add r0, r12
-
-#define PIC_EPILOGUE \
- mov.l @sp+, r12
-
-#define PIC_EPILOGUE_SLOT \
- PIC_EPILOGUE
-
-#define PIC_GOT_DATUM \
- .long _GLOBAL_OFFSET_TABLE_
-
-#define CALL bsrf
-#define JUMP braf
-
-#define CALL_DATUM(function, lpcs) \
- .long PIC_PLT(function) - ((lpcs) + 4 - (.))
-
-/*
- * This will result in text relocations in the shared library,
- * unless the function is local or has hidden or protected visibility.
- * Does not require PIC prologue.
- */
-#define CALL_DATUM_LOCAL(function, lpcs) \
- .long function - ((lpcs) + 4)
-
-#else /* !PIC */
-
-#define PIC_PROLOGUE(label)
-#define PIC_PROLOGUE_NOSAVE(label)
-#define PIC_EPILOGUE
-#define PIC_EPILOGUE_SLOT nop
-#define PIC_GOT_DATUM
-
-#define CALL jsr @
-#define JUMP jmp @
-
-#define CALL_DATUM(function, lpcs) \
- .long function
-
-#define CALL_DATUM_LOCAL(function, lpcs) \
- .long function
-
-#endif /* !PIC */
-
-
-#define ASMSTR .asciz
-
-#ifdef __ELF__
-#define WEAK_ALIAS(alias,sym) \
- .weak _C_LABEL(alias); \
- _C_LABEL(alias) = _C_LABEL(sym)
-#endif
-
-#define WARN_REFERENCES(_sym,_msg) \
- .section .gnu.warning._sym; .ascii _msg; .previous
-
-#endif /* !_SH_ASM_H_ */
diff --git a/libc/arch-sh/include/machine/exec.h b/libc/arch-sh/include/machine/exec.h
deleted file mode 100644
index 48a9680..0000000
--- a/libc/arch-sh/include/machine/exec.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/* $OpenBSD: exec.h,v 1.2 2006/11/10 20:34:06 drahn Exp $ */
-/* $NetBSD: elf_machdep.h,v 1.8 2002/04/28 17:10:34 uch Exp $ */
-
-#define __LDPGSZ 4096
-
-#define NATIVE_EXEC_ELF
-
-#define ARCH_ELFSIZE 32 /* MD native binary size */
-#define ELF_TARG_CLASS ELFCLASS32
-#ifdef __LITTLE_ENDIAN__
-#define ELF_TARG_DATA ELFDATA2LSB
-#else
-#define ELF_TARG_DATA ELFDATA2MSB
-#endif
-#define ELF_TARG_MACH EM_SH
-
-#define _KERN_DO_ELF
-#define _NLIST_DO_ELF
-
-/*
- * SuperH ELF header flags.
- */
-#define EF_SH_MACH_MASK 0x1f
-
-#define EF_SH_UNKNOWN 0x00
-#define EF_SH_SH1 0x01
-#define EF_SH_SH2 0x02
-#define EF_SH_SH3 0x03
-#define EF_SH_DSP 0x04
-#define EF_SH_SH3_DSP 0x05
-#define EF_SH_SH3E 0x08
-#define EF_SH_SH4 0x09
-
-#define EF_SH_HAS_DSP(x) ((x) & EF_SH_DSP)
-#define EF_SH_HAS_FP(x) ((x) & EF_SH_SH3E)
diff --git a/libc/arch-sh/include/machine/ieee.h b/libc/arch-sh/include/machine/ieee.h
deleted file mode 100644
index 7646f85..0000000
--- a/libc/arch-sh/include/machine/ieee.h
+++ /dev/null
@@ -1,132 +0,0 @@
-/* $OpenBSD: ieee.h,v 1.2 2006/11/10 20:29:36 otto Exp $ */
-
-/*
- * Copyright (c) 1992, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * This software was developed by the Computer Systems Engineering group
- * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
- * contributed to Berkeley.
- *
- * All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Lawrence Berkeley Laboratory.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * @(#)ieee.h 8.1 (Berkeley) 6/11/93
- */
-
-/*
- * ieee.h defines the machine-dependent layout of the machine's IEEE
- * floating point. It does *not* define (yet?) any of the rounding
- * mode bits, exceptions, and so forth.
- */
-
-/*
- * Define the number of bits in each fraction and exponent.
- *
- * k k+1
- * Note that 1.0 x 2 == 0.1 x 2 and that denorms are represented
- *
- * (-exp_bias+1)
- * as fractions that look like 0.fffff x 2 . This means that
- *
- * -126
- * the number 0.10000 x 2 , for instance, is the same as the normalized
- *
- * -127 -128
- * float 1.0 x 2 . Thus, to represent 2 , we need one leading zero
- *
- * -129
- * in the fraction; to represent 2 , we need two, and so on. This
- *
- * (-exp_bias-fracbits+1)
- * implies that the smallest denormalized number is 2
- *
- * for whichever format we are talking about: for single precision, for
- *
- * -126 -149
- * instance, we get .00000000000000000000001 x 2 , or 1.0 x 2 , and
- *
- * -149 == -127 - 23 + 1.
- */
-#define SNG_EXPBITS 8
-#define SNG_FRACBITS 23
-
-#define DBL_EXPBITS 11
-#define DBL_FRACBITS 52
-
-#define EXT_EXPBITS 15
-#define EXT_FRACBITS 112
-
-struct ieee_single {
- u_int sng_frac:23;
- u_int sng_exp:8;
- u_int sng_sign:1;
-};
-
-struct ieee_double {
- u_int dbl_fracl;
- u_int dbl_frach:20;
- u_int dbl_exp:11;
- u_int dbl_sign:1;
-};
-
-struct ieee_ext {
- u_int ext_sign:1;
- u_int ext_exp:15;
- u_int ext_frach:16;
- u_int ext_frachm;
- u_int ext_fraclm;
- u_int ext_fracl;
-};
-
-/*
- * Floats whose exponent is in [1..INFNAN) (of whatever type) are
- * `normal'. Floats whose exponent is INFNAN are either Inf or NaN.
- * Floats whose exponent is zero are either zero (iff all fraction
- * bits are zero) or subnormal values.
- *
- * A NaN is a `signalling NaN' if its QUIETNAN bit is clear in its
- * high fraction; if the bit is set, it is a `quiet NaN'.
- */
-#define SNG_EXP_INFNAN 255
-#define DBL_EXP_INFNAN 2047
-#define EXT_EXP_INFNAN 32767
-
-#if 0
-#define SNG_QUIETNAN (1 << 22)
-#define DBL_QUIETNAN (1 << 19)
-#define EXT_QUIETNAN (1 << 15)
-#endif
-
-/*
- * Exponent biases.
- */
-#define SNG_EXP_BIAS 127
-#define DBL_EXP_BIAS 1023
-#define EXT_EXP_BIAS 16383
diff --git a/libc/arch-sh/include/machine/internal_types.h b/libc/arch-sh/include/machine/internal_types.h
deleted file mode 100644
index ea9b7c4..0000000
--- a/libc/arch-sh/include/machine/internal_types.h
+++ /dev/null
@@ -1,6 +0,0 @@
-/* $OpenBSD: internal_types.h,v 1.1.1.1 2006/10/06 21:02:55 miod Exp $ */
-/* Public domain */
-#ifndef _SH_INTERNAL_TYPES_H_
-#define _SH_INTERNAL_TYPES_H_
-
-#endif
diff --git a/libc/arch-sh/include/machine/kernel.h b/libc/arch-sh/include/machine/kernel.h
deleted file mode 100644
index 948021a..0000000
--- a/libc/arch-sh/include/machine/kernel.h
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright (C) 2009 The Android Open Source Project
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-#ifndef _ARCH_SH_KERNEL_H
-#define _ARCH_SH_KERNEL_H
-
-/* this file contains kernel-specific definitions that were optimized out of
- our processed kernel headers, but still useful nonetheless... */
-
-typedef unsigned long __kernel_blkcnt_t;
-typedef unsigned long __kernel_blksize_t;
-
-/* these aren't really defined by the kernel headers though... */
-typedef unsigned long __kernel_fsblkcnt_t;
-typedef unsigned long __kernel_fsfilcnt_t;
-typedef unsigned int __kernel_id_t;
-
-#endif /* _ARCH_SH_KERNEL_H */
diff --git a/libc/arch-sh/include/machine/limits.h b/libc/arch-sh/include/machine/limits.h
deleted file mode 100644
index d602138..0000000
--- a/libc/arch-sh/include/machine/limits.h
+++ /dev/null
@@ -1,60 +0,0 @@
-/* $OpenBSD: limits.h,v 1.1.1.1 2006/10/06 21:02:55 miod Exp $ */
-/* $NetBSD: limits.h,v 1.1 1996/09/30 16:34:28 ws Exp $ */
-
-/*-
- * Copyright (C) 1995, 1996 Wolfgang Solfrank.
- * Copyright (C) 1995, 1996 TooLs GmbH.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by TooLs GmbH.
- * 4. The name of TooLs GmbH may not be used to endorse or promote products
- * derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
- * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
- * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
- * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef _SH_LIMITS_H_
-#define _SH_LIMITS_H_
-
-#include <sys/cdefs.h>
-
-#define MB_LEN_MAX 1 /* no multibyte characters */
-
-#ifndef SIZE_MAX
-#define SIZE_MAX UINT_MAX /* max value for a size_t */
-#endif
-#define SSIZE_MAX INT_MAX /* max value for a ssize_t */
-
-#if __BSD_VISIBLE
-#define SIZE_T_MAX UINT_MAX /* max value for a size_t (historic) */
-
-#define UQUAD_MAX 0xffffffffffffffffULL /* max unsigned quad */
-#define QUAD_MAX 0x7fffffffffffffffLL /* max signed quad */
-#define QUAD_MIN (-0x7fffffffffffffffLL-1) /* min signed quad */
-#endif /* __BSD_VISIBLE */
-
-#define LONGLONG_BIT 64
-#define LONGLONG_MIN (-9223372036854775807LL-1)
-#define LONGLONG_MAX 9223372036854775807LL
-#define ULONGLONG_MAX 18446744073709551615ULL
-
-#endif /* _SH_LIMITS_H_ */
diff --git a/libc/arch-sh/include/machine/setjmp.h b/libc/arch-sh/include/machine/setjmp.h
deleted file mode 100644
index 014ad3e..0000000
--- a/libc/arch-sh/include/machine/setjmp.h
+++ /dev/null
@@ -1,7 +0,0 @@
-/* $OpenBSD: setjmp.h,v 1.2 2007/03/02 06:11:54 miod Exp $ */
-/* $NetBSD: setjmp.h,v 1.3 2006/01/05 00:50:23 uwe Exp $ */
-
-/*
- * machine/setjmp.h: machine dependent setjmp-related information.
- */
-
diff --git a/libc/arch-sh/syscalls.mk b/libc/arch-sh/syscalls.mk
deleted file mode 100644
index 03ce7fd..0000000
--- a/libc/arch-sh/syscalls.mk
+++ /dev/null
@@ -1,182 +0,0 @@
-# auto-generated by gensyscalls.py, do not touch
-syscall_src :=
-syscall_src += arch-sh/syscalls/_exit.S
-syscall_src += arch-sh/syscalls/_exit_thread.S
-syscall_src += arch-sh/syscalls/__fork.S
-syscall_src += arch-sh/syscalls/_waitpid.S
-syscall_src += arch-sh/syscalls/__waitid.S
-syscall_src += arch-sh/syscalls/__sys_clone.S
-syscall_src += arch-sh/syscalls/execve.S
-syscall_src += arch-sh/syscalls/__setuid.S
-syscall_src += arch-sh/syscalls/getuid.S
-syscall_src += arch-sh/syscalls/getgid.S
-syscall_src += arch-sh/syscalls/geteuid.S
-syscall_src += arch-sh/syscalls/getegid.S
-syscall_src += arch-sh/syscalls/getresuid.S
-syscall_src += arch-sh/syscalls/getresgid.S
-syscall_src += arch-sh/syscalls/gettid.S
-syscall_src += arch-sh/syscalls/readahead.S
-syscall_src += arch-sh/syscalls/getgroups.S
-syscall_src += arch-sh/syscalls/getpgid.S
-syscall_src += arch-sh/syscalls/getppid.S
-syscall_src += arch-sh/syscalls/setsid.S
-syscall_src += arch-sh/syscalls/setgid.S
-syscall_src += arch-sh/syscalls/__setreuid.S
-syscall_src += arch-sh/syscalls/__setresuid.S
-syscall_src += arch-sh/syscalls/setresgid.S
-syscall_src += arch-sh/syscalls/__brk.S
-syscall_src += arch-sh/syscalls/kill.S
-syscall_src += arch-sh/syscalls/tkill.S
-syscall_src += arch-sh/syscalls/__ptrace.S
-syscall_src += arch-sh/syscalls/__set_thread_area.S
-syscall_src += arch-sh/syscalls/__getpriority.S
-syscall_src += arch-sh/syscalls/setpriority.S
-syscall_src += arch-sh/syscalls/setrlimit.S
-syscall_src += arch-sh/syscalls/getrlimit.S
-syscall_src += arch-sh/syscalls/getrusage.S
-syscall_src += arch-sh/syscalls/setgroups.S
-syscall_src += arch-sh/syscalls/setpgid.S
-syscall_src += arch-sh/syscalls/vfork.S
-syscall_src += arch-sh/syscalls/setregid.S
-syscall_src += arch-sh/syscalls/chroot.S
-syscall_src += arch-sh/syscalls/prctl.S
-syscall_src += arch-sh/syscalls/capget.S
-syscall_src += arch-sh/syscalls/capset.S
-syscall_src += arch-sh/syscalls/sigaltstack.S
-syscall_src += arch-sh/syscalls/acct.S
-syscall_src += arch-sh/syscalls/read.S
-syscall_src += arch-sh/syscalls/write.S
-syscall_src += arch-sh/syscalls/pread64.S
-syscall_src += arch-sh/syscalls/pwrite64.S
-syscall_src += arch-sh/syscalls/__open.S
-syscall_src += arch-sh/syscalls/__openat.S
-syscall_src += arch-sh/syscalls/close.S
-syscall_src += arch-sh/syscalls/lseek.S
-syscall_src += arch-sh/syscalls/__llseek.S
-syscall_src += arch-sh/syscalls/getpid.S
-syscall_src += arch-sh/syscalls/__mmap2.S
-syscall_src += arch-sh/syscalls/munmap.S
-syscall_src += arch-sh/syscalls/mremap.S
-syscall_src += arch-sh/syscalls/msync.S
-syscall_src += arch-sh/syscalls/mprotect.S
-syscall_src += arch-sh/syscalls/madvise.S
-syscall_src += arch-sh/syscalls/mlock.S
-syscall_src += arch-sh/syscalls/munlock.S
-syscall_src += arch-sh/syscalls/mincore.S
-syscall_src += arch-sh/syscalls/__ioctl.S
-syscall_src += arch-sh/syscalls/readv.S
-syscall_src += arch-sh/syscalls/writev.S
-syscall_src += arch-sh/syscalls/__fcntl.S
-syscall_src += arch-sh/syscalls/flock.S
-syscall_src += arch-sh/syscalls/fchmod.S
-syscall_src += arch-sh/syscalls/dup.S
-syscall_src += arch-sh/syscalls/pipe2.S
-syscall_src += arch-sh/syscalls/dup2.S
-syscall_src += arch-sh/syscalls/select.S
-syscall_src += arch-sh/syscalls/ftruncate.S
-syscall_src += arch-sh/syscalls/ftruncate64.S
-syscall_src += arch-sh/syscalls/getdents.S
-syscall_src += arch-sh/syscalls/fsync.S
-syscall_src += arch-sh/syscalls/fdatasync.S
-syscall_src += arch-sh/syscalls/fchown.S
-syscall_src += arch-sh/syscalls/sync.S
-syscall_src += arch-sh/syscalls/__fcntl64.S
-syscall_src += arch-sh/syscalls/__fstatfs64.S
-syscall_src += arch-sh/syscalls/sendfile.S
-syscall_src += arch-sh/syscalls/fstatat.S
-syscall_src += arch-sh/syscalls/mkdirat.S
-syscall_src += arch-sh/syscalls/fchownat.S
-syscall_src += arch-sh/syscalls/fchmodat.S
-syscall_src += arch-sh/syscalls/renameat.S
-syscall_src += arch-sh/syscalls/fsetxattr.S
-syscall_src += arch-sh/syscalls/fgetxattr.S
-syscall_src += arch-sh/syscalls/flistxattr.S
-syscall_src += arch-sh/syscalls/fremovexattr.S
-syscall_src += arch-sh/syscalls/link.S
-syscall_src += arch-sh/syscalls/unlink.S
-syscall_src += arch-sh/syscalls/unlinkat.S
-syscall_src += arch-sh/syscalls/chdir.S
-syscall_src += arch-sh/syscalls/mknod.S
-syscall_src += arch-sh/syscalls/chmod.S
-syscall_src += arch-sh/syscalls/chown.S
-syscall_src += arch-sh/syscalls/lchown.S
-syscall_src += arch-sh/syscalls/mount.S
-syscall_src += arch-sh/syscalls/umount2.S
-syscall_src += arch-sh/syscalls/fstat.S
-syscall_src += arch-sh/syscalls/stat.S
-syscall_src += arch-sh/syscalls/lstat.S
-syscall_src += arch-sh/syscalls/mkdir.S
-syscall_src += arch-sh/syscalls/readlink.S
-syscall_src += arch-sh/syscalls/rmdir.S
-syscall_src += arch-sh/syscalls/rename.S
-syscall_src += arch-sh/syscalls/__getcwd.S
-syscall_src += arch-sh/syscalls/access.S
-syscall_src += arch-sh/syscalls/symlink.S
-syscall_src += arch-sh/syscalls/fchdir.S
-syscall_src += arch-sh/syscalls/truncate.S
-syscall_src += arch-sh/syscalls/setxattr.S
-syscall_src += arch-sh/syscalls/lsetxattr.S
-syscall_src += arch-sh/syscalls/getxattr.S
-syscall_src += arch-sh/syscalls/lgetxattr.S
-syscall_src += arch-sh/syscalls/listxattr.S
-syscall_src += arch-sh/syscalls/llistxattr.S
-syscall_src += arch-sh/syscalls/removexattr.S
-syscall_src += arch-sh/syscalls/lremovexattr.S
-syscall_src += arch-sh/syscalls/__statfs64.S
-syscall_src += arch-sh/syscalls/pause.S
-syscall_src += arch-sh/syscalls/gettimeofday.S
-syscall_src += arch-sh/syscalls/settimeofday.S
-syscall_src += arch-sh/syscalls/times.S
-syscall_src += arch-sh/syscalls/nanosleep.S
-syscall_src += arch-sh/syscalls/clock_gettime.S
-syscall_src += arch-sh/syscalls/clock_settime.S
-syscall_src += arch-sh/syscalls/clock_getres.S
-syscall_src += arch-sh/syscalls/clock_nanosleep.S
-syscall_src += arch-sh/syscalls/getitimer.S
-syscall_src += arch-sh/syscalls/setitimer.S
-syscall_src += arch-sh/syscalls/__timer_create.S
-syscall_src += arch-sh/syscalls/__timer_settime.S
-syscall_src += arch-sh/syscalls/__timer_gettime.S
-syscall_src += arch-sh/syscalls/__timer_getoverrun.S
-syscall_src += arch-sh/syscalls/__timer_delete.S
-syscall_src += arch-sh/syscalls/utimes.S
-syscall_src += arch-sh/syscalls/utimensat.S
-syscall_src += arch-sh/syscalls/sigaction.S
-syscall_src += arch-sh/syscalls/sigprocmask.S
-syscall_src += arch-sh/syscalls/__sigsuspend.S
-syscall_src += arch-sh/syscalls/__rt_sigaction.S
-syscall_src += arch-sh/syscalls/__rt_sigprocmask.S
-syscall_src += arch-sh/syscalls/__rt_sigtimedwait.S
-syscall_src += arch-sh/syscalls/sigpending.S
-syscall_src += arch-sh/syscalls/__socketcall.S
-syscall_src += arch-sh/syscalls/sched_setscheduler.S
-syscall_src += arch-sh/syscalls/sched_getscheduler.S
-syscall_src += arch-sh/syscalls/sched_yield.S
-syscall_src += arch-sh/syscalls/sched_setparam.S
-syscall_src += arch-sh/syscalls/sched_getparam.S
-syscall_src += arch-sh/syscalls/sched_get_priority_max.S
-syscall_src += arch-sh/syscalls/sched_get_priority_min.S
-syscall_src += arch-sh/syscalls/sched_rr_get_interval.S
-syscall_src += arch-sh/syscalls/sched_setaffinity.S
-syscall_src += arch-sh/syscalls/__sched_getaffinity.S
-syscall_src += arch-sh/syscalls/__getcpu.S
-syscall_src += arch-sh/syscalls/ioprio_set.S
-syscall_src += arch-sh/syscalls/ioprio_get.S
-syscall_src += arch-sh/syscalls/uname.S
-syscall_src += arch-sh/syscalls/__wait4.S
-syscall_src += arch-sh/syscalls/umask.S
-syscall_src += arch-sh/syscalls/__reboot.S
-syscall_src += arch-sh/syscalls/__syslog.S
-syscall_src += arch-sh/syscalls/init_module.S
-syscall_src += arch-sh/syscalls/delete_module.S
-syscall_src += arch-sh/syscalls/klogctl.S
-syscall_src += arch-sh/syscalls/sysinfo.S
-syscall_src += arch-sh/syscalls/futex.S
-syscall_src += arch-sh/syscalls/epoll_create.S
-syscall_src += arch-sh/syscalls/epoll_ctl.S
-syscall_src += arch-sh/syscalls/epoll_wait.S
-syscall_src += arch-sh/syscalls/inotify_init.S
-syscall_src += arch-sh/syscalls/inotify_add_watch.S
-syscall_src += arch-sh/syscalls/inotify_rm_watch.S
-syscall_src += arch-sh/syscalls/poll.S
-syscall_src += arch-sh/syscalls/eventfd.S
diff --git a/libc/arch-sh/syscalls/__brk.S b/libc/arch-sh/syscalls/__brk.S
deleted file mode 100644
index 465389d..0000000
--- a/libc/arch-sh/syscalls/__brk.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type __brk, @function
- .globl __brk
- .align 4
-
-__brk:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(1 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_brk_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_brk_end:
- rts
- nop
-
- .align 2
-0: .long __NR_brk
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/__fcntl.S b/libc/arch-sh/syscalls/__fcntl.S
deleted file mode 100644
index 654ee84..0000000
--- a/libc/arch-sh/syscalls/__fcntl.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type __fcntl, @function
- .globl __fcntl
- .align 4
-
-__fcntl:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_fcntl_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_fcntl_end:
- rts
- nop
-
- .align 2
-0: .long __NR_fcntl
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/__fcntl64.S b/libc/arch-sh/syscalls/__fcntl64.S
deleted file mode 100644
index 8a2f73f..0000000
--- a/libc/arch-sh/syscalls/__fcntl64.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type __fcntl64, @function
- .globl __fcntl64
- .align 4
-
-__fcntl64:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_fcntl64_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_fcntl64_end:
- rts
- nop
-
- .align 2
-0: .long __NR_fcntl64
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/__fork.S b/libc/arch-sh/syscalls/__fork.S
deleted file mode 100644
index 5a00daf..0000000
--- a/libc/arch-sh/syscalls/__fork.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type __fork, @function
- .globl __fork
- .align 4
-
-__fork:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(1 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_fork_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_fork_end:
- rts
- nop
-
- .align 2
-0: .long __NR_fork
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/__fstatfs64.S b/libc/arch-sh/syscalls/__fstatfs64.S
deleted file mode 100644
index dcf1d80..0000000
--- a/libc/arch-sh/syscalls/__fstatfs64.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type __fstatfs64, @function
- .globl __fstatfs64
- .align 4
-
-__fstatfs64:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_fstatfs64_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_fstatfs64_end:
- rts
- nop
-
- .align 2
-0: .long __NR_fstatfs64
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/__getcpu.S b/libc/arch-sh/syscalls/__getcpu.S
deleted file mode 100644
index 125387b..0000000
--- a/libc/arch-sh/syscalls/__getcpu.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type __getcpu, @function
- .globl __getcpu
- .align 4
-
-__getcpu:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_getcpu_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_getcpu_end:
- rts
- nop
-
- .align 2
-0: .long __NR_getcpu
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/__getcwd.S b/libc/arch-sh/syscalls/__getcwd.S
deleted file mode 100644
index 9ce1f14..0000000
--- a/libc/arch-sh/syscalls/__getcwd.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type __getcwd, @function
- .globl __getcwd
- .align 4
-
-__getcwd:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_getcwd_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_getcwd_end:
- rts
- nop
-
- .align 2
-0: .long __NR_getcwd
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/__getpriority.S b/libc/arch-sh/syscalls/__getpriority.S
deleted file mode 100644
index aa9f4f3..0000000
--- a/libc/arch-sh/syscalls/__getpriority.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type __getpriority, @function
- .globl __getpriority
- .align 4
-
-__getpriority:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_getpriority_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_getpriority_end:
- rts
- nop
-
- .align 2
-0: .long __NR_getpriority
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/__ioctl.S b/libc/arch-sh/syscalls/__ioctl.S
deleted file mode 100644
index ec447cf..0000000
--- a/libc/arch-sh/syscalls/__ioctl.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type __ioctl, @function
- .globl __ioctl
- .align 4
-
-__ioctl:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_ioctl_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_ioctl_end:
- rts
- nop
-
- .align 2
-0: .long __NR_ioctl
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/__llseek.S b/libc/arch-sh/syscalls/__llseek.S
deleted file mode 100644
index e43b3ed..0000000
--- a/libc/arch-sh/syscalls/__llseek.S
+++ /dev/null
@@ -1,35 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type __llseek, @function
- .globl __llseek
- .align 4
-
-__llseek:
-
- /* get ready for additonal arg */
- mov.l @r15, r0
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(5 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR__llseek_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR__llseek_end:
- rts
- nop
-
- .align 2
-0: .long __NR__llseek
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/__mmap2.S b/libc/arch-sh/syscalls/__mmap2.S
deleted file mode 100644
index 6f70d46..0000000
--- a/libc/arch-sh/syscalls/__mmap2.S
+++ /dev/null
@@ -1,36 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type __mmap2, @function
- .globl __mmap2
- .align 4
-
-__mmap2:
-
- /* get ready for additonal arg */
- mov.l @r15, r0
- mov.l @(4, r15), r1
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(6 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_mmap2_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_mmap2_end:
- rts
- nop
-
- .align 2
-0: .long __NR_mmap2
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/__open.S b/libc/arch-sh/syscalls/__open.S
deleted file mode 100644
index f57b5b9..0000000
--- a/libc/arch-sh/syscalls/__open.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type __open, @function
- .globl __open
- .align 4
-
-__open:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_open_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_open_end:
- rts
- nop
-
- .align 2
-0: .long __NR_open
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/__openat.S b/libc/arch-sh/syscalls/__openat.S
deleted file mode 100644
index 08cf096..0000000
--- a/libc/arch-sh/syscalls/__openat.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type __openat, @function
- .globl __openat
- .align 4
-
-__openat:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(4 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_openat_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_openat_end:
- rts
- nop
-
- .align 2
-0: .long __NR_openat
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/__ptrace.S b/libc/arch-sh/syscalls/__ptrace.S
deleted file mode 100644
index 89bbc98..0000000
--- a/libc/arch-sh/syscalls/__ptrace.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type __ptrace, @function
- .globl __ptrace
- .align 4
-
-__ptrace:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(4 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_ptrace_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_ptrace_end:
- rts
- nop
-
- .align 2
-0: .long __NR_ptrace
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/__reboot.S b/libc/arch-sh/syscalls/__reboot.S
deleted file mode 100644
index 07cff36..0000000
--- a/libc/arch-sh/syscalls/__reboot.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type __reboot, @function
- .globl __reboot
- .align 4
-
-__reboot:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(4 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_reboot_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_reboot_end:
- rts
- nop
-
- .align 2
-0: .long __NR_reboot
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/__rt_sigaction.S b/libc/arch-sh/syscalls/__rt_sigaction.S
deleted file mode 100644
index 693cb76..0000000
--- a/libc/arch-sh/syscalls/__rt_sigaction.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type __rt_sigaction, @function
- .globl __rt_sigaction
- .align 4
-
-__rt_sigaction:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(4 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_rt_sigaction_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_rt_sigaction_end:
- rts
- nop
-
- .align 2
-0: .long __NR_rt_sigaction
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/__rt_sigprocmask.S b/libc/arch-sh/syscalls/__rt_sigprocmask.S
deleted file mode 100644
index 7822d4f..0000000
--- a/libc/arch-sh/syscalls/__rt_sigprocmask.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type __rt_sigprocmask, @function
- .globl __rt_sigprocmask
- .align 4
-
-__rt_sigprocmask:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(4 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_rt_sigprocmask_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_rt_sigprocmask_end:
- rts
- nop
-
- .align 2
-0: .long __NR_rt_sigprocmask
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/__rt_sigtimedwait.S b/libc/arch-sh/syscalls/__rt_sigtimedwait.S
deleted file mode 100644
index 2804169..0000000
--- a/libc/arch-sh/syscalls/__rt_sigtimedwait.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type __rt_sigtimedwait, @function
- .globl __rt_sigtimedwait
- .align 4
-
-__rt_sigtimedwait:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(4 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_rt_sigtimedwait_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_rt_sigtimedwait_end:
- rts
- nop
-
- .align 2
-0: .long __NR_rt_sigtimedwait
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/__sched_getaffinity.S b/libc/arch-sh/syscalls/__sched_getaffinity.S
deleted file mode 100644
index 7e8be6a..0000000
--- a/libc/arch-sh/syscalls/__sched_getaffinity.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type __sched_getaffinity, @function
- .globl __sched_getaffinity
- .align 4
-
-__sched_getaffinity:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_sched_getaffinity_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_sched_getaffinity_end:
- rts
- nop
-
- .align 2
-0: .long __NR_sched_getaffinity
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/__set_thread_area.S b/libc/arch-sh/syscalls/__set_thread_area.S
deleted file mode 100644
index 7d5aea6..0000000
--- a/libc/arch-sh/syscalls/__set_thread_area.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type __set_thread_area, @function
- .globl __set_thread_area
- .align 4
-
-__set_thread_area:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(1 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_set_thread_area_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_set_thread_area_end:
- rts
- nop
-
- .align 2
-0: .long __NR_set_thread_area
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/__setresuid.S b/libc/arch-sh/syscalls/__setresuid.S
deleted file mode 100644
index 424100e..0000000
--- a/libc/arch-sh/syscalls/__setresuid.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type __setresuid, @function
- .globl __setresuid
- .align 4
-
-__setresuid:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_setresuid32_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_setresuid32_end:
- rts
- nop
-
- .align 2
-0: .long __NR_setresuid32
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/__setreuid.S b/libc/arch-sh/syscalls/__setreuid.S
deleted file mode 100644
index 6990748..0000000
--- a/libc/arch-sh/syscalls/__setreuid.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type __setreuid, @function
- .globl __setreuid
- .align 4
-
-__setreuid:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_setreuid32_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_setreuid32_end:
- rts
- nop
-
- .align 2
-0: .long __NR_setreuid32
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/__setuid.S b/libc/arch-sh/syscalls/__setuid.S
deleted file mode 100644
index f563de7..0000000
--- a/libc/arch-sh/syscalls/__setuid.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type __setuid, @function
- .globl __setuid
- .align 4
-
-__setuid:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(1 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_setuid32_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_setuid32_end:
- rts
- nop
-
- .align 2
-0: .long __NR_setuid32
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/__sigsuspend.S b/libc/arch-sh/syscalls/__sigsuspend.S
deleted file mode 100644
index 9643940..0000000
--- a/libc/arch-sh/syscalls/__sigsuspend.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type __sigsuspend, @function
- .globl __sigsuspend
- .align 4
-
-__sigsuspend:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_sigsuspend_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_sigsuspend_end:
- rts
- nop
-
- .align 2
-0: .long __NR_sigsuspend
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/__socketcall.S b/libc/arch-sh/syscalls/__socketcall.S
deleted file mode 100644
index 7c705bb..0000000
--- a/libc/arch-sh/syscalls/__socketcall.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type __socketcall, @function
- .globl __socketcall
- .align 4
-
-__socketcall:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_socketcall_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_socketcall_end:
- rts
- nop
-
- .align 2
-0: .long __NR_socketcall
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/__statfs64.S b/libc/arch-sh/syscalls/__statfs64.S
deleted file mode 100644
index ccd137b..0000000
--- a/libc/arch-sh/syscalls/__statfs64.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type __statfs64, @function
- .globl __statfs64
- .align 4
-
-__statfs64:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_statfs64_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_statfs64_end:
- rts
- nop
-
- .align 2
-0: .long __NR_statfs64
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/__sys_clone.S b/libc/arch-sh/syscalls/__sys_clone.S
deleted file mode 100644
index c2e7dd2..0000000
--- a/libc/arch-sh/syscalls/__sys_clone.S
+++ /dev/null
@@ -1,35 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type __sys_clone, @function
- .globl __sys_clone
- .align 4
-
-__sys_clone:
-
- /* get ready for additonal arg */
- mov.l @r15, r0
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(5 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_clone_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_clone_end:
- rts
- nop
-
- .align 2
-0: .long __NR_clone
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/__syslog.S b/libc/arch-sh/syscalls/__syslog.S
deleted file mode 100644
index ea1ac38..0000000
--- a/libc/arch-sh/syscalls/__syslog.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type __syslog, @function
- .globl __syslog
- .align 4
-
-__syslog:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_syslog_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_syslog_end:
- rts
- nop
-
- .align 2
-0: .long __NR_syslog
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/__timer_create.S b/libc/arch-sh/syscalls/__timer_create.S
deleted file mode 100644
index f2e2e5c..0000000
--- a/libc/arch-sh/syscalls/__timer_create.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type __timer_create, @function
- .globl __timer_create
- .align 4
-
-__timer_create:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_timer_create_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_timer_create_end:
- rts
- nop
-
- .align 2
-0: .long __NR_timer_create
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/__timer_delete.S b/libc/arch-sh/syscalls/__timer_delete.S
deleted file mode 100644
index d655d3d..0000000
--- a/libc/arch-sh/syscalls/__timer_delete.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type __timer_delete, @function
- .globl __timer_delete
- .align 4
-
-__timer_delete:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(1 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_timer_delete_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_timer_delete_end:
- rts
- nop
-
- .align 2
-0: .long __NR_timer_delete
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/__timer_getoverrun.S b/libc/arch-sh/syscalls/__timer_getoverrun.S
deleted file mode 100644
index 64fa92f..0000000
--- a/libc/arch-sh/syscalls/__timer_getoverrun.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type __timer_getoverrun, @function
- .globl __timer_getoverrun
- .align 4
-
-__timer_getoverrun:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(1 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_timer_getoverrun_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_timer_getoverrun_end:
- rts
- nop
-
- .align 2
-0: .long __NR_timer_getoverrun
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/__timer_gettime.S b/libc/arch-sh/syscalls/__timer_gettime.S
deleted file mode 100644
index f1c63ed..0000000
--- a/libc/arch-sh/syscalls/__timer_gettime.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type __timer_gettime, @function
- .globl __timer_gettime
- .align 4
-
-__timer_gettime:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_timer_gettime_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_timer_gettime_end:
- rts
- nop
-
- .align 2
-0: .long __NR_timer_gettime
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/__timer_settime.S b/libc/arch-sh/syscalls/__timer_settime.S
deleted file mode 100644
index ea438a6..0000000
--- a/libc/arch-sh/syscalls/__timer_settime.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type __timer_settime, @function
- .globl __timer_settime
- .align 4
-
-__timer_settime:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(4 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_timer_settime_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_timer_settime_end:
- rts
- nop
-
- .align 2
-0: .long __NR_timer_settime
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/__wait4.S b/libc/arch-sh/syscalls/__wait4.S
deleted file mode 100644
index a145e34..0000000
--- a/libc/arch-sh/syscalls/__wait4.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type __wait4, @function
- .globl __wait4
- .align 4
-
-__wait4:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(4 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_wait4_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_wait4_end:
- rts
- nop
-
- .align 2
-0: .long __NR_wait4
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/__waitid.S b/libc/arch-sh/syscalls/__waitid.S
deleted file mode 100644
index 1f58de0..0000000
--- a/libc/arch-sh/syscalls/__waitid.S
+++ /dev/null
@@ -1,35 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type __waitid, @function
- .globl __waitid
- .align 4
-
-__waitid:
-
- /* get ready for additonal arg */
- mov.l @r15, r0
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(5 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_waitid_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_waitid_end:
- rts
- nop
-
- .align 2
-0: .long __NR_waitid
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/_exit.S b/libc/arch-sh/syscalls/_exit.S
deleted file mode 100644
index 377a98a..0000000
--- a/libc/arch-sh/syscalls/_exit.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type _exit, @function
- .globl _exit
- .align 4
-
-_exit:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(1 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_exit_group_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_exit_group_end:
- rts
- nop
-
- .align 2
-0: .long __NR_exit_group
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/_exit_thread.S b/libc/arch-sh/syscalls/_exit_thread.S
deleted file mode 100644
index 536d000..0000000
--- a/libc/arch-sh/syscalls/_exit_thread.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type _exit_thread, @function
- .globl _exit_thread
- .align 4
-
-_exit_thread:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(1 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_exit_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_exit_end:
- rts
- nop
-
- .align 2
-0: .long __NR_exit
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/_waitpid.S b/libc/arch-sh/syscalls/_waitpid.S
deleted file mode 100644
index db2cf61..0000000
--- a/libc/arch-sh/syscalls/_waitpid.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type _waitpid, @function
- .globl _waitpid
- .align 4
-
-_waitpid:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(4 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_waitpid_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_waitpid_end:
- rts
- nop
-
- .align 2
-0: .long __NR_waitpid
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/access.S b/libc/arch-sh/syscalls/access.S
deleted file mode 100644
index dea8dfb..0000000
--- a/libc/arch-sh/syscalls/access.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type access, @function
- .globl access
- .align 4
-
-access:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_access_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_access_end:
- rts
- nop
-
- .align 2
-0: .long __NR_access
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/acct.S b/libc/arch-sh/syscalls/acct.S
deleted file mode 100644
index 22d939e..0000000
--- a/libc/arch-sh/syscalls/acct.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type acct, @function
- .globl acct
- .align 4
-
-acct:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(1 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_acct_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_acct_end:
- rts
- nop
-
- .align 2
-0: .long __NR_acct
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/capget.S b/libc/arch-sh/syscalls/capget.S
deleted file mode 100644
index 77f6c54..0000000
--- a/libc/arch-sh/syscalls/capget.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type capget, @function
- .globl capget
- .align 4
-
-capget:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_capget_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_capget_end:
- rts
- nop
-
- .align 2
-0: .long __NR_capget
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/capset.S b/libc/arch-sh/syscalls/capset.S
deleted file mode 100644
index c35b48e..0000000
--- a/libc/arch-sh/syscalls/capset.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type capset, @function
- .globl capset
- .align 4
-
-capset:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_capset_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_capset_end:
- rts
- nop
-
- .align 2
-0: .long __NR_capset
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/chdir.S b/libc/arch-sh/syscalls/chdir.S
deleted file mode 100644
index 32b4a92..0000000
--- a/libc/arch-sh/syscalls/chdir.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type chdir, @function
- .globl chdir
- .align 4
-
-chdir:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(1 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_chdir_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_chdir_end:
- rts
- nop
-
- .align 2
-0: .long __NR_chdir
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/chmod.S b/libc/arch-sh/syscalls/chmod.S
deleted file mode 100644
index f145e4b..0000000
--- a/libc/arch-sh/syscalls/chmod.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type chmod, @function
- .globl chmod
- .align 4
-
-chmod:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_chmod_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_chmod_end:
- rts
- nop
-
- .align 2
-0: .long __NR_chmod
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/chown.S b/libc/arch-sh/syscalls/chown.S
deleted file mode 100644
index 4938a2a..0000000
--- a/libc/arch-sh/syscalls/chown.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type chown, @function
- .globl chown
- .align 4
-
-chown:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_chown32_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_chown32_end:
- rts
- nop
-
- .align 2
-0: .long __NR_chown32
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/chroot.S b/libc/arch-sh/syscalls/chroot.S
deleted file mode 100644
index a60b59d..0000000
--- a/libc/arch-sh/syscalls/chroot.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type chroot, @function
- .globl chroot
- .align 4
-
-chroot:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(1 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_chroot_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_chroot_end:
- rts
- nop
-
- .align 2
-0: .long __NR_chroot
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/clock_getres.S b/libc/arch-sh/syscalls/clock_getres.S
deleted file mode 100644
index 0b38f22..0000000
--- a/libc/arch-sh/syscalls/clock_getres.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type clock_getres, @function
- .globl clock_getres
- .align 4
-
-clock_getres:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_clock_getres_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_clock_getres_end:
- rts
- nop
-
- .align 2
-0: .long __NR_clock_getres
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/clock_gettime.S b/libc/arch-sh/syscalls/clock_gettime.S
deleted file mode 100644
index 67952a6..0000000
--- a/libc/arch-sh/syscalls/clock_gettime.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type clock_gettime, @function
- .globl clock_gettime
- .align 4
-
-clock_gettime:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_clock_gettime_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_clock_gettime_end:
- rts
- nop
-
- .align 2
-0: .long __NR_clock_gettime
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/clock_nanosleep.S b/libc/arch-sh/syscalls/clock_nanosleep.S
deleted file mode 100644
index 7ef8d5e..0000000
--- a/libc/arch-sh/syscalls/clock_nanosleep.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type clock_nanosleep, @function
- .globl clock_nanosleep
- .align 4
-
-clock_nanosleep:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_clock_nanosleep_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_clock_nanosleep_end:
- rts
- nop
-
- .align 2
-0: .long __NR_clock_nanosleep
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/clock_settime.S b/libc/arch-sh/syscalls/clock_settime.S
deleted file mode 100644
index fd48ac6..0000000
--- a/libc/arch-sh/syscalls/clock_settime.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type clock_settime, @function
- .globl clock_settime
- .align 4
-
-clock_settime:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_clock_settime_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_clock_settime_end:
- rts
- nop
-
- .align 2
-0: .long __NR_clock_settime
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/close.S b/libc/arch-sh/syscalls/close.S
deleted file mode 100644
index b59002d..0000000
--- a/libc/arch-sh/syscalls/close.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type close, @function
- .globl close
- .align 4
-
-close:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(1 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_close_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_close_end:
- rts
- nop
-
- .align 2
-0: .long __NR_close
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/delete_module.S b/libc/arch-sh/syscalls/delete_module.S
deleted file mode 100644
index 73410a9..0000000
--- a/libc/arch-sh/syscalls/delete_module.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type delete_module, @function
- .globl delete_module
- .align 4
-
-delete_module:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_delete_module_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_delete_module_end:
- rts
- nop
-
- .align 2
-0: .long __NR_delete_module
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/dup.S b/libc/arch-sh/syscalls/dup.S
deleted file mode 100644
index 1c87dd7..0000000
--- a/libc/arch-sh/syscalls/dup.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type dup, @function
- .globl dup
- .align 4
-
-dup:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(1 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_dup_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_dup_end:
- rts
- nop
-
- .align 2
-0: .long __NR_dup
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/dup2.S b/libc/arch-sh/syscalls/dup2.S
deleted file mode 100644
index da2b7bd..0000000
--- a/libc/arch-sh/syscalls/dup2.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type dup2, @function
- .globl dup2
- .align 4
-
-dup2:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_dup2_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_dup2_end:
- rts
- nop
-
- .align 2
-0: .long __NR_dup2
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/epoll_create.S b/libc/arch-sh/syscalls/epoll_create.S
deleted file mode 100644
index 64ca8a0..0000000
--- a/libc/arch-sh/syscalls/epoll_create.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type epoll_create, @function
- .globl epoll_create
- .align 4
-
-epoll_create:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(1 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_epoll_create_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_epoll_create_end:
- rts
- nop
-
- .align 2
-0: .long __NR_epoll_create
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/epoll_ctl.S b/libc/arch-sh/syscalls/epoll_ctl.S
deleted file mode 100644
index 0293e73..0000000
--- a/libc/arch-sh/syscalls/epoll_ctl.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type epoll_ctl, @function
- .globl epoll_ctl
- .align 4
-
-epoll_ctl:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(4 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_epoll_ctl_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_epoll_ctl_end:
- rts
- nop
-
- .align 2
-0: .long __NR_epoll_ctl
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/epoll_wait.S b/libc/arch-sh/syscalls/epoll_wait.S
deleted file mode 100644
index acea8b5..0000000
--- a/libc/arch-sh/syscalls/epoll_wait.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type epoll_wait, @function
- .globl epoll_wait
- .align 4
-
-epoll_wait:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(4 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_epoll_wait_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_epoll_wait_end:
- rts
- nop
-
- .align 2
-0: .long __NR_epoll_wait
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/eventfd.S b/libc/arch-sh/syscalls/eventfd.S
deleted file mode 100644
index c73bf23..0000000
--- a/libc/arch-sh/syscalls/eventfd.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type eventfd, @function
- .globl eventfd
- .align 4
-
-eventfd:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_eventfd2_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_eventfd2_end:
- rts
- nop
-
- .align 2
-0: .long __NR_eventfd2
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/execve.S b/libc/arch-sh/syscalls/execve.S
deleted file mode 100644
index e4c451a..0000000
--- a/libc/arch-sh/syscalls/execve.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type execve, @function
- .globl execve
- .align 4
-
-execve:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_execve_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_execve_end:
- rts
- nop
-
- .align 2
-0: .long __NR_execve
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/fchdir.S b/libc/arch-sh/syscalls/fchdir.S
deleted file mode 100644
index 9743935..0000000
--- a/libc/arch-sh/syscalls/fchdir.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type fchdir, @function
- .globl fchdir
- .align 4
-
-fchdir:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(1 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_fchdir_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_fchdir_end:
- rts
- nop
-
- .align 2
-0: .long __NR_fchdir
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/fchmod.S b/libc/arch-sh/syscalls/fchmod.S
deleted file mode 100644
index 07b8156..0000000
--- a/libc/arch-sh/syscalls/fchmod.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type fchmod, @function
- .globl fchmod
- .align 4
-
-fchmod:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_fchmod_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_fchmod_end:
- rts
- nop
-
- .align 2
-0: .long __NR_fchmod
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/fchmodat.S b/libc/arch-sh/syscalls/fchmodat.S
deleted file mode 100644
index 2532d12..0000000
--- a/libc/arch-sh/syscalls/fchmodat.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type fchmodat, @function
- .globl fchmodat
- .align 4
-
-fchmodat:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(4 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_fchmodat_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_fchmodat_end:
- rts
- nop
-
- .align 2
-0: .long __NR_fchmodat
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/fchown.S b/libc/arch-sh/syscalls/fchown.S
deleted file mode 100644
index a49f7d7..0000000
--- a/libc/arch-sh/syscalls/fchown.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type fchown, @function
- .globl fchown
- .align 4
-
-fchown:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_fchown32_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_fchown32_end:
- rts
- nop
-
- .align 2
-0: .long __NR_fchown32
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/fchownat.S b/libc/arch-sh/syscalls/fchownat.S
deleted file mode 100644
index 3e82637..0000000
--- a/libc/arch-sh/syscalls/fchownat.S
+++ /dev/null
@@ -1,35 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type fchownat, @function
- .globl fchownat
- .align 4
-
-fchownat:
-
- /* get ready for additonal arg */
- mov.l @r15, r0
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(5 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_fchownat_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_fchownat_end:
- rts
- nop
-
- .align 2
-0: .long __NR_fchownat
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/fdatasync.S b/libc/arch-sh/syscalls/fdatasync.S
deleted file mode 100644
index d81c33a..0000000
--- a/libc/arch-sh/syscalls/fdatasync.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type fdatasync, @function
- .globl fdatasync
- .align 4
-
-fdatasync:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(1 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_fdatasync_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_fdatasync_end:
- rts
- nop
-
- .align 2
-0: .long __NR_fdatasync
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/fgetxattr.S b/libc/arch-sh/syscalls/fgetxattr.S
deleted file mode 100644
index 49b43de..0000000
--- a/libc/arch-sh/syscalls/fgetxattr.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type fgetxattr, @function
- .globl fgetxattr
- .align 4
-
-fgetxattr:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(4 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_fgetxattr_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_fgetxattr_end:
- rts
- nop
-
- .align 2
-0: .long __NR_fgetxattr
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/flistxattr.S b/libc/arch-sh/syscalls/flistxattr.S
deleted file mode 100644
index 9b91424..0000000
--- a/libc/arch-sh/syscalls/flistxattr.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type flistxattr, @function
- .globl flistxattr
- .align 4
-
-flistxattr:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_flistxattr_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_flistxattr_end:
- rts
- nop
-
- .align 2
-0: .long __NR_flistxattr
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/flock.S b/libc/arch-sh/syscalls/flock.S
deleted file mode 100644
index d4274ea..0000000
--- a/libc/arch-sh/syscalls/flock.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type flock, @function
- .globl flock
- .align 4
-
-flock:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_flock_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_flock_end:
- rts
- nop
-
- .align 2
-0: .long __NR_flock
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/fremovexattr.S b/libc/arch-sh/syscalls/fremovexattr.S
deleted file mode 100644
index b6ebc8e..0000000
--- a/libc/arch-sh/syscalls/fremovexattr.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type fremovexattr, @function
- .globl fremovexattr
- .align 4
-
-fremovexattr:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_fremovexattr_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_fremovexattr_end:
- rts
- nop
-
- .align 2
-0: .long __NR_fremovexattr
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/fsetxattr.S b/libc/arch-sh/syscalls/fsetxattr.S
deleted file mode 100644
index 7e0681a..0000000
--- a/libc/arch-sh/syscalls/fsetxattr.S
+++ /dev/null
@@ -1,35 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type fsetxattr, @function
- .globl fsetxattr
- .align 4
-
-fsetxattr:
-
- /* get ready for additonal arg */
- mov.l @r15, r0
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(5 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_fsetxattr_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_fsetxattr_end:
- rts
- nop
-
- .align 2
-0: .long __NR_fsetxattr
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/fstat.S b/libc/arch-sh/syscalls/fstat.S
deleted file mode 100644
index bdb4952..0000000
--- a/libc/arch-sh/syscalls/fstat.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type fstat, @function
- .globl fstat
- .align 4
-
-fstat:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_fstat64_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_fstat64_end:
- rts
- nop
-
- .align 2
-0: .long __NR_fstat64
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/fstatat.S b/libc/arch-sh/syscalls/fstatat.S
deleted file mode 100644
index a5b18d1..0000000
--- a/libc/arch-sh/syscalls/fstatat.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type fstatat, @function
- .globl fstatat
- .align 4
-
-fstatat:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(4 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_fstatat64_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_fstatat64_end:
- rts
- nop
-
- .align 2
-0: .long __NR_fstatat64
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/fsync.S b/libc/arch-sh/syscalls/fsync.S
deleted file mode 100644
index 7904f53..0000000
--- a/libc/arch-sh/syscalls/fsync.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type fsync, @function
- .globl fsync
- .align 4
-
-fsync:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(1 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_fsync_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_fsync_end:
- rts
- nop
-
- .align 2
-0: .long __NR_fsync
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/ftruncate.S b/libc/arch-sh/syscalls/ftruncate.S
deleted file mode 100644
index 8c34333..0000000
--- a/libc/arch-sh/syscalls/ftruncate.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type ftruncate, @function
- .globl ftruncate
- .align 4
-
-ftruncate:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_ftruncate_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_ftruncate_end:
- rts
- nop
-
- .align 2
-0: .long __NR_ftruncate
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/ftruncate64.S b/libc/arch-sh/syscalls/ftruncate64.S
deleted file mode 100644
index f4c7c1e..0000000
--- a/libc/arch-sh/syscalls/ftruncate64.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type ftruncate64, @function
- .globl ftruncate64
- .align 4
-
-ftruncate64:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_ftruncate64_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_ftruncate64_end:
- rts
- nop
-
- .align 2
-0: .long __NR_ftruncate64
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/futex.S b/libc/arch-sh/syscalls/futex.S
deleted file mode 100644
index 2aabd92..0000000
--- a/libc/arch-sh/syscalls/futex.S
+++ /dev/null
@@ -1,36 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type futex, @function
- .globl futex
- .align 4
-
-futex:
-
- /* get ready for additonal arg */
- mov.l @r15, r0
- mov.l @(4, r15), r1
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(6 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_futex_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_futex_end:
- rts
- nop
-
- .align 2
-0: .long __NR_futex
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/getdents.S b/libc/arch-sh/syscalls/getdents.S
deleted file mode 100644
index 66aedf3..0000000
--- a/libc/arch-sh/syscalls/getdents.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type getdents, @function
- .globl getdents
- .align 4
-
-getdents:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_getdents64_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_getdents64_end:
- rts
- nop
-
- .align 2
-0: .long __NR_getdents64
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/getegid.S b/libc/arch-sh/syscalls/getegid.S
deleted file mode 100644
index b3b91ca..0000000
--- a/libc/arch-sh/syscalls/getegid.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type getegid, @function
- .globl getegid
- .align 4
-
-getegid:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(0 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_getegid32_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_getegid32_end:
- rts
- nop
-
- .align 2
-0: .long __NR_getegid32
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/geteuid.S b/libc/arch-sh/syscalls/geteuid.S
deleted file mode 100644
index 50f3549..0000000
--- a/libc/arch-sh/syscalls/geteuid.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type geteuid, @function
- .globl geteuid
- .align 4
-
-geteuid:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(0 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_geteuid32_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_geteuid32_end:
- rts
- nop
-
- .align 2
-0: .long __NR_geteuid32
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/getgid.S b/libc/arch-sh/syscalls/getgid.S
deleted file mode 100644
index 54480b7..0000000
--- a/libc/arch-sh/syscalls/getgid.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type getgid, @function
- .globl getgid
- .align 4
-
-getgid:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(0 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_getgid32_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_getgid32_end:
- rts
- nop
-
- .align 2
-0: .long __NR_getgid32
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/getgroups.S b/libc/arch-sh/syscalls/getgroups.S
deleted file mode 100644
index 854477e..0000000
--- a/libc/arch-sh/syscalls/getgroups.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type getgroups, @function
- .globl getgroups
- .align 4
-
-getgroups:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_getgroups32_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_getgroups32_end:
- rts
- nop
-
- .align 2
-0: .long __NR_getgroups32
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/getitimer.S b/libc/arch-sh/syscalls/getitimer.S
deleted file mode 100644
index aa444a6..0000000
--- a/libc/arch-sh/syscalls/getitimer.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type getitimer, @function
- .globl getitimer
- .align 4
-
-getitimer:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_getitimer_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_getitimer_end:
- rts
- nop
-
- .align 2
-0: .long __NR_getitimer
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/getpgid.S b/libc/arch-sh/syscalls/getpgid.S
deleted file mode 100644
index 0ff101d..0000000
--- a/libc/arch-sh/syscalls/getpgid.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type getpgid, @function
- .globl getpgid
- .align 4
-
-getpgid:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(1 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_getpgid_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_getpgid_end:
- rts
- nop
-
- .align 2
-0: .long __NR_getpgid
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/getpid.S b/libc/arch-sh/syscalls/getpid.S
deleted file mode 100644
index 5606694..0000000
--- a/libc/arch-sh/syscalls/getpid.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type getpid, @function
- .globl getpid
- .align 4
-
-getpid:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(0 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_getpid_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_getpid_end:
- rts
- nop
-
- .align 2
-0: .long __NR_getpid
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/getppid.S b/libc/arch-sh/syscalls/getppid.S
deleted file mode 100644
index bf12372..0000000
--- a/libc/arch-sh/syscalls/getppid.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type getppid, @function
- .globl getppid
- .align 4
-
-getppid:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(0 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_getppid_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_getppid_end:
- rts
- nop
-
- .align 2
-0: .long __NR_getppid
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/getresgid.S b/libc/arch-sh/syscalls/getresgid.S
deleted file mode 100644
index 3677211..0000000
--- a/libc/arch-sh/syscalls/getresgid.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type getresgid, @function
- .globl getresgid
- .align 4
-
-getresgid:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(0 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_getresgid32_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_getresgid32_end:
- rts
- nop
-
- .align 2
-0: .long __NR_getresgid32
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/getresuid.S b/libc/arch-sh/syscalls/getresuid.S
deleted file mode 100644
index 857495e..0000000
--- a/libc/arch-sh/syscalls/getresuid.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type getresuid, @function
- .globl getresuid
- .align 4
-
-getresuid:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(0 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_getresuid32_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_getresuid32_end:
- rts
- nop
-
- .align 2
-0: .long __NR_getresuid32
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/getrlimit.S b/libc/arch-sh/syscalls/getrlimit.S
deleted file mode 100644
index 78135d4..0000000
--- a/libc/arch-sh/syscalls/getrlimit.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type getrlimit, @function
- .globl getrlimit
- .align 4
-
-getrlimit:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_ugetrlimit_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_ugetrlimit_end:
- rts
- nop
-
- .align 2
-0: .long __NR_ugetrlimit
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/getrusage.S b/libc/arch-sh/syscalls/getrusage.S
deleted file mode 100644
index ccd9094..0000000
--- a/libc/arch-sh/syscalls/getrusage.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type getrusage, @function
- .globl getrusage
- .align 4
-
-getrusage:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_getrusage_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_getrusage_end:
- rts
- nop
-
- .align 2
-0: .long __NR_getrusage
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/gettid.S b/libc/arch-sh/syscalls/gettid.S
deleted file mode 100644
index bc25405..0000000
--- a/libc/arch-sh/syscalls/gettid.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type gettid, @function
- .globl gettid
- .align 4
-
-gettid:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(0 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_gettid_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_gettid_end:
- rts
- nop
-
- .align 2
-0: .long __NR_gettid
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/gettimeofday.S b/libc/arch-sh/syscalls/gettimeofday.S
deleted file mode 100644
index 50aba80..0000000
--- a/libc/arch-sh/syscalls/gettimeofday.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type gettimeofday, @function
- .globl gettimeofday
- .align 4
-
-gettimeofday:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_gettimeofday_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_gettimeofday_end:
- rts
- nop
-
- .align 2
-0: .long __NR_gettimeofday
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/getuid.S b/libc/arch-sh/syscalls/getuid.S
deleted file mode 100644
index 9f9740d..0000000
--- a/libc/arch-sh/syscalls/getuid.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type getuid, @function
- .globl getuid
- .align 4
-
-getuid:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(0 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_getuid32_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_getuid32_end:
- rts
- nop
-
- .align 2
-0: .long __NR_getuid32
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/getxattr.S b/libc/arch-sh/syscalls/getxattr.S
deleted file mode 100644
index 7d16c21..0000000
--- a/libc/arch-sh/syscalls/getxattr.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type getxattr, @function
- .globl getxattr
- .align 4
-
-getxattr:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(4 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_getxattr_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_getxattr_end:
- rts
- nop
-
- .align 2
-0: .long __NR_getxattr
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/init_module.S b/libc/arch-sh/syscalls/init_module.S
deleted file mode 100644
index bd3be14..0000000
--- a/libc/arch-sh/syscalls/init_module.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type init_module, @function
- .globl init_module
- .align 4
-
-init_module:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_init_module_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_init_module_end:
- rts
- nop
-
- .align 2
-0: .long __NR_init_module
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/inotify_add_watch.S b/libc/arch-sh/syscalls/inotify_add_watch.S
deleted file mode 100644
index 84d373e..0000000
--- a/libc/arch-sh/syscalls/inotify_add_watch.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type inotify_add_watch, @function
- .globl inotify_add_watch
- .align 4
-
-inotify_add_watch:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_inotify_add_watch_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_inotify_add_watch_end:
- rts
- nop
-
- .align 2
-0: .long __NR_inotify_add_watch
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/inotify_init.S b/libc/arch-sh/syscalls/inotify_init.S
deleted file mode 100644
index 4030f69..0000000
--- a/libc/arch-sh/syscalls/inotify_init.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type inotify_init, @function
- .globl inotify_init
- .align 4
-
-inotify_init:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(1 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_inotify_init_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_inotify_init_end:
- rts
- nop
-
- .align 2
-0: .long __NR_inotify_init
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/inotify_rm_watch.S b/libc/arch-sh/syscalls/inotify_rm_watch.S
deleted file mode 100644
index 7a03447..0000000
--- a/libc/arch-sh/syscalls/inotify_rm_watch.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type inotify_rm_watch, @function
- .globl inotify_rm_watch
- .align 4
-
-inotify_rm_watch:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_inotify_rm_watch_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_inotify_rm_watch_end:
- rts
- nop
-
- .align 2
-0: .long __NR_inotify_rm_watch
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/ioprio_get.S b/libc/arch-sh/syscalls/ioprio_get.S
deleted file mode 100644
index 802eb91..0000000
--- a/libc/arch-sh/syscalls/ioprio_get.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type ioprio_get, @function
- .globl ioprio_get
- .align 4
-
-ioprio_get:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_ioprio_get_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_ioprio_get_end:
- rts
- nop
-
- .align 2
-0: .long __NR_ioprio_get
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/ioprio_set.S b/libc/arch-sh/syscalls/ioprio_set.S
deleted file mode 100644
index 209d756..0000000
--- a/libc/arch-sh/syscalls/ioprio_set.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type ioprio_set, @function
- .globl ioprio_set
- .align 4
-
-ioprio_set:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_ioprio_set_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_ioprio_set_end:
- rts
- nop
-
- .align 2
-0: .long __NR_ioprio_set
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/kill.S b/libc/arch-sh/syscalls/kill.S
deleted file mode 100644
index d331cde..0000000
--- a/libc/arch-sh/syscalls/kill.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type kill, @function
- .globl kill
- .align 4
-
-kill:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_kill_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_kill_end:
- rts
- nop
-
- .align 2
-0: .long __NR_kill
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/klogctl.S b/libc/arch-sh/syscalls/klogctl.S
deleted file mode 100644
index 925875f..0000000
--- a/libc/arch-sh/syscalls/klogctl.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type klogctl, @function
- .globl klogctl
- .align 4
-
-klogctl:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_syslog_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_syslog_end:
- rts
- nop
-
- .align 2
-0: .long __NR_syslog
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/lchown.S b/libc/arch-sh/syscalls/lchown.S
deleted file mode 100644
index 0d94631..0000000
--- a/libc/arch-sh/syscalls/lchown.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type lchown, @function
- .globl lchown
- .align 4
-
-lchown:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_lchown32_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_lchown32_end:
- rts
- nop
-
- .align 2
-0: .long __NR_lchown32
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/lgetxattr.S b/libc/arch-sh/syscalls/lgetxattr.S
deleted file mode 100644
index d0c5014..0000000
--- a/libc/arch-sh/syscalls/lgetxattr.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type lgetxattr, @function
- .globl lgetxattr
- .align 4
-
-lgetxattr:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(4 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_lgetxattr_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_lgetxattr_end:
- rts
- nop
-
- .align 2
-0: .long __NR_lgetxattr
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/link.S b/libc/arch-sh/syscalls/link.S
deleted file mode 100644
index f1716a7..0000000
--- a/libc/arch-sh/syscalls/link.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type link, @function
- .globl link
- .align 4
-
-link:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_link_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_link_end:
- rts
- nop
-
- .align 2
-0: .long __NR_link
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/listxattr.S b/libc/arch-sh/syscalls/listxattr.S
deleted file mode 100644
index f2817a5..0000000
--- a/libc/arch-sh/syscalls/listxattr.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type listxattr, @function
- .globl listxattr
- .align 4
-
-listxattr:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_listxattr_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_listxattr_end:
- rts
- nop
-
- .align 2
-0: .long __NR_listxattr
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/llistxattr.S b/libc/arch-sh/syscalls/llistxattr.S
deleted file mode 100644
index 877c15e..0000000
--- a/libc/arch-sh/syscalls/llistxattr.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type llistxattr, @function
- .globl llistxattr
- .align 4
-
-llistxattr:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_llistxattr_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_llistxattr_end:
- rts
- nop
-
- .align 2
-0: .long __NR_llistxattr
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/lremovexattr.S b/libc/arch-sh/syscalls/lremovexattr.S
deleted file mode 100644
index d7aa8b9..0000000
--- a/libc/arch-sh/syscalls/lremovexattr.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type lremovexattr, @function
- .globl lremovexattr
- .align 4
-
-lremovexattr:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_lremovexattr_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_lremovexattr_end:
- rts
- nop
-
- .align 2
-0: .long __NR_lremovexattr
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/lseek.S b/libc/arch-sh/syscalls/lseek.S
deleted file mode 100644
index df476ff..0000000
--- a/libc/arch-sh/syscalls/lseek.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type lseek, @function
- .globl lseek
- .align 4
-
-lseek:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_lseek_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_lseek_end:
- rts
- nop
-
- .align 2
-0: .long __NR_lseek
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/lsetxattr.S b/libc/arch-sh/syscalls/lsetxattr.S
deleted file mode 100644
index 0cc4c9d..0000000
--- a/libc/arch-sh/syscalls/lsetxattr.S
+++ /dev/null
@@ -1,35 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type lsetxattr, @function
- .globl lsetxattr
- .align 4
-
-lsetxattr:
-
- /* get ready for additonal arg */
- mov.l @r15, r0
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(5 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_lsetxattr_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_lsetxattr_end:
- rts
- nop
-
- .align 2
-0: .long __NR_lsetxattr
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/lstat.S b/libc/arch-sh/syscalls/lstat.S
deleted file mode 100644
index 249c92e..0000000
--- a/libc/arch-sh/syscalls/lstat.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type lstat, @function
- .globl lstat
- .align 4
-
-lstat:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_lstat64_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_lstat64_end:
- rts
- nop
-
- .align 2
-0: .long __NR_lstat64
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/madvise.S b/libc/arch-sh/syscalls/madvise.S
deleted file mode 100644
index e47eb3d..0000000
--- a/libc/arch-sh/syscalls/madvise.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type madvise, @function
- .globl madvise
- .align 4
-
-madvise:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_madvise_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_madvise_end:
- rts
- nop
-
- .align 2
-0: .long __NR_madvise
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/mincore.S b/libc/arch-sh/syscalls/mincore.S
deleted file mode 100644
index 3803358..0000000
--- a/libc/arch-sh/syscalls/mincore.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type mincore, @function
- .globl mincore
- .align 4
-
-mincore:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_mincore_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_mincore_end:
- rts
- nop
-
- .align 2
-0: .long __NR_mincore
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/mkdir.S b/libc/arch-sh/syscalls/mkdir.S
deleted file mode 100644
index f40068a..0000000
--- a/libc/arch-sh/syscalls/mkdir.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type mkdir, @function
- .globl mkdir
- .align 4
-
-mkdir:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_mkdir_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_mkdir_end:
- rts
- nop
-
- .align 2
-0: .long __NR_mkdir
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/mkdirat.S b/libc/arch-sh/syscalls/mkdirat.S
deleted file mode 100644
index e3506f8..0000000
--- a/libc/arch-sh/syscalls/mkdirat.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type mkdirat, @function
- .globl mkdirat
- .align 4
-
-mkdirat:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_mkdirat_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_mkdirat_end:
- rts
- nop
-
- .align 2
-0: .long __NR_mkdirat
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/mknod.S b/libc/arch-sh/syscalls/mknod.S
deleted file mode 100644
index a2ab1ed..0000000
--- a/libc/arch-sh/syscalls/mknod.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type mknod, @function
- .globl mknod
- .align 4
-
-mknod:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_mknod_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_mknod_end:
- rts
- nop
-
- .align 2
-0: .long __NR_mknod
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/mlock.S b/libc/arch-sh/syscalls/mlock.S
deleted file mode 100644
index 2965d75..0000000
--- a/libc/arch-sh/syscalls/mlock.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type mlock, @function
- .globl mlock
- .align 4
-
-mlock:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_mlock_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_mlock_end:
- rts
- nop
-
- .align 2
-0: .long __NR_mlock
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/mount.S b/libc/arch-sh/syscalls/mount.S
deleted file mode 100644
index d8c7c4b..0000000
--- a/libc/arch-sh/syscalls/mount.S
+++ /dev/null
@@ -1,35 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type mount, @function
- .globl mount
- .align 4
-
-mount:
-
- /* get ready for additonal arg */
- mov.l @r15, r0
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(5 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_mount_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_mount_end:
- rts
- nop
-
- .align 2
-0: .long __NR_mount
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/mprotect.S b/libc/arch-sh/syscalls/mprotect.S
deleted file mode 100644
index d8fc96d..0000000
--- a/libc/arch-sh/syscalls/mprotect.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type mprotect, @function
- .globl mprotect
- .align 4
-
-mprotect:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_mprotect_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_mprotect_end:
- rts
- nop
-
- .align 2
-0: .long __NR_mprotect
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/mremap.S b/libc/arch-sh/syscalls/mremap.S
deleted file mode 100644
index d68fffb..0000000
--- a/libc/arch-sh/syscalls/mremap.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type mremap, @function
- .globl mremap
- .align 4
-
-mremap:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(4 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_mremap_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_mremap_end:
- rts
- nop
-
- .align 2
-0: .long __NR_mremap
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/msync.S b/libc/arch-sh/syscalls/msync.S
deleted file mode 100644
index 2b84bdb..0000000
--- a/libc/arch-sh/syscalls/msync.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type msync, @function
- .globl msync
- .align 4
-
-msync:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_msync_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_msync_end:
- rts
- nop
-
- .align 2
-0: .long __NR_msync
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/munlock.S b/libc/arch-sh/syscalls/munlock.S
deleted file mode 100644
index c84c130..0000000
--- a/libc/arch-sh/syscalls/munlock.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type munlock, @function
- .globl munlock
- .align 4
-
-munlock:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_munlock_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_munlock_end:
- rts
- nop
-
- .align 2
-0: .long __NR_munlock
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/munmap.S b/libc/arch-sh/syscalls/munmap.S
deleted file mode 100644
index e338540..0000000
--- a/libc/arch-sh/syscalls/munmap.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type munmap, @function
- .globl munmap
- .align 4
-
-munmap:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_munmap_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_munmap_end:
- rts
- nop
-
- .align 2
-0: .long __NR_munmap
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/nanosleep.S b/libc/arch-sh/syscalls/nanosleep.S
deleted file mode 100644
index 5aec582..0000000
--- a/libc/arch-sh/syscalls/nanosleep.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type nanosleep, @function
- .globl nanosleep
- .align 4
-
-nanosleep:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_nanosleep_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_nanosleep_end:
- rts
- nop
-
- .align 2
-0: .long __NR_nanosleep
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/pause.S b/libc/arch-sh/syscalls/pause.S
deleted file mode 100644
index 23952d5..0000000
--- a/libc/arch-sh/syscalls/pause.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type pause, @function
- .globl pause
- .align 4
-
-pause:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(0 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_pause_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_pause_end:
- rts
- nop
-
- .align 2
-0: .long __NR_pause
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/pipe2.S b/libc/arch-sh/syscalls/pipe2.S
deleted file mode 100644
index f6d9964..0000000
--- a/libc/arch-sh/syscalls/pipe2.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type pipe2, @function
- .globl pipe2
- .align 4
-
-pipe2:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_pipe2_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_pipe2_end:
- rts
- nop
-
- .align 2
-0: .long __NR_pipe2
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/poll.S b/libc/arch-sh/syscalls/poll.S
deleted file mode 100644
index 7080298..0000000
--- a/libc/arch-sh/syscalls/poll.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type poll, @function
- .globl poll
- .align 4
-
-poll:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_poll_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_poll_end:
- rts
- nop
-
- .align 2
-0: .long __NR_poll
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/prctl.S b/libc/arch-sh/syscalls/prctl.S
deleted file mode 100644
index 8c244d4..0000000
--- a/libc/arch-sh/syscalls/prctl.S
+++ /dev/null
@@ -1,35 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type prctl, @function
- .globl prctl
- .align 4
-
-prctl:
-
- /* get ready for additonal arg */
- mov.l @r15, r0
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(5 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_prctl_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_prctl_end:
- rts
- nop
-
- .align 2
-0: .long __NR_prctl
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/pread64.S b/libc/arch-sh/syscalls/pread64.S
deleted file mode 100644
index 702a402..0000000
--- a/libc/arch-sh/syscalls/pread64.S
+++ /dev/null
@@ -1,35 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type pread64, @function
- .globl pread64
- .align 4
-
-pread64:
-
- /* get ready for additonal arg */
- mov.l @r15, r0
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(5 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_pread64_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_pread64_end:
- rts
- nop
-
- .align 2
-0: .long __NR_pread64
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/pwrite64.S b/libc/arch-sh/syscalls/pwrite64.S
deleted file mode 100644
index 3f6c192..0000000
--- a/libc/arch-sh/syscalls/pwrite64.S
+++ /dev/null
@@ -1,35 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type pwrite64, @function
- .globl pwrite64
- .align 4
-
-pwrite64:
-
- /* get ready for additonal arg */
- mov.l @r15, r0
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(5 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_pwrite64_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_pwrite64_end:
- rts
- nop
-
- .align 2
-0: .long __NR_pwrite64
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/read.S b/libc/arch-sh/syscalls/read.S
deleted file mode 100644
index ac9faa1..0000000
--- a/libc/arch-sh/syscalls/read.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type read, @function
- .globl read
- .align 4
-
-read:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_read_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_read_end:
- rts
- nop
-
- .align 2
-0: .long __NR_read
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/readahead.S b/libc/arch-sh/syscalls/readahead.S
deleted file mode 100644
index df64b5f..0000000
--- a/libc/arch-sh/syscalls/readahead.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type readahead, @function
- .globl readahead
- .align 4
-
-readahead:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(4 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_readahead_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_readahead_end:
- rts
- nop
-
- .align 2
-0: .long __NR_readahead
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/readlink.S b/libc/arch-sh/syscalls/readlink.S
deleted file mode 100644
index e27cec7..0000000
--- a/libc/arch-sh/syscalls/readlink.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type readlink, @function
- .globl readlink
- .align 4
-
-readlink:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_readlink_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_readlink_end:
- rts
- nop
-
- .align 2
-0: .long __NR_readlink
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/readv.S b/libc/arch-sh/syscalls/readv.S
deleted file mode 100644
index 2a95ea1..0000000
--- a/libc/arch-sh/syscalls/readv.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type readv, @function
- .globl readv
- .align 4
-
-readv:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_readv_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_readv_end:
- rts
- nop
-
- .align 2
-0: .long __NR_readv
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/removexattr.S b/libc/arch-sh/syscalls/removexattr.S
deleted file mode 100644
index ea71743..0000000
--- a/libc/arch-sh/syscalls/removexattr.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type removexattr, @function
- .globl removexattr
- .align 4
-
-removexattr:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_removexattr_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_removexattr_end:
- rts
- nop
-
- .align 2
-0: .long __NR_removexattr
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/rename.S b/libc/arch-sh/syscalls/rename.S
deleted file mode 100644
index 692f40e..0000000
--- a/libc/arch-sh/syscalls/rename.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type rename, @function
- .globl rename
- .align 4
-
-rename:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_rename_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_rename_end:
- rts
- nop
-
- .align 2
-0: .long __NR_rename
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/renameat.S b/libc/arch-sh/syscalls/renameat.S
deleted file mode 100644
index 0c9360f..0000000
--- a/libc/arch-sh/syscalls/renameat.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type renameat, @function
- .globl renameat
- .align 4
-
-renameat:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(4 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_renameat_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_renameat_end:
- rts
- nop
-
- .align 2
-0: .long __NR_renameat
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/rmdir.S b/libc/arch-sh/syscalls/rmdir.S
deleted file mode 100644
index 124892e..0000000
--- a/libc/arch-sh/syscalls/rmdir.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type rmdir, @function
- .globl rmdir
- .align 4
-
-rmdir:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(1 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_rmdir_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_rmdir_end:
- rts
- nop
-
- .align 2
-0: .long __NR_rmdir
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/sched_get_priority_max.S b/libc/arch-sh/syscalls/sched_get_priority_max.S
deleted file mode 100644
index dd642bf..0000000
--- a/libc/arch-sh/syscalls/sched_get_priority_max.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type sched_get_priority_max, @function
- .globl sched_get_priority_max
- .align 4
-
-sched_get_priority_max:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(1 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_sched_get_priority_max_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_sched_get_priority_max_end:
- rts
- nop
-
- .align 2
-0: .long __NR_sched_get_priority_max
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/sched_get_priority_min.S b/libc/arch-sh/syscalls/sched_get_priority_min.S
deleted file mode 100644
index 069b116..0000000
--- a/libc/arch-sh/syscalls/sched_get_priority_min.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type sched_get_priority_min, @function
- .globl sched_get_priority_min
- .align 4
-
-sched_get_priority_min:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(1 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_sched_get_priority_min_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_sched_get_priority_min_end:
- rts
- nop
-
- .align 2
-0: .long __NR_sched_get_priority_min
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/sched_getparam.S b/libc/arch-sh/syscalls/sched_getparam.S
deleted file mode 100644
index c8417b2..0000000
--- a/libc/arch-sh/syscalls/sched_getparam.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type sched_getparam, @function
- .globl sched_getparam
- .align 4
-
-sched_getparam:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_sched_getparam_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_sched_getparam_end:
- rts
- nop
-
- .align 2
-0: .long __NR_sched_getparam
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/sched_getscheduler.S b/libc/arch-sh/syscalls/sched_getscheduler.S
deleted file mode 100644
index ecd9a6a..0000000
--- a/libc/arch-sh/syscalls/sched_getscheduler.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type sched_getscheduler, @function
- .globl sched_getscheduler
- .align 4
-
-sched_getscheduler:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(1 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_sched_getscheduler_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_sched_getscheduler_end:
- rts
- nop
-
- .align 2
-0: .long __NR_sched_getscheduler
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/sched_rr_get_interval.S b/libc/arch-sh/syscalls/sched_rr_get_interval.S
deleted file mode 100644
index 64d5f69..0000000
--- a/libc/arch-sh/syscalls/sched_rr_get_interval.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type sched_rr_get_interval, @function
- .globl sched_rr_get_interval
- .align 4
-
-sched_rr_get_interval:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_sched_rr_get_interval_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_sched_rr_get_interval_end:
- rts
- nop
-
- .align 2
-0: .long __NR_sched_rr_get_interval
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/sched_setaffinity.S b/libc/arch-sh/syscalls/sched_setaffinity.S
deleted file mode 100644
index 9dda3b4..0000000
--- a/libc/arch-sh/syscalls/sched_setaffinity.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type sched_setaffinity, @function
- .globl sched_setaffinity
- .align 4
-
-sched_setaffinity:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_sched_setaffinity_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_sched_setaffinity_end:
- rts
- nop
-
- .align 2
-0: .long __NR_sched_setaffinity
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/sched_setparam.S b/libc/arch-sh/syscalls/sched_setparam.S
deleted file mode 100644
index f1687ee..0000000
--- a/libc/arch-sh/syscalls/sched_setparam.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type sched_setparam, @function
- .globl sched_setparam
- .align 4
-
-sched_setparam:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_sched_setparam_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_sched_setparam_end:
- rts
- nop
-
- .align 2
-0: .long __NR_sched_setparam
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/sched_setscheduler.S b/libc/arch-sh/syscalls/sched_setscheduler.S
deleted file mode 100644
index 7a6becf..0000000
--- a/libc/arch-sh/syscalls/sched_setscheduler.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type sched_setscheduler, @function
- .globl sched_setscheduler
- .align 4
-
-sched_setscheduler:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_sched_setscheduler_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_sched_setscheduler_end:
- rts
- nop
-
- .align 2
-0: .long __NR_sched_setscheduler
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/sched_yield.S b/libc/arch-sh/syscalls/sched_yield.S
deleted file mode 100644
index 538f487..0000000
--- a/libc/arch-sh/syscalls/sched_yield.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type sched_yield, @function
- .globl sched_yield
- .align 4
-
-sched_yield:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(1 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_sched_yield_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_sched_yield_end:
- rts
- nop
-
- .align 2
-0: .long __NR_sched_yield
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/select.S b/libc/arch-sh/syscalls/select.S
deleted file mode 100644
index b68f46a..0000000
--- a/libc/arch-sh/syscalls/select.S
+++ /dev/null
@@ -1,35 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type select, @function
- .globl select
- .align 4
-
-select:
-
- /* get ready for additonal arg */
- mov.l @r15, r0
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(5 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR__newselect_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR__newselect_end:
- rts
- nop
-
- .align 2
-0: .long __NR__newselect
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/sendfile.S b/libc/arch-sh/syscalls/sendfile.S
deleted file mode 100644
index 015e433..0000000
--- a/libc/arch-sh/syscalls/sendfile.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type sendfile, @function
- .globl sendfile
- .align 4
-
-sendfile:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(4 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_sendfile_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_sendfile_end:
- rts
- nop
-
- .align 2
-0: .long __NR_sendfile
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/setgid.S b/libc/arch-sh/syscalls/setgid.S
deleted file mode 100644
index 2941fc1..0000000
--- a/libc/arch-sh/syscalls/setgid.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type setgid, @function
- .globl setgid
- .align 4
-
-setgid:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(1 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_setgid32_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_setgid32_end:
- rts
- nop
-
- .align 2
-0: .long __NR_setgid32
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/setgroups.S b/libc/arch-sh/syscalls/setgroups.S
deleted file mode 100644
index 723535d..0000000
--- a/libc/arch-sh/syscalls/setgroups.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type setgroups, @function
- .globl setgroups
- .align 4
-
-setgroups:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_setgroups32_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_setgroups32_end:
- rts
- nop
-
- .align 2
-0: .long __NR_setgroups32
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/setitimer.S b/libc/arch-sh/syscalls/setitimer.S
deleted file mode 100644
index 84f0590..0000000
--- a/libc/arch-sh/syscalls/setitimer.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type setitimer, @function
- .globl setitimer
- .align 4
-
-setitimer:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_setitimer_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_setitimer_end:
- rts
- nop
-
- .align 2
-0: .long __NR_setitimer
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/setpgid.S b/libc/arch-sh/syscalls/setpgid.S
deleted file mode 100644
index 1dd8b33..0000000
--- a/libc/arch-sh/syscalls/setpgid.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type setpgid, @function
- .globl setpgid
- .align 4
-
-setpgid:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_setpgid_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_setpgid_end:
- rts
- nop
-
- .align 2
-0: .long __NR_setpgid
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/setpriority.S b/libc/arch-sh/syscalls/setpriority.S
deleted file mode 100644
index 4f5091f..0000000
--- a/libc/arch-sh/syscalls/setpriority.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type setpriority, @function
- .globl setpriority
- .align 4
-
-setpriority:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_setpriority_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_setpriority_end:
- rts
- nop
-
- .align 2
-0: .long __NR_setpriority
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/setregid.S b/libc/arch-sh/syscalls/setregid.S
deleted file mode 100644
index 695f231..0000000
--- a/libc/arch-sh/syscalls/setregid.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type setregid, @function
- .globl setregid
- .align 4
-
-setregid:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_setregid32_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_setregid32_end:
- rts
- nop
-
- .align 2
-0: .long __NR_setregid32
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/setresgid.S b/libc/arch-sh/syscalls/setresgid.S
deleted file mode 100644
index 867cbc1..0000000
--- a/libc/arch-sh/syscalls/setresgid.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type setresgid, @function
- .globl setresgid
- .align 4
-
-setresgid:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_setresgid32_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_setresgid32_end:
- rts
- nop
-
- .align 2
-0: .long __NR_setresgid32
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/setrlimit.S b/libc/arch-sh/syscalls/setrlimit.S
deleted file mode 100644
index 73fe89f..0000000
--- a/libc/arch-sh/syscalls/setrlimit.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type setrlimit, @function
- .globl setrlimit
- .align 4
-
-setrlimit:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_setrlimit_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_setrlimit_end:
- rts
- nop
-
- .align 2
-0: .long __NR_setrlimit
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/setsid.S b/libc/arch-sh/syscalls/setsid.S
deleted file mode 100644
index fa7fc66..0000000
--- a/libc/arch-sh/syscalls/setsid.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type setsid, @function
- .globl setsid
- .align 4
-
-setsid:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(0 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_setsid_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_setsid_end:
- rts
- nop
-
- .align 2
-0: .long __NR_setsid
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/settimeofday.S b/libc/arch-sh/syscalls/settimeofday.S
deleted file mode 100644
index 0a38b60..0000000
--- a/libc/arch-sh/syscalls/settimeofday.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type settimeofday, @function
- .globl settimeofday
- .align 4
-
-settimeofday:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_settimeofday_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_settimeofday_end:
- rts
- nop
-
- .align 2
-0: .long __NR_settimeofday
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/setxattr.S b/libc/arch-sh/syscalls/setxattr.S
deleted file mode 100644
index abef6b6..0000000
--- a/libc/arch-sh/syscalls/setxattr.S
+++ /dev/null
@@ -1,35 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type setxattr, @function
- .globl setxattr
- .align 4
-
-setxattr:
-
- /* get ready for additonal arg */
- mov.l @r15, r0
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(5 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_setxattr_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_setxattr_end:
- rts
- nop
-
- .align 2
-0: .long __NR_setxattr
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/sigaction.S b/libc/arch-sh/syscalls/sigaction.S
deleted file mode 100644
index f1dd824..0000000
--- a/libc/arch-sh/syscalls/sigaction.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type sigaction, @function
- .globl sigaction
- .align 4
-
-sigaction:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_sigaction_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_sigaction_end:
- rts
- nop
-
- .align 2
-0: .long __NR_sigaction
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/sigaltstack.S b/libc/arch-sh/syscalls/sigaltstack.S
deleted file mode 100644
index 8b03e27..0000000
--- a/libc/arch-sh/syscalls/sigaltstack.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type sigaltstack, @function
- .globl sigaltstack
- .align 4
-
-sigaltstack:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_sigaltstack_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_sigaltstack_end:
- rts
- nop
-
- .align 2
-0: .long __NR_sigaltstack
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/sigpending.S b/libc/arch-sh/syscalls/sigpending.S
deleted file mode 100644
index 75e479c..0000000
--- a/libc/arch-sh/syscalls/sigpending.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type sigpending, @function
- .globl sigpending
- .align 4
-
-sigpending:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(1 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_sigpending_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_sigpending_end:
- rts
- nop
-
- .align 2
-0: .long __NR_sigpending
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/sigprocmask.S b/libc/arch-sh/syscalls/sigprocmask.S
deleted file mode 100644
index efa40ea..0000000
--- a/libc/arch-sh/syscalls/sigprocmask.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type sigprocmask, @function
- .globl sigprocmask
- .align 4
-
-sigprocmask:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_sigprocmask_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_sigprocmask_end:
- rts
- nop
-
- .align 2
-0: .long __NR_sigprocmask
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/stat.S b/libc/arch-sh/syscalls/stat.S
deleted file mode 100644
index aedd57d..0000000
--- a/libc/arch-sh/syscalls/stat.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type stat, @function
- .globl stat
- .align 4
-
-stat:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_stat64_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_stat64_end:
- rts
- nop
-
- .align 2
-0: .long __NR_stat64
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/symlink.S b/libc/arch-sh/syscalls/symlink.S
deleted file mode 100644
index d5ccc46..0000000
--- a/libc/arch-sh/syscalls/symlink.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type symlink, @function
- .globl symlink
- .align 4
-
-symlink:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_symlink_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_symlink_end:
- rts
- nop
-
- .align 2
-0: .long __NR_symlink
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/sync.S b/libc/arch-sh/syscalls/sync.S
deleted file mode 100644
index a8c0646..0000000
--- a/libc/arch-sh/syscalls/sync.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type sync, @function
- .globl sync
- .align 4
-
-sync:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(1 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_sync_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_sync_end:
- rts
- nop
-
- .align 2
-0: .long __NR_sync
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/sysinfo.S b/libc/arch-sh/syscalls/sysinfo.S
deleted file mode 100644
index ae042ab..0000000
--- a/libc/arch-sh/syscalls/sysinfo.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type sysinfo, @function
- .globl sysinfo
- .align 4
-
-sysinfo:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(1 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_sysinfo_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_sysinfo_end:
- rts
- nop
-
- .align 2
-0: .long __NR_sysinfo
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/times.S b/libc/arch-sh/syscalls/times.S
deleted file mode 100644
index 079e098..0000000
--- a/libc/arch-sh/syscalls/times.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type times, @function
- .globl times
- .align 4
-
-times:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(1 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_times_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_times_end:
- rts
- nop
-
- .align 2
-0: .long __NR_times
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/tkill.S b/libc/arch-sh/syscalls/tkill.S
deleted file mode 100644
index b6fe2a3..0000000
--- a/libc/arch-sh/syscalls/tkill.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type tkill, @function
- .globl tkill
- .align 4
-
-tkill:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_tkill_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_tkill_end:
- rts
- nop
-
- .align 2
-0: .long __NR_tkill
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/truncate.S b/libc/arch-sh/syscalls/truncate.S
deleted file mode 100644
index dc08fcc..0000000
--- a/libc/arch-sh/syscalls/truncate.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type truncate, @function
- .globl truncate
- .align 4
-
-truncate:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_truncate_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_truncate_end:
- rts
- nop
-
- .align 2
-0: .long __NR_truncate
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/umask.S b/libc/arch-sh/syscalls/umask.S
deleted file mode 100644
index 7575a1c..0000000
--- a/libc/arch-sh/syscalls/umask.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type umask, @function
- .globl umask
- .align 4
-
-umask:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(1 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_umask_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_umask_end:
- rts
- nop
-
- .align 2
-0: .long __NR_umask
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/umount2.S b/libc/arch-sh/syscalls/umount2.S
deleted file mode 100644
index 06a11da..0000000
--- a/libc/arch-sh/syscalls/umount2.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type umount2, @function
- .globl umount2
- .align 4
-
-umount2:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_umount2_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_umount2_end:
- rts
- nop
-
- .align 2
-0: .long __NR_umount2
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/uname.S b/libc/arch-sh/syscalls/uname.S
deleted file mode 100644
index 755c9de..0000000
--- a/libc/arch-sh/syscalls/uname.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type uname, @function
- .globl uname
- .align 4
-
-uname:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(1 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_uname_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_uname_end:
- rts
- nop
-
- .align 2
-0: .long __NR_uname
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/unlink.S b/libc/arch-sh/syscalls/unlink.S
deleted file mode 100644
index 453d58a..0000000
--- a/libc/arch-sh/syscalls/unlink.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type unlink, @function
- .globl unlink
- .align 4
-
-unlink:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(1 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_unlink_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_unlink_end:
- rts
- nop
-
- .align 2
-0: .long __NR_unlink
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/unlinkat.S b/libc/arch-sh/syscalls/unlinkat.S
deleted file mode 100644
index 7a448a3..0000000
--- a/libc/arch-sh/syscalls/unlinkat.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type unlinkat, @function
- .globl unlinkat
- .align 4
-
-unlinkat:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_unlinkat_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_unlinkat_end:
- rts
- nop
-
- .align 2
-0: .long __NR_unlinkat
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/utimensat.S b/libc/arch-sh/syscalls/utimensat.S
deleted file mode 100644
index 28e7ec6..0000000
--- a/libc/arch-sh/syscalls/utimensat.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type utimensat, @function
- .globl utimensat
- .align 4
-
-utimensat:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(4 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_utimensat_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_utimensat_end:
- rts
- nop
-
- .align 2
-0: .long __NR_utimensat
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/utimes.S b/libc/arch-sh/syscalls/utimes.S
deleted file mode 100644
index fecaa66..0000000
--- a/libc/arch-sh/syscalls/utimes.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type utimes, @function
- .globl utimes
- .align 4
-
-utimes:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(2 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_utimes_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_utimes_end:
- rts
- nop
-
- .align 2
-0: .long __NR_utimes
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/vfork.S b/libc/arch-sh/syscalls/vfork.S
deleted file mode 100644
index 2a2c78b..0000000
--- a/libc/arch-sh/syscalls/vfork.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type vfork, @function
- .globl vfork
- .align 4
-
-vfork:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(1 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_vfork_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_vfork_end:
- rts
- nop
-
- .align 2
-0: .long __NR_vfork
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/write.S b/libc/arch-sh/syscalls/write.S
deleted file mode 100644
index 71c6ea8..0000000
--- a/libc/arch-sh/syscalls/write.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type write, @function
- .globl write
- .align 4
-
-write:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_write_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_write_end:
- rts
- nop
-
- .align 2
-0: .long __NR_write
-1: .long __set_syscall_errno
diff --git a/libc/arch-sh/syscalls/writev.S b/libc/arch-sh/syscalls/writev.S
deleted file mode 100644
index 518ae28..0000000
--- a/libc/arch-sh/syscalls/writev.S
+++ /dev/null
@@ -1,32 +0,0 @@
-/* autogenerated by gensyscalls.py */
-#include <sys/linux-syscalls.h>
-
- .text
- .type writev, @function
- .globl writev
- .align 4
-
-writev:
-
- /* invoke trap */
- mov.l 0f, r3 /* trap num */
- trapa #(3 + 0x10)
-
- /* check return value */
- cmp/pz r0
- bt __NR_writev_end
-
- /* keep error number */
- sts.l pr, @-r15
- mov.l 1f, r1
- jsr @r1
- mov r0, r4
- lds.l @r15+, pr
-
-__NR_writev_end:
- rts
- nop
-
- .align 2
-0: .long __NR_writev
-1: .long __set_syscall_errno