RE: [patch] Fix GDT re-load on ACPI resume

Li, Shaohua
2004-11-18T02:29:27Z

>> > movw _0x0e00 + 'i', %fs:(0x12)
>> >
>> > # need a gdt
>> >+ .byte 0x66 # force 32-bit operands in case
>> >+ # the GDT is past 16 megabytes
>> > lgdt real_save_gdt - wakeup_code
>> >
>> > movl real_save_cr0 - wakeup_code, %eax
>> There is a patch from hiroit@mcn.ne.jp to fix the GDT issue. You can
try
>> it.
>
>Well, replacing lgdt with lgdtl (above) seems like nicer solution than
>attachment...
Copy GDT to low mem seems safer. Now the GDT table is in per-cpu region,
possibly it's not in low memory. Or am I missing anything?

Shaohua