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

Maciej W. Rozycki
2004-11-15T23:26:40Z

On Mon, 15 Nov 2004, Nickolai Zeldovich wrote:

> This simple patch adds the 0x66 prefix to lgdt, which forces it to load
> all 32 bits of the GDT base address, thereby removing any restrictions on
> where the GDT can be placed in memory. This makes ACPI resume work for me
> on a Thinkpad T40 laptop.
[...]
> + .byte 0x66 # force 32-bit operands in case
> + # the GDT is past 16 megabytes
> lgdt real_save_gdt - wakeup_code

You should use "lgdtl" and let gas figure out the rest.

Maciej