[U-Boot] [PATCH v2] x86: Add 64-bit setjmp/longjmp implementation

Alexander Graf agraf at suse.de
Thu Jun 14 17:49:57 UTC 2018



> Am 14.06.2018 um 19:15 schrieb Ivan Gorinov <ivan.gorinov at intel.com>:
> 
> On Wed, Jun 13, 2018 at 05:36:26PM -0700, Ivan Gorinov wrote:
> 
>>> But bootefi selftest with your patch leads to an immediate reset of the
>>> qemu-x86_64 board.
>> 
>> Reproduced the qemu-x86_64 reset.
>> The "info registers" command shows CR0.MP = 0.
>> Setting it in 64-bit startup code did not help.
>> I will try to fix that.
>> 
>> On a 64-bit Minnowboard configuration, bootefi works without reset.
> 
> The "bootefi selftest" command works on qemu-x86_64 when $loadaddr is changed:
>  => env set loadaddr 0x10000000
> 
> Another patch "x86: use EFI calling convention for efi_main on x86_64"
> also needs to be applied.
> 
> The self test starts but crashes on 'manage protocols':
> 
>  Tearing down 'graphical output'
>  Tearing down 'graphical output' succeeded
> 
>  Setting up 'manage protocols'
> 
> 
> Same effect with a 64-bit build for Minnowboard.

I see the same with the sandbox patch set I just sent. IIUC sonething goes wrong in varargs handling.

Alex




More information about the U-Boot mailing list