Message ID | 1520614531-2164-7-git-send-email-bryan.odonoghue@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp1217427lja; Fri, 9 Mar 2018 09:01:04 -0800 (PST) X-Google-Smtp-Source: AG47ELuFLtSFLNXvcYwAcoZxZx76+TAq+YQ5HV4rUi7Nf8kqcQZFZxpYqNzvGY2A4nCTIpBhJgXz X-Received: by 10.80.205.27 with SMTP id z27mr38737716edi.83.1520614864263; Fri, 09 Mar 2018 09:01:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520614864; cv=none; d=google.com; s=arc-20160816; b=tR+mNsogBmQG0h9bXojuiyvfP3kv8T645Rib35BQJgifexGrZORMlFzLycpC5EAOeA o/aRcx/4x3dWqhkO40h49ZTTcU+VGYYjTW4H9ENen250BXNfYTM86wZ2xzi8GLWAh1um v7H6nIrPp5EgTlCb4AscgebZOPWB0rMOOfbaquwYaKKee/12dQS383TY9p8Gu5HgoXWo mCg9lzE7nDeg8LPlIIkya24ykSy50o3hg9aFvGEvJSr1GVYgXRG0pgVUpYdHXBREpaHG VYZ7+IhOnexzKriiLVHL0IE+gsBWKH/F+xH8CXquSNkIqG1DgXlCKnx+wbBI9zunLr3I obug== 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:references:in-reply-to:message-id :date:to:from:dkim-signature:arc-authentication-results; bh=QaYroxNd3askNKowPokMN25W/t4qBXmwlbEd13MrC2M=; b=vQrsEKkin8bXfxMs5bHnZwWYFGoUMTA/jf4Q86eVrQNA+3qnn1Hm62gW4JUdK+Jm4N eLbOlHLS/mZ+DuD2lDsorgsdKVzraqm6Lq02yb6NE4BfAWAz3c/qa7tuAzlG278AgBm/ dtykonu1Y9YCTsWHzJVV8zvC67T3jVJeHXRvf0K/i8iK2hqO+y+gyOZKZYrNpm7ThqUM u4M2dfYEUoofS0NbU0W7pEoEeWaHcnsqdfhSDif/qhgGaBkNkINrfAYL6Dj48erYm1Ae qEIPHr/i2DUL059WKFgOnYP5iwPdIA+dhH62wSFsTaU81/ERrp9MCeiBJv96iBVqGI6j Ks5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=h77aKelm; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <u-boot-bounces@lists.denx.de> Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id x34si1398191edc.202.2018.03.09.09.01.04; Fri, 09 Mar 2018 09:01:04 -0800 (PST) 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; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=h77aKelm; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id D9661C21DA2; Fri, 9 Mar 2018 16:57:39 +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_DNSWL_BLOCKED, 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 2D698C21E3A; Fri, 9 Mar 2018 16:55:56 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 8BC0CC21DE8; Fri, 9 Mar 2018 16:55:45 +0000 (UTC) Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by lists.denx.de (Postfix) with ESMTPS id 43657C21E1E for <U-Boot@lists.denx.de>; Fri, 9 Mar 2018 16:55:41 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id 188so5061584wme.1 for <U-Boot@lists.denx.de>; Fri, 09 Mar 2018 08:55:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=jd7TJ8ToMThI42VzCdFxxuucXAuvkiPJC/i5sG6S6nU=; b=h77aKelmufce4rnSaK+xAjl63nBri0nmbzHNdCQtUvoMhnNUnmT5D23Md9uvzQsFq3 yH5jJV5lVxBi7UEFzp/nu7PrS5jEyWw16d/QyambwVq4IfA02suOX5uN/g4lXfMeA5ZQ 1B5Xt4o1zjfQ1BlOI/zZAbFq7N7+7UIrT8Vao= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=jd7TJ8ToMThI42VzCdFxxuucXAuvkiPJC/i5sG6S6nU=; b=J42l5deRB5BPquIVpEnaVmtp0WyE+FAAPs5RbWAwu4O6bfk7lmhX0pUZPB0POEqoRx 6V7x25mT4aIbmiGqZikjOTs87ME3ELvPj2QGmkgT//fbzL5QmIarOYxEanhvv8vEBdAC m6H8a4DvHPq9KV8/Rt/2OwfO1YysrT3GYpHvXboKjMvwX4u8zUNkD8cqjB3KlZHSbJOh iCmF0LjiLqEDpXE7RVi9AMVK/hVXQElsnUkPjJwuN0r3n/ITjjJ695RhgChD+zjrXXHR NItRXT3cdJGKIF0lQgXIKElkUuAWf9o6v1b40y6Bm3O5pe+SiFIyZNABwwNrmG6TLf0N zGBg== X-Gm-Message-State: AElRT7FLDDYUeUkQTgzTAQTe9Lhr7svJB96RbNQclFjY+yxXMubekke2 e1+kAMj14XOjq7yKGwQeYXljEUEfEjg= X-Received: by 10.80.160.231 with SMTP id 94mr25372639edo.180.1520614540774; Fri, 09 Mar 2018 08:55:40 -0800 (PST) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id e40sm960335ede.15.2018.03.09.08.55.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 Mar 2018 08:55:40 -0800 (PST) From: Bryan O'Donoghue <bryan.odonoghue@linaro.org> To: U-Boot@lists.denx.de, trini@konsulko.com, afd@ti.com, kever.yang@rock-chips.com, philipp.tomsich@theobroma-systems.com, peng.fan@nxp.com Date: Fri, 9 Mar 2018 16:55:27 +0000 Message-Id: <1520614531-2164-7-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1520614531-2164-1-git-send-email-bryan.odonoghue@linaro.org> References: <1520614531-2164-1-git-send-email-bryan.odonoghue@linaro.org> Cc: Harinarayan Bhatta <harinarayan@ti.com> Subject: [U-Boot] [PATCH v5 06/10] optee: Add optee_image_get_load_addr() 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 |
Add new OPTEE bootm support to u-boot
|
expand
|
diff --git a/include/tee/optee.h b/include/tee/optee.h index eb328d3..e782cb0 100644 --- a/include/tee/optee.h +++ b/include/tee/optee.h @@ -36,6 +36,11 @@ static inline uint32_t optee_image_get_entry_point(const image_header_t *hdr) return optee_hdr->init_load_addr_lo; } +static inline uint32_t optee_image_get_load_addr(const image_header_t *hdr) +{ + return optee_image_get_entry_point(hdr) - sizeof(struct optee_header); +} + #if defined(CONFIG_OPTEE) int optee_verify_image(struct optee_header *hdr, unsigned long tzdram_start, unsigned long tzdram_len, unsigned long image_len);