[PATCH] x86_64 machine_kexec: Cleanup inline assembly.
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 29 Jul 2005 19:02:09 +0000 (13:02 -0600)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 29 Jul 2005 19:17:27 +0000 (12:17 -0700)
In an uncensored copy of code from i386 to x86_64 I wound up
with inline assembly with the wrong constraints.  Use input
constraints instead of output constraints.

So I know the assembler will do the right thing specify the size
of the operand lidtq and lgdtq instead of just lidt and lgdt.

Make load_segments use an input constraint, and delete the macro fun.
Without having to reload %cs like I do on i386 this code is noticeably
simpler.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

No differences found