Message ID | 20180219154827.215990-16-sjg@chromium.org |
---|---|
State | Superseded |
Delegated to: | Alexander Graf |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b="HCRrvmlB"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zlSyT2Snxz9ry2 for <incoming@patchwork.ozlabs.org>; Tue, 20 Feb 2018 02:55:45 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id A4981C21E70; Mon, 19 Feb 2018 15:53:43 +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=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID 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 26008C21F24; Mon, 19 Feb 2018 15:49:51 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 7B826C21F45; Mon, 19 Feb 2018 15:49:28 +0000 (UTC) Received: from mail-oi0-f65.google.com (mail-oi0-f65.google.com [209.85.218.65]) by lists.denx.de (Postfix) with ESMTPS id 538CFC21E3A for <u-boot@lists.denx.de>; Mon, 19 Feb 2018 15:49:23 +0000 (UTC) Received: by mail-oi0-f65.google.com with SMTP id t185so2281175oif.6 for <u-boot@lists.denx.de>; Mon, 19 Feb 2018 07:49:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=C3wkv74F6dyWo8uLi2UbTltOLfNu8utDRy+0bsVwf5g=; b=HCRrvmlB5MSuJPCyGjqucpe3DYbSq3g/axReWK9qgZ8JI4puXKk6GIQ6hfmPR0Latc 0MNiWPZayx3LeU3AIudQ9+tNASt4AaNsQSczSe15OeQc/63aIwelJvFk+hbY6GxxwqQU kGMotCcH1sB9E4lELSndPDgkOQ3Zqm6yiutCiZ+4lGDQB6JKUXX1UKCXipLKgHhXzGKx e8Izk9PBx8YqN6FJGARriKxa8sYEZP7IoRLJo9lH5Id39UdjvH9J1LnEpHHGt3Mq6UgW 6WvogAFrcbHsrWcu03RxnL1CRawmPWdxzh+nff6N0Ipg7cIF5Te5RIocWLvnhoG207z7 cnnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=C3wkv74F6dyWo8uLi2UbTltOLfNu8utDRy+0bsVwf5g=; b=leQAUuwKZb/DadGWDvoj/LdjvjEEd28ViuC+63NBMZjmJQKL78vwrNPEIx/LxveqNV jxg3uaiJw2qvnnbZr35S5UrGV8A0ppyPhXN94s6Yv33UYnXnDNPjCyMtnqWwpTSXkrlc QcOEwgOhODcQav8NSqhSvIAC+2bBPknWpo4xafEAH1ibaEQrWIIQmGyc9ug0/xqgIge6 TwRTDRbvZ0v9vVAQJ75igFlp923a59lmstZQ5sx0o2rzLU3MrKGDHpD/NDFFYEqjtDsU Nwr/s6NrRuLjhZ3ZLJUjdXfTVdrsY7F7ckUdDTrYhwxdedELGHBPr/n39lRSjlQhm1bS Dy7Q== X-Gm-Message-State: APf1xPAdcmxPE33t5NihkaH1kJWkTIHW6wqPBhzyRlRqmiB1Tv4VNYCX uAvRDXPm9g9nT98bpNRzdgpfQQ== X-Google-Smtp-Source: AH8x2255E+MzZcB/1LWYtiH4n0Cv4qWH96NylzQJwqJk+H/XAikbb6HIR9bEWKp+h6BpFiwZjoynTg== X-Received: by 10.202.78.145 with SMTP id c139mr2058799oib.47.1519055361758; Mon, 19 Feb 2018 07:49:21 -0800 (PST) Received: from kiwi.bld.corp.google.com ([2620:15c:183:0:e54f:30e5:afd3:54b2]) by smtp.gmail.com with ESMTPSA id y64sm13189907otb.11.2018.02.19.07.49.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Feb 2018 07:49:20 -0800 (PST) Received: by kiwi.bld.corp.google.com (Postfix, from userid 121222) id 6EDF9140794; Mon, 19 Feb 2018 08:49:18 -0700 (MST) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Date: Mon, 19 Feb 2018 08:48:21 -0700 Message-Id: <20180219154827.215990-16-sjg@chromium.org> X-Mailer: git-send-email 2.16.1.291.g4437f3f132-goog In-Reply-To: <20180219154827.215990-1-sjg@chromium.org> References: <20180219154827.215990-1-sjg@chromium.org> Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Heinrich Schuchardt <xypron.glpk@gmx.de>, Alexander Graf <agraf@suse.de> Subject: [U-Boot] [PATCH v3 15/21] efi: Add a comment about duplicated ELF constants X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
Series |
efi: Enable basic sandbox support for EFI loader
|
expand
|
diff --git a/lib/efi_loader/efi_runtime.c b/lib/efi_loader/efi_runtime.c index fbf89c4a49..42b359bbd3 100644 --- a/lib/efi_loader/efi_runtime.c +++ b/lib/efi_loader/efi_runtime.c @@ -37,6 +37,10 @@ static efi_status_t __efi_runtime EFIAPI efi_invalid_parameter(void); #define EFI_CACHELINE_SIZE 128 #endif +/* + * TODO(sjg@chromium.org): These defines and structs should come from the elf. + * header for each arch (or a generic header) rather than being repeated here. + */ #if defined(CONFIG_ARM64) #define R_RELATIVE 1027 #define R_MASK 0xffffffffULL
These constants are defined in arch-specific code but redefined here. Add a TODO to clean this up. Signed-off-by: Simon Glass <sjg@chromium.org> --- Changes in v3: None Changes in v2: None lib/efi_loader/efi_runtime.c | 4 ++++ 1 file changed, 4 insertions(+)