Oops.
Cheers,
Shaun
2006-06-01 Shaun Jackman <sjackman@gmail.com>
* arm/linux-syscalls0.S (reboot): Remove.
* arm/linux-syscalls1.c (reboot): New function.
Index: linux-syscalls0.S
===================================================================
RCS file: /cvs/src/src/libgloss/arm/linux-syscalls0.S,v
retrieving revision 1.1
diff -u -r1.1 linux-syscalls0.S
--- linux-syscalls0.S 30 May 2006 17:40:47 -0000 1.1
+++ linux-syscalls0.S 1 Jun 2006 17:26:28 -0000
@@ -143,7 +143,6 @@
ALIAS(mknod)
ALIAS(nanosleep)
ALIAS(readlink)
-ALIAS(reboot)
ALIAS(rmdir)
ALIAS(select)
ALIAS(stime)
Index: linux-syscalls1.c
===================================================================
RCS file: /cvs/src/src/libgloss/arm/linux-syscalls1.c,v
retrieving revision 1.1
diff -u -r1.1 linux-syscalls1.c
--- linux-syscalls1.c 30 May 2006 17:40:47 -0000 1.1
+++ linux-syscalls1.c 1 Jun 2006 17:26:28 -0000
@@ -62,3 +62,10 @@
{
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);
+}
------------------------------------------------------------------------
2006-06-01 Shaun Jackman <sjackman@gmail.com>
* arm/linux-syscalls0.S (reboot): Remove.
* arm/linux-syscalls1.c (reboot): New function.
Index: linux-syscalls0.S
===================================================================
RCS file: /cvs/src/src/libgloss/arm/linux-syscalls0.S,v
retrieving revision 1.1
diff -u -r1.1 linux-syscalls0.S
--- linux-syscalls0.S 30 May 2006 17:40:47 -0000 1.1
+++ linux-syscalls0.S 1 Jun 2006 17:26:28 -0000
@@ -143,7 +143,6 @@
ALIAS(mknod)
ALIAS(nanosleep)
ALIAS(readlink)
-ALIAS(reboot)
ALIAS(rmdir)
ALIAS(select)
ALIAS(stime)
Index: linux-syscalls1.c
===================================================================
RCS file: /cvs/src/src/libgloss/arm/linux-syscalls1.c,v
retrieving revision 1.1
diff -u -r1.1 linux-syscalls1.c
--- linux-syscalls1.c 30 May 2006 17:40:47 -0000 1.1
+++ linux-syscalls1.c 1 Jun 2006 17:26:28 -0000
@@ -62,3 +62,10 @@
{
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);
+}