From patchwork Sat Jan 16 21:53:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1427623 X-Patchwork-Delegate: bmeng.cn@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=Z0IbSOzO; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DJBjL6KZtz9s24 for ; Sun, 17 Jan 2021 08:57:10 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AA22182A15; Sat, 16 Jan 2021 22:54:23 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="Z0IbSOzO"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4567A829DC; Sat, 16 Jan 2021 22:54:13 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id ED4A4829C6 for ; Sat, 16 Jan 2021 22:54:08 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd34.google.com with SMTP id q1so25374242ion.8 for ; Sat, 16 Jan 2021 13:54:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=X2n6sglZoDoAbNygKU/4fcq2x++GYhj3JW76w2+rzHQ=; b=Z0IbSOzO2MIZirvexpqFbqrK/B+Cklwt7LnM+jUwuMS0CuVLRtOYO8AbNDGpOsiC1U DA7nPCfrFwrw8q6aNuKc3Bgib/9DS6rt1g9ryrsA0Y4RZIKcCl6CuB0JgcsvmpoOoDe3 ABOFbPMDHfY/t6SSZROKITQFQBjvZwzIhW8C8= 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:mime-version:content-transfer-encoding; bh=X2n6sglZoDoAbNygKU/4fcq2x++GYhj3JW76w2+rzHQ=; b=qcpg9ztsW6U7lHNS0v4TyEQo0lKCMfyQNLoEqsGeJ5UP/b4gm9XnYMpaRLzWzfaGjR ATkZYP2qK9Ed1W2TA97KoFCCVSsYoIBnqFAsxeA1HMzs9556+d9GiIJF6p3/qLfnXP6P jY4/kLvDeyXudeY26TdauMpUioBeU0xroPrJkdINY04L5uZoziwLoXLj5BQF9ACMdIYO gSMKF6t61qqfSe44XrIatwQOj5LFzgvm2ElKI5JJ5fyXQlh+AXEFSO+jiNwhoMMcm3QL 87cKLvsD2aQBTAtJe9yRR+CHp0FYRqjkLAYpCHKpGDP0FcdG0HwUc++m+mXhx79F5LWn KxMg== X-Gm-Message-State: AOAM533if/MsmC9jDQxI8MXoHYRnxXU8xZd9y6TRWjMkopqLWu7qT+OP wbh3JeRvBAzBMJP0LwQQj8yFmvsU6rSIpkB5 X-Google-Smtp-Source: ABdhPJzk9J7CFiTb+Z9I6bWXjcrDA9jrweeAPpChfQxhTZJh788ezGXUbDIOM9KV2F2311pMDBV/Jw== X-Received: by 2002:a5d:980d:: with SMTP id a13mr1373311iol.168.1610834047590; Sat, 16 Jan 2021 13:54:07 -0800 (PST) Received: from localhost.localdomain (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id a17sm7428746ilc.77.2021.01.16.13.54.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Jan 2021 13:54:07 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Andy Shevchenko , Heinrich Schuchardt , Bernhard Messerklinger , Wolfgang Wallner , Walter Lozano , Simon Glass , Bin Meng Subject: [PATCH 05/12] x86: spl: Make moving BSS conditional Date: Sat, 16 Jan 2021 14:53:52 -0700 Message-Id: <20210116145343.5.I5a89c49db44a423cb318aa9d88b31e7df36bca98@changeid> X-Mailer: git-send-email 2.30.0.284.gd98b1dd5eaa7-goog In-Reply-To: <20210116215359.1220766-1-sjg@chromium.org> References: <20210116215359.1220766-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean At present BSS is always placed in SDRAM. If a separate BSS is not in use this means that BSS doesn't work as expected. Make the setting conditional on the SEPARATE_BSS option. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- arch/x86/cpu/u-boot-spl.lds | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/cpu/u-boot-spl.lds b/arch/x86/cpu/u-boot-spl.lds index e0c70b076b8..03a8c7e496c 100644 --- a/arch/x86/cpu/u-boot-spl.lds +++ b/arch/x86/cpu/u-boot-spl.lds @@ -48,7 +48,9 @@ SECTIONS _image_binary_end = .; +#if CONFIG_IS_ENABLED(SEPARATE_BSS) . = 0x120000; +#endif .bss (OVERLAY) : { __bss_start = .; *(.bss*)