[PATCH 2/2] add RB_KEXEC definition

maximilian attems max@stro.at
Wed May 23 10:10:00 GMT 2012


After kexec_load() one has to reboot into new linux.

---
 ChangeLog                            |    1 +
 sysdeps/unix/sysv/linux/sys/reboot.h |    3 +++
 2 files changed, 4 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 60dac56..e097990 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
             Andreas Jaeger <aj@suse.com>
 	* sysdeps/unix/sysv/linux/syscalls.list: Add kexec_load syscall.
 	* sysdeps/unix/sysv/linux/sys/kexec.h: New file.
+	* sysdeps/unix/sysv/linux/sys/reboot.h: Add kexec definition.
 
 2012-05-22  Roland McGrath  <roland@hack.frob.com>
 
diff --git a/sysdeps/unix/sysv/linux/sys/reboot.h b/sysdeps/unix/sysv/linux/sys/reboot.h
index bc685ae..5677718 100644
--- a/sysdeps/unix/sysv/linux/sys/reboot.h
+++ b/sysdeps/unix/sysv/linux/sys/reboot.h
@@ -38,6 +38,9 @@
 /* Stop system and switch power off if possible.  */
 #define RB_POWER_OFF	0x4321fedc
 
+/* Reboot system into new kernel */
+#define RB_KEXEC	0x45584543
+
 __BEGIN_DECLS
 
 /* Reboot or halt the system.  */
-- 
1.7.10



More information about the Libc-alpha mailing list