Commit 03e4e085 authored by Linus Torvalds's avatar Linus Torvalds

Fix "no_idt" usage in reboot code, noticed by better asm

typechecking in gcc-3.3.1.
parent 4cf24b4c
......@@ -16,7 +16,6 @@
*/
void (*pm_power_off)(void);
static long no_idt[2];
static int reboot_mode;
int reboot_thru_bios;
......@@ -87,7 +86,9 @@ static struct
unsigned long long * base __attribute__ ((packed));
}
real_mode_gdt = { sizeof (real_mode_gdt_entries) - 1, real_mode_gdt_entries },
real_mode_idt = { 0x3ff, 0 };
real_mode_idt = { 0x3ff, 0 },
no_idt = { 0, 0 };
/* This is 16-bit protected mode code to disable paging and the cache,
switch to real mode and jump to the BIOS reset code.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment