]> err.no Git - linux-2.6/commit
[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)
commit36c4fd23cc06f81d68ee968c4c1bf1cebb3dcea5
tree53bbd9c8fef8b84e26e0ae0471eb6c912e7ba553
parente7b47ccaf655cbaf336745a9b65cf7b22a536fca
[PATCH] x86_64 machine_kexec: Cleanup inline assembly.

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>
arch/x86_64/kernel/machine_kexec.c