search for: bad_bios_area

Displaying 6 results from an estimated 6 matches for "bad_bios_area".

2007 Apr 18
2
[PATCH 4/21] i386 Broken bios common
...BIOS data area at 0x400 is commonly accessed from broken + * BIOS using real mode selector 0x40. We cached the bogus BIOS segment + * descriptor in a spare entry and fix it up at boot. + */ +#define GDT_ENTRY_BAD_BIOS_CACHE 4 +#define GDT_ENTRY_BAD_BIOS (0x40 >> 3) +#define BAD_BIOS_AREA (0x400) + /* The PnP BIOS entries in the GDT */ #define GDT_ENTRY_PNPBIOS_CS32 (GDT_ENTRY_PNPBIOS_BASE + 0) #define GDT_ENTRY_PNPBIOS_CS16 (GDT_ENTRY_PNPBIOS_BASE + 1) Index: linux-2.6.14-zach-work/arch/i386/kernel/head.S =======================================================...
2007 Apr 18
2
[PATCH 4/21] i386 Broken bios common
...BIOS data area at 0x400 is commonly accessed from broken + * BIOS using real mode selector 0x40. We cached the bogus BIOS segment + * descriptor in a spare entry and fix it up at boot. + */ +#define GDT_ENTRY_BAD_BIOS_CACHE 4 +#define GDT_ENTRY_BAD_BIOS (0x40 >> 3) +#define BAD_BIOS_AREA (0x400) + /* The PnP BIOS entries in the GDT */ #define GDT_ENTRY_PNPBIOS_CS32 (GDT_ENTRY_PNPBIOS_BASE + 0) #define GDT_ENTRY_PNPBIOS_CS16 (GDT_ENTRY_PNPBIOS_BASE + 1) Index: linux-2.6.14-zach-work/arch/i386/kernel/head.S =======================================================...
2007 Apr 18
3
[PATCH 12/21] i386 Deprecate descriptor asm
...+ linux-2.6.14-zach-work/arch/i386/kernel/cpu/common.c 2005-11-05 00:28:07.000000000 -0800 @@ -604,7 +604,7 @@ void __devinit cpu_init(void) * even though they are called in protected mode. The limit is * preset, we hardwire the base here. */ - set_base(gdt[GDT_ENTRY_BAD_BIOS_CACHE], __va(BAD_BIOS_AREA)); + set_base(&gdt[GDT_ENTRY_BAD_BIOS_CACHE], __va(BAD_BIOS_AREA)); /* Set up GDT entry for 16bit stack */ prepare_protected_segment(cpu, GDT_ENTRY_ESPFIX_SS, (void *) stk16_off, Index: linux-2.6.14-zach-work/arch/i386/mm/fault.c ===========================================================...
2007 Apr 18
3
[PATCH 12/21] i386 Deprecate descriptor asm
...+ linux-2.6.14-zach-work/arch/i386/kernel/cpu/common.c 2005-11-05 00:28:07.000000000 -0800 @@ -604,7 +604,7 @@ void __devinit cpu_init(void) * even though they are called in protected mode. The limit is * preset, we hardwire the base here. */ - set_base(gdt[GDT_ENTRY_BAD_BIOS_CACHE], __va(BAD_BIOS_AREA)); + set_base(&gdt[GDT_ENTRY_BAD_BIOS_CACHE], __va(BAD_BIOS_AREA)); /* Set up GDT entry for 16bit stack */ prepare_protected_segment(cpu, GDT_ENTRY_ESPFIX_SS, (void *) stk16_off, Index: linux-2.6.14-zach-work/arch/i386/mm/fault.c ===========================================================...
2007 Apr 18
0
[PATCH 10/21] i386 Use protected segment for 16bit stack
...========== --- linux-2.6.14-zach-work.orig/arch/i386/kernel/cpu/common.c 2005-11-04 16:54:45.000000000 -0800 +++ linux-2.6.14-zach-work/arch/i386/kernel/cpu/common.c 2005-11-05 00:28:08.000000000 -0800 @@ -607,10 +607,8 @@ void __devinit cpu_init(void) set_base(gdt[GDT_ENTRY_BAD_BIOS_CACHE], __va(BAD_BIOS_AREA)); /* Set up GDT entry for 16bit stack */ - *(__u64 *)(&gdt[GDT_ENTRY_ESPFIX_SS]) |= - ((((__u64)stk16_off) << 16) & 0x000000ffffff0000ULL) | - ((((__u64)stk16_off) << 32) & 0xff00000000000000ULL) | - (CPU_16BIT_STACK_SIZE - 1); + prepare_protected_segment(cpu, GDT_E...
2007 Apr 18
0
[PATCH 10/21] i386 Use protected segment for 16bit stack
...========== --- linux-2.6.14-zach-work.orig/arch/i386/kernel/cpu/common.c 2005-11-04 16:54:45.000000000 -0800 +++ linux-2.6.14-zach-work/arch/i386/kernel/cpu/common.c 2005-11-05 00:28:08.000000000 -0800 @@ -607,10 +607,8 @@ void __devinit cpu_init(void) set_base(gdt[GDT_ENTRY_BAD_BIOS_CACHE], __va(BAD_BIOS_AREA)); /* Set up GDT entry for 16bit stack */ - *(__u64 *)(&gdt[GDT_ENTRY_ESPFIX_SS]) |= - ((((__u64)stk16_off) << 16) & 0x000000ffffff0000ULL) | - ((((__u64)stk16_off) << 32) & 0xff00000000000000ULL) | - (CPU_16BIT_STACK_SIZE - 1); + prepare_protected_segment(cpu, GDT_E...