x86: Remap GDT tables in the fixmap section
[sfrench/cifs-2.6.git] / arch / x86 / kernel / apm_32.c
index 5a414545e8a39001a1679b40012adad2ac908d7b..446b0d3d4932fbe30f6d067cfd09bf65a5ac6709 100644 (file)
@@ -609,7 +609,7 @@ static long __apm_bios_call(void *_call)
 
        cpu = get_cpu();
        BUG_ON(cpu != 0);
-       gdt = get_cpu_gdt_table(cpu);
+       gdt = get_cpu_gdt_rw(cpu);
        save_desc_40 = gdt[0x40 / 8];
        gdt[0x40 / 8] = bad_bios_desc;
 
@@ -685,7 +685,7 @@ static long __apm_bios_call_simple(void *_call)
 
        cpu = get_cpu();
        BUG_ON(cpu != 0);
-       gdt = get_cpu_gdt_table(cpu);
+       gdt = get_cpu_gdt_rw(cpu);
        save_desc_40 = gdt[0x40 / 8];
        gdt[0x40 / 8] = bad_bios_desc;
 
@@ -2352,7 +2352,7 @@ static int __init apm_init(void)
         * Note we only set APM segments on CPU zero, since we pin the APM
         * code to that CPU.
         */
-       gdt = get_cpu_gdt_table(0);
+       gdt = get_cpu_gdt_rw(0);
        set_desc_base(&gdt[APM_CS >> 3],
                 (unsigned long)__va((unsigned long)apm_info.bios.cseg << 4));
        set_desc_base(&gdt[APM_CS_16 >> 3],