Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2006-06-06 00:15:23 +0400
committerJeff Johnston <jjohnstn@redhat.com>2006-06-06 00:15:23 +0400
commit986b5d2246db33a33c97316238c89d12dee01b5e (patch)
treef7a367e15bab087d08f5f90d1a8b42905b008a1a /libgloss/arm
parent9eedc2e624ffdaec11d8ec455b3f4c2ab02eca39 (diff)
2006-06-05 Shaun Jackman <sjackman@gmail.com>
* arm/linux-syscalls0.S (reboot): Remove. * arm/linux-syscalls1.c (reboot): New function.
Diffstat (limited to 'libgloss/arm')
-rw-r--r--libgloss/arm/linux-syscalls0.S1
-rw-r--r--libgloss/arm/linux-syscalls1.c7
2 files changed, 7 insertions, 1 deletions
diff --git a/libgloss/arm/linux-syscalls0.S b/libgloss/arm/linux-syscalls0.S
index aae861458..2562f4e39 100644
--- a/libgloss/arm/linux-syscalls0.S
+++ b/libgloss/arm/linux-syscalls0.S
@@ -143,7 +143,6 @@ ALIAS(mkdir)
ALIAS(mknod)
ALIAS(nanosleep)
ALIAS(readlink)
-ALIAS(reboot)
ALIAS(rmdir)
ALIAS(select)
ALIAS(stime)
diff --git a/libgloss/arm/linux-syscalls1.c b/libgloss/arm/linux-syscalls1.c
index 5a94a9e53..a196352b5 100644
--- a/libgloss/arm/linux-syscalls1.c
+++ b/libgloss/arm/linux-syscalls1.c
@@ -62,3 +62,10 @@ pid_t waitpid(pid_t pid, int *status, int options)
{
return wait4(pid, status, options, NULL);
}
+
+extern int _reboot(int magic, int magic2, int flag, void *arg);
+
+int reboot(int flag)
+{
+ return _reboot(0xfee1dead, 0x28121969, flag, NULL);
+}