kboot: Use #defines for magic reboot constants
Sponsored by: Netflix
This commit is contained in:
parent
8138a766b0
commit
8fa9263f67
@ -157,8 +157,8 @@ ppc64_elf_exec(struct preloaded_file *fp)
|
||||
if (error != 0)
|
||||
panic("kexec_load returned error: %d", error);
|
||||
|
||||
error = host_reboot(0xfee1dead, 672274793,
|
||||
0x45584543 /* LINUX_REBOOT_CMD_KEXEC */, (uintptr_t)NULL);
|
||||
error = host_reboot(HOST_REBOOT_MAGIC1, HOST_REBOOT_MAGIC2, HOST_REBOOT_CMD_KEXEC,
|
||||
(uintptr_t)NULL);
|
||||
if (error != 0)
|
||||
panic("reboot returned error: %d", error);
|
||||
|
||||
|
@ -91,6 +91,10 @@ struct host_timeval {
|
||||
/* Mount flags from uapi */
|
||||
#define MS_RELATIME (1 << 21)
|
||||
|
||||
#define HOST_REBOOT_MAGIC1 0xfee1dead
|
||||
#define HOST_REBOOT_MAGIC2 672274793
|
||||
#define HOST_REBOOT_CMD_KEXEC 0x45584543
|
||||
|
||||
/*
|
||||
* System Calls
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user