Commit 36c4fd23 authored by Committed by Linus TorvaldsBrowse files
[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 <firstname.lastname@example.org> Signed-off-by: Linus Torvalds <email@example.com>
Showing with 16 additions and 18 deletions