This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 2/2] add RB_KEXEC definition
- From: maximilian attems <max at stro dot at>
- To: libc-alpha at sourceware dot org
- Cc: Andreas Jaeger <aj at suse dot com>,maximilian attems <max at stro dot at>
- Date: Wed, 23 May 2012 12:04:22 +0200
- Subject: [PATCH 2/2] add RB_KEXEC definition
- References: <1337767462-27681-1-git-send-email-max@stro.at>
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