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,
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);