From patchwork Fri Jun 22 12:44:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 139616 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp834143lji; Fri, 22 Jun 2018 05:49:28 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIWrxBhKZMFdDHHYwaVHeJqtesUKjYzIJMJeuuBMICJ9yTtaysCVsltpJOcUA/vgGCsnSc/ X-Received: by 2002:a50:8522:: with SMTP id 31-v6mr1714062edr.299.1529671768432; Fri, 22 Jun 2018 05:49:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529671768; cv=none; d=google.com; s=arc-20160816; b=R4mRP/FX3RIgD2ufN5DIApL/+KousR3aXIPWiN4OtTTV1lLDke8yRay9+gSXL3iiU/ 36+hwjRRxx5s1CQ88utfeYWiPqCYWeIU4lPh4nqZa+tHhC7l+wOMM6gvTRb0QjqsU2sv YJfsTy+isMlR0f/CTGDJXplPTGU7qa9+QX45146saRp6TZgEUAcp+J+OHwreX3xxLJag cf80Cdeduwk2+zXff1kmMK5EocVWmfAfhW9+h62In1e1Xrjsd9lLXtxvmLTo05bqvg+3 yiRViGeeExNdKmrP1ra2RMTLNvDtY0kTDj2TUnt6PZYazf9FIlT4L6aXyiK0DUIWUdDl aF6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from :arc-authentication-results; bh=kQE1prg+uNPClIMtscJ4laJ0yT6tDCE4hG/MObTAtJw=; b=QI8pTcmvbzSflHoHZfTAzX7/kZbaGpn5HuB9h+QiaKMmeNwMaG7kZ36Mk05o8p9rDN N60JyoLVmicXnCmonw3vDqnxDgF00tLV+lCDLC80exh/EsRIsk9Sb7BfObb9rvM8HuHy 7iFHtvSlbFuSADeKtbvzDLaFP7Q5aBSGJ1dXCMjNtG6DIOW1BE4vTwmeJfIe+65A1lHl D06eyXdjBtedSJjP4Id/FtcoaLefgSrcPkY4sCskZuNLfVxkwCv4apagWZ/KllILEPsx A+hZq9Z+jh0JiDuQfwyQM5vCp+QEkEHhtqhhD2AqYU/O3TqSBlE+SEjn974BlvAgL5Bs rlyQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id b57-v6si3665561edd.229.2018.06.22.05.49.28; Fri, 22 Jun 2018 05:49:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id E7282C21F49; Fri, 22 Jun 2018 12:46:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 3A9E3C22051; Fri, 22 Jun 2018 12:44:27 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 70D94C21C2F; Fri, 22 Jun 2018 12:44:20 +0000 (UTC) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by lists.denx.de (Postfix) with ESMTPS id B50BBC21E7E for ; Fri, 22 Jun 2018 12:44:20 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext-too.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id D3821AE0F; Fri, 22 Jun 2018 12:44:19 +0000 (UTC) From: Alexander Graf To: u-boot@lists.denx.de Date: Fri, 22 Jun 2018 14:44:08 +0200 Message-Id: <20180622124418.52892-1-agraf@suse.de> X-Mailer: git-send-email 2.12.3 Cc: Heinrich Schuchardt , Andy Shevchenko Subject: [U-Boot] [PATCH v5 00/10] sandbox: efi_loader support X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This patch set finalized the last remaining bits to get efi_loader working properly in sandbox. It depends on the current efi-next tree to function properly. With this patch set in place, I can successfully run the selftest suite as well as an aarch64 grub.efi and an x86_64 grub.efi binary that has been patched to not directly access port io. I hope this patch set concludes the sandbox efforts and we can finally move on doing productive work. Alex ... -> v4: - changelog dropped, as the scope of the patch set slimmed down v4 -> v5: - drop patches that are applied to efi-next - Replace runtime mprotect() mechanism with mmap() flag - Use system setjmp/longjmp directly from target code - Add Simon's smbios patch and adapt to efi_allocate_pages() - Include Simon's patches for fs_read(), map_to_sysmem(), RAM alignment Alexander Graf (5): efi.h: Do not use config options distro: Move to compiler based target architecture determination efi_loader: Pass address to fs_read() sandbox: Fix setjmp/longjmp sandbox: Allow to execute from RAM Simon Glass (5): sandbox: Align RAM buffer to the machine page size sandbox: smbios: Update to support sandbox sandbox: Add support for calling abort() sandbox: Enhance map_to_sysmem() to handle foreign pointers efi: sandbox: Enable EFI loader for sandbox arch/sandbox/cpu/cpu.c | 153 ++++++++++++++++++++++++++++++++------ arch/sandbox/cpu/os.c | 27 ++----- arch/sandbox/cpu/state.c | 8 ++ arch/sandbox/include/asm/setjmp.h | 5 ++ arch/sandbox/include/asm/state.h | 21 ++++++ include/config_distro_bootcmd.h | 17 +++-- include/efi.h | 24 +++--- include/os.h | 20 +---- lib/efi/Makefile | 4 +- lib/efi_loader/Kconfig | 2 +- lib/efi_loader/efi_file.c | 5 +- lib/efi_loader/efi_smbios.c | 18 ++++- lib/smbios.c | 32 ++++++-- 13 files changed, 241 insertions(+), 95 deletions(-)