From: Michael Gernoth Date: Wed, 25 May 2011 07:29:56 +0000 (+0200) Subject: hardcode restart_prepare address again X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/ms2-kexec/commitdiff_plain/37bd435c064ca052fbd3a5772e48f0126a1a5c7b?ds=sidebyside hardcode restart_prepare address again --- diff --git a/sys.c b/sys.c index e631609..e01c432 100644 --- a/sys.c +++ b/sys.c @@ -59,7 +59,9 @@ BLOCKING_NOTIFIER_HEAD(notifier_head); void kernel_restart_prepare(char *cmd) { - void (*original_kernel_restart_prepare)(char *) = (void (*)(char *))KERNEL_RESTART_PREPARE; +#warning assuming kernel_restart_prepare is at 0xc00779cc + void (*original_kernel_restart_prepare)(char *) = (void (*)(char *))0xc00779cc; + //void (*original_kernel_restart_prepare)(char *) = (void (*)(char *))KERNEL_RESTART_PREPARE; return original_kernel_restart_prepare(cmd); #if 0 register_reboot_notifier(&dummy_notifier_reboot);