[ipxe-devel] [PATCH] [libprefix] Use correct register for physical address conversion

Michael Brown mcb30 at ipxe.org
Fri Aug 14 15:24:27 UTC 2015


On 12/08/15 11:45, Daniel Pieczko wrote:
>          /* Convert %ds:esi and %es:edi back to physical addresses */
>          xorl    %eax, %eax
> -       movw    %ds, %cx
> +       movw    %ds, %ax
>          shll    $4, %eax
>          addl    %eax, %esi
>          xorl    %eax, %eax
> -       movw    %es, %cx
> +       movw    %es, %ax
>          shll    $4, %eax
>          addl    %eax, %edi

Applied, thanks!

   http://git.ipxe.org/ipxe.git/commitdiff/abd36b9

Given that this affects only code compiled with KEEP_IT_REAL (which 
doesn't work anyway), I have to ask: how did you find this?

Michael



More information about the ipxe-devel mailing list