Message ID | 20180926215520.87168-12-sjg@chromium.org |
---|---|
State | Superseded |
Delegated to: | Tom Rini |
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; dmarc=fail (p=none dis=none) header.from=chromium.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 42LBct3SwZz9s2P for <incoming@patchwork.ozlabs.org>; Thu, 27 Sep 2018 07:57:34 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 1AE3CC21EA7; Wed, 26 Sep 2018 21:56:53 +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_H2 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 BA84AC21DD9; Wed, 26 Sep 2018 21:56:50 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 63A4FC21DFD; Wed, 26 Sep 2018 21:56:42 +0000 (UTC) Received: from mail-qk1-f202.google.com (mail-qk1-f202.google.com [209.85.222.202]) by lists.denx.de (Postfix) with ESMTPS id A3F2FC21E62 for <u-boot@lists.denx.de>; Wed, 26 Sep 2018 21:55:47 +0000 (UTC) Received: by mail-qk1-f202.google.com with SMTP id c22-v6so548861qkb.18 for <u-boot@lists.denx.de>; Wed, 26 Sep 2018 14:55:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=5FoXLbL2/Vu5255NhR6nI7HGX4JHXsLGPBjixtUgqsY=; b=hB5GWoiJYLR4C6YARy44PPfjS9kFdnqEyRX8YwqOV073YEptuTyYYd/ZAErztIAL6E mF5Sv9i3rOCMEWi428UeHIpi8Oaz4hvWOgDkalDjL+3kuRqZ/2vtkFzbRwYAO6th2Pl1 XvhX0mGq+a06NiQW1aQ8as75HhtWnY8E24+DR12VL7Jk3VbaV3MCSXxLJpRnxv8oUbu2 8Q4V4ZS2teadagQ+TwZfVGT1mWioxWsd8g/W5qM/o5uyXVbSvVMMvcrS+sViowKDrN8K w9PYHluW9LlvKqsUn5lPymQb/0TlCnMwqK7IejZe5LlzQe/ZI6BaLr6B+GQAeOwa4fNK iYPw== X-Gm-Message-State: ABuFfoimxrAEbbdX80J0IdlnU7C3Ejwt93zXAcQuQ9bHpt6qJRn4I7cQ U3KA2sX9DvVWVKlI5A7p2Df5gfw= X-Google-Smtp-Source: ACcGV61q+bWrRBi8V5CErDaX8XzTeo8DjftVlVqngk8UOUTER6c3vUoodm29jLdeJCHnmz4qIyV9+5w= X-Received: by 2002:ac8:592:: with SMTP id a18-v6mr2782886qth.43.1537998946802; Wed, 26 Sep 2018 14:55:46 -0700 (PDT) Date: Wed, 26 Sep 2018 15:55:09 -0600 In-Reply-To: <20180926215520.87168-1-sjg@chromium.org> Message-Id: <20180926215520.87168-12-sjg@chromium.org> Mime-Version: 1.0 References: <20180926215520.87168-1-sjg@chromium.org> X-Mailer: git-send-email 2.19.0.605.g01d371f741-goog From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Marek Vasut <marex@denx.de> Subject: [U-Boot] [PATCH 11/22] spl: Add a comment to spl_set_bd() 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> 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 |
spl: Add features for passing info from SPL to U-Boot proper
|
expand
|
diff --git a/common/spl/spl.c b/common/spl/spl.c index 0f64902b9b0..69e4aca8a58 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -375,6 +375,10 @@ static int spl_common_init(bool setup_malloc) void spl_set_bd(void) { + /* + * NOTE: On some platforms (e.g. x86) bdata may be in flash and not + * writeable. + */ if (!gd->bd) gd->bd = &bdata; }
There is a strange feature to set global_data to a data-section variable early in SPL. This only works if SPL actually has access to SRAM which is not the case on x86, for eaxmple. Add a comment to this effect. Signed-off-by: Simon Glass <sjg@chromium.org> --- common/spl/spl.c | 4 ++++ 1 file changed, 4 insertions(+)