]> git.zerfleddert.de Git - ms2-kexec/commitdiff
hardcode restart_prepare address again
authorMichael Gernoth <michael@gernoth.net>
Wed, 25 May 2011 07:29:56 +0000 (09:29 +0200)
committerMichael Gernoth <michael@gernoth.net>
Wed, 25 May 2011 07:29:56 +0000 (09:29 +0200)
sys.c

diff --git a/sys.c b/sys.c
index e631609d90cbf9d8a2995959caac530bb780e9eb..e01c4321d3d61bdcf09d8827c815677891c505fe 100644 (file)
--- 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);
Impressum, Datenschutz