[Lguest] [PATCH 2.4.26-rc6] lguest set \n\t to asm mnemonic
inflo
inflo at web.de
Tue Jan 22 02:40:16 EST 2008
hi,
this patch only sets \n\t at the end of asm mnemonic ,gcc sends each
instruction as a string to as(GAS) and by using the newline/tab we
send correctly formatted lines to the assembler.
If each mnemonic stand on its own line, all must be enclosed into " " ,
or gcc (4.2.1) will complain.
Signed-off-by: florian könig <inflo at web.de>
--- a/drivers/lguest/x86/core.c 2008-01-13 02:10:30.000000000 +0100
+++ b/drivers/lguest/x86/core.c 2008-01-21 16:15:34.000000000 +0100
@@ -153,7 +153,8 @@
* The lcall also pushes the old code segment (KERNEL_CS) onto
the * stack, then the address of this call. This stack layout
happens to * exactly match the stack layout created by an
interrupt... */ - asm volatile("pushf; lcall *lguest_entry"
+ asm volatile("pushf\n\t"
+ "lcall *lguest_entry\n\t"
/* This is how we tell GCC that %eax ("a") and %ebx ("b")
* are changed by this routine. The "=" means output. */
: "=a"(clobber), "=b"(clobber)
More information about the Lguest
mailing list