Re: [patch] Fix GDT re-load on ACPI resume
From: Maciej W. Rozycki
Date: Mon Nov 15 2004 - 18:27:35 EST
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.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/