From 37bd435c064ca052fbd3a5772e48f0126a1a5c7b Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Wed, 25 May 2011 09:29:56 +0200 Subject: [PATCH] hardcode restart_prepare address again --- sys.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.39.5