[syslinux] [PATCH 1/1] mboot.c32: fix register constraints bug (more cleanly)
H. Peter Anvin
hpa at zytor.com
Wed May 24 17:19:15 PDT 2006
Geert Stappers wrote:
> On Wed, May 24, 2006 at 05:40:50PM +0100, Tim Deegan wrote:
>> --- syslinux-3.20-pre8/com32/modules/mboot.c.orig 2006-05-22 11:06:17.000000000 +0100
>> +++ syslinux-3.20-pre8/com32/modules/mboot.c 2006-05-24 17:34:47.000000000 +0100
>> - asm volatile(
>> - "movl %0, %%ebx;"
>> - "movl $0x2badb002, %%eax;"
>> - "jmp *%1"
>> - : : "m" (mbi_run_addr), "r" (entry));
>> + asm volatile ("jmp *%2"
>> + : : "a" (0x2badb002), "b" (mbi_run_addr), "cdSD" (entry));
>
> Why is the original 'jmp *%1' and the modified 'jmp *%2' ?
> (I would expect that both where '%1' )
>
%2 is correct, since "entry" is now the third argument.
-hpa
More information about the Syslinux
mailing list