2003-08-17 11:34:08

by J.A. Magallon

[permalink] [raw]
Subject: no_idt update for 2.4

Hi...

As I tend to collect things that make gcc-3.3 happy witgh 2.4, here is
the backport of the no_idt change to 2.4.22-rc2. On time for final ?

TIA

--- linux-2.4.22-rc2/arch/i386/kernel/process.c.orig 2003-08-17
12:58:47.000000000 +0200
+++ linux-2.4.22-rc2/arch/i386/kernel/process.c 2003-08-17
13:01:41.000000000 +0200
@@ -151,7 +151,6 @@

__setup("idle=", idle_setup);

-static long no_idt[2];
static int reboot_mode;
int reboot_thru_bios;

@@ -222,7 +221,8 @@
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.


--
J.A. Magallon <[email protected]> \ Software is like sex:
werewolf.able.es \ It's better when it's free
Mandrake Linux release 9.2 (Cooker) for i586
Linux 2.4.22-rc2-jam1m (gcc 3.3.1 (Mandrake Linux 9.2 3.3.1-1mdk))