X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=arch%2Fx86%2Fkernel%2Freboot_64.c;h=71b13c5f5817dd0d1ffbe2285fe003c11e6ea088;hb=c399da0d97e06803e51085ec076b63a3168aad1b;hp=368db2b9c5ac3977b0ec32edabe2aec9359df6de;hpb=250c22777fe1ccd7ac588579a6c16db4c0161cc5;p=safe%2Fjmp%2Flinux-2.6 diff --git a/arch/x86/kernel/reboot_64.c b/arch/x86/kernel/reboot_64.c index 368db2b..71b13c5 100644 --- a/arch/x86/kernel/reboot_64.c +++ b/arch/x86/kernel/reboot_64.c @@ -11,12 +11,13 @@ #include #include #include +#include #include #include #include #include #include -#include +#include /* * Power off function, if any @@ -136,7 +137,7 @@ void machine_emergency_restart(void) } case BOOT_TRIPLE: - __asm__ __volatile__("lidt (%0)": :"r" (&no_idt)); + load_idt((const struct desc_ptr *)&no_idt); __asm__ __volatile__("int3"); reboot_type = BOOT_KBD;