From 76b7ce1b4f9828baf75c68eb54773b53825a4604 Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Wed, 25 May 2011 10:18:10 +0200 Subject: [PATCH] don't shut down devices, still doesn't work on MS2 even with more ATAGS --- sys.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys.c b/sys.c index e01c432..d637180 100644 --- 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); -- 2.39.2