diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pnp/pnpbios/bioscalls.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/pnp/pnpbios/bioscalls.c b/drivers/pnp/pnpbios/bioscalls.c index bd035e3d3550..fc83783c3a96 100644 --- a/drivers/pnp/pnpbios/bioscalls.c +++ b/drivers/pnp/pnpbios/bioscalls.c | |||
@@ -60,7 +60,8 @@ do { \ | |||
60 | set_desc_limit(&gdt[(selname) >> 3], (size) - 1); \ | 60 | set_desc_limit(&gdt[(selname) >> 3], (size) - 1); \ |
61 | } while(0) | 61 | } while(0) |
62 | 62 | ||
63 | static struct desc_struct bad_bios_desc = GDT_ENTRY_INIT(0x4092, 0, 0); | 63 | static struct desc_struct bad_bios_desc = GDT_ENTRY_INIT(0x4092, |
64 | (unsigned long)__va(0x400UL), PAGE_SIZE - 0x400 - 1); | ||
64 | 65 | ||
65 | /* | 66 | /* |
66 | * At some point we want to use this stack frame pointer to unwind | 67 | * At some point we want to use this stack frame pointer to unwind |
@@ -476,8 +477,6 @@ void pnpbios_calls_init(union pnp_bios_install_struct *header) | |||
476 | pnp_bios_callpoint.offset = header->fields.pm16offset; | 477 | pnp_bios_callpoint.offset = header->fields.pm16offset; |
477 | pnp_bios_callpoint.segment = PNP_CS16; | 478 | pnp_bios_callpoint.segment = PNP_CS16; |
478 | 479 | ||
479 | set_desc_base(&bad_bios_desc, (unsigned long)__va(0x40UL << 4)); | ||
480 | set_desc_limit(&bad_bios_desc, 4095 - (0x40 << 4)); | ||
481 | for_each_possible_cpu(i) { | 480 | for_each_possible_cpu(i) { |
482 | struct desc_struct *gdt = get_cpu_gdt_table(i); | 481 | struct desc_struct *gdt = get_cpu_gdt_table(i); |
483 | if (!gdt) | 482 | if (!gdt) |