Message ID | 20171204212832.130100-15-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="gJptXwdN"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3yrJ8H6LZzz9s7f for <incoming@patchwork.ozlabs.org>; Tue, 5 Dec 2017 08:35:43 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 9724CC21DD9; Mon, 4 Dec 2017 21:30:31 +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 3F9FAC2208E; Mon, 4 Dec 2017 21:29:11 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 074F9C21DC1; Mon, 4 Dec 2017 21:28:58 +0000 (UTC) Received: from mail-it0-f67.google.com (mail-it0-f67.google.com [209.85.214.67]) by lists.denx.de (Postfix) with ESMTPS id 897E3C21F8C for <u-boot@lists.denx.de>; Mon, 4 Dec 2017 21:28:54 +0000 (UTC) Received: by mail-it0-f67.google.com with SMTP id r6so10217651itr.3 for <u-boot@lists.denx.de>; Mon, 04 Dec 2017 13:28:54 -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=UKbi6ysPJ9tWuYx+ATSJOPH9hwfia4wB0BT3tMWiDeU=; b=gJptXwdN5dvWwRom52HtX9rtrMyOM24EBdLWYmcapPs6QzZZmET8qc3mS6QOjUQtlN NMFad/jzAjP74TdLL8TYlv0V8hXYuMZk1mFupfk81Kh75bw8bt8zwGveP+j/PUfO0Bg2 6NTQQ9QoF+kKKivzcN6j/vEUbQO3GRb1f1gvzbnpWoTxbrkN+1qbJ+GA4ZBA1ewoB+um YqzbiB3qNhQ9N/Aw9ZKEl5GEwcHsTDAJnQ3YqMncZyXmV/AtJKnBkQ0op4OzLSF+M3l2 Yz9k+uSQy/pmXhQ9xD/78PZsIbLfUzAcMKjiQlVREd6z2v7i/rlC83enV41Z97Zj94wU pl/A== 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=UKbi6ysPJ9tWuYx+ATSJOPH9hwfia4wB0BT3tMWiDeU=; b=Z1MOudGt+a2yfO5UhqUvvSFnPZCu2NoUY/6dwHjhiAZQAg/zHAGJLvjAslId9wQva6 L3xkaAswgWAYbLwib7xLuMMUuZVKU4xjGhsAETb6dS2MfOryVmO1Oyv9yvLZzdydByra kykPbXUdXqjAlV3XHPGnFhuuCE/seHt9gED49KEATsHA02GYGNcUh0cLbOHtVAUQQYiA 0Y3feobIXPrtIAF9Q9rA/cLTZ2MJCACxbNjqsbrDmgk50n5Hr9cErJhbjXn+4qBrzWgw sPu/kPCfNn7x/kWmTDrqrAYDVy7S66ef3tbMJOZQmIQcB4j6bNKZveG/k4v+86yk+OuY VjPQ== X-Gm-Message-State: AKGB3mK+cjgfhDl5p0pxMA+pJXE5HVg6UR6Y5MJ+SUfvvwQJWL2YlBPH YGJdXltRQPHL0Mu4fZENbTAv7A== X-Google-Smtp-Source: AGs4zMbqICVZ4Nz9XFAl+vlNlDwomn0PnVz8cPT59zaKNmauBHWnr9CUX5PfPSS9NHcpj4zJq188cw== X-Received: by 10.36.16.208 with SMTP id 199mr16000901ity.0.1512422933101; Mon, 04 Dec 2017 13:28:53 -0800 (PST) Received: from kiwi.bld.corp.google.com ([100.67.80.24]) by smtp.gmail.com with ESMTPSA id y19sm6456711iod.46.2017.12.04.13.28.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Dec 2017 13:28:52 -0800 (PST) Received: by kiwi.bld.corp.google.com (Postfix, from userid 121222) id 8C7DD143C42; Mon, 4 Dec 2017 14:28:51 -0700 (MST) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Date: Mon, 4 Dec 2017 14:28:30 -0700 Message-Id: <20171204212832.130100-15-sjg@chromium.org> X-Mailer: git-send-email 2.15.0.531.g2ccb3012c9-goog In-Reply-To: <20171204212832.130100-1-sjg@chromium.org> References: <20171204212832.130100-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 v2 14/16] 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 468dc12565..8313e9c4e0 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 v2: None lib/efi_loader/efi_runtime.c | 4 ++++ 1 file changed, 4 insertions(+)