From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ivan Gorinov Date: Thu, 14 Jun 2018 10:15:19 -0700 Subject: [U-Boot] [PATCH v2] x86: Add 64-bit setjmp/longjmp implementation In-Reply-To: <20180614003626.GA40478@intel.com> References: <20180606182801.GA35519@intel.com> <6dec0e10-2920-3b9a-2eac-e92590dbcca0@gmx.de> <20180614003626.GA40478@intel.com> Message-ID: <20180614171519.GA53592@intel.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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.