[PATCH] s-t-RAM: load gdt the right way
authorPavel Machek <pavel@ucw.cz>
Sat, 25 Jun 2005 21:55:09 +0000 (14:55 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 25 Jun 2005 23:24:32 +0000 (16:24 -0700)
Sleep code uses wrong version of lgdt, that does the wrong thing when
gdt is beyond 16MB or so.

Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/x86_64/kernel/acpi/wakeup.S

index a4c630034cd43041f9e10614b040512cc345fa95..185faa911db592b26483bda86a6760a9fd044d63 100644 (file)
@@ -67,7 +67,7 @@ wakeup_code:
        shll    $4, %eax
        addl    $(gdta - wakeup_code), %eax
        movl    %eax, gdt_48a +2 - wakeup_code
-       lgdt    %ds:gdt_48a - wakeup_code               # load gdt with whatever is
+       lgdtl   %ds:gdt_48a - wakeup_code       # load gdt with whatever is
                                                # appropriate
 
        movl    $1, %eax                        # protected mode (PE) bit