]> git.zerfleddert.de Git - ms2-kexec/commitdiff
don't shut down devices, still doesn't work on MS2 even with more ATAGS
authorMichael Gernoth <michael@gernoth.net>
Wed, 25 May 2011 08:18:10 +0000 (10:18 +0200)
committerMichael Gernoth <michael@gernoth.net>
Wed, 25 May 2011 08:18:10 +0000 (10:18 +0200)
sys.c

diff --git a/sys.c b/sys.c
index e01c4321d3d61bdcf09d8827c815677891c505fe..d637180ab75dc457ee50938d9d4adbc53ce728a1 100644 (file)
--- a/sys.c
+++ b/sys.c
@@ -46,7 +46,7 @@
 
 extern asmlinkage long (*original_reboot)(int magic1, int magic2, unsigned int cmd, void __user *arg);
 
-#if 0
+#if 1
 static struct notifier_block dummy_notifier_reboot = {
          .notifier_call  = NULL,
          .next           = NULL,
@@ -59,11 +59,12 @@ BLOCKING_NOTIFIER_HEAD(notifier_head);
 
 void kernel_restart_prepare(char *cmd)
 {
+#if 0
 #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
+#else
        register_reboot_notifier(&dummy_notifier_reboot);
        notifier_head.head=dummy_notifier_reboot.next;
        unregister_reboot_notifier(&dummy_notifier_reboot);
Impressum, Datenschutz