[syslinux] [PATCH 1/1] mboot.c32: fix register constraints bug (more cleanly)

Geert Stappers stappers at stappers.nl
Wed May 24 15:30:37 PDT 2006


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' )

Cheers
Geert Stappers




More information about the Syslinux mailing list