Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 33AD3C001DC for ; Mon, 31 Jul 2023 03:03:16 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7D89B869ED; Mon, 31 Jul 2023 05:02:46 +0200 (CEST) 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="jLNLcCLh"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6E28B869D4; Mon, 31 Jul 2023 05:02:38 +0200 (CEST) Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) (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 6764C869E5 for ; Mon, 31 Jul 2023 05:02:28 +0200 (CEST) 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-il1-x130.google.com with SMTP id e9e14a558f8ab-348cd210438so19979375ab.1 for ; Sun, 30 Jul 2023 20:02:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1690772547; x=1691377347; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=fcwGFVFm8sTtDOU033Bt1QkhPlQF9kk97sqdVo3gNjA=; b=jLNLcCLh9RuGp/STDQ6IeaDrBRuUfnLepTQcii1xzUskQ/Ia8UCC7oE7ql5ZQrpiZG +A9FjTTubjcYp5FoJ06Hneel7WvDLkmFcjqQuJBJRQy9+ULMZNWGlwasFmjOLAjxfsJM CELc2DScj9aQXGQ45H+6Orw2jd0FpoVNSyydk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690772547; x=1691377347; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fcwGFVFm8sTtDOU033Bt1QkhPlQF9kk97sqdVo3gNjA=; b=TmvydsKw3dMulTnMMP/AYAXzlyZN4PKC/uiMgrSjn7bBLuGMWADA3wWRxAUi1yNou2 Ys3pVgreEpse1cevLYf2D28nspo/a6q1VQSRMYQHRPH3RfQKC2vKySwwZV6jzZf2A+i+ LqcCVT1bXzhzgJfth0mnB7V/1NjrjUD3ZyV0KYJ56AWuWi4g25Kf2l1t+IDH5FpfN2lt oTNKvJxuzcOoSw2FVr4+PVax3jwtWec6mnB+6SNMlhOpUdUR6i1pynDx9tzrTtxLB+/x hj0JXbrvns56VZtkkRHcdYVRmgWfuHV/JW3PnYQLQk4bXlWPJf7tuzMxbx4pZuSieE7L WhQg== X-Gm-Message-State: ABy/qLbo8C8oLl10PSWixHYht/6Mc2asU4zXA+QqqoXH4D7KpRnVwVZU ojKpjRQ2KaO2PM54dmjwcF2oxrEpCOAu/hfRkzQ= X-Google-Smtp-Source: APBJJlEncp9kdDfVB8GDa4WABRxJ0s9CRN5gX3kxxej8jEV7qmZLVM8vSb9xjJ9++yAYGw1uRyNPFg== X-Received: by 2002:a92:c9c3:0:b0:348:f28d:d06 with SMTP id k3-20020a92c9c3000000b00348f28d0d06mr1422982ilq.31.1690772546917; Sun, 30 Jul 2023 20:02:26 -0700 (PDT) Received: from sjg1.lan (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id e20-20020a02a794000000b0042bb5a8e074sm2749997jaj.8.2023.07.30.20.02.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Jul 2023 20:02:26 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Bin Meng , Tom Rini , Simon Glass , Andy Shevchenko Subject: [PATCH 04/22] x86: Drop CFG_SYS_STACK_SIZE Date: Sun, 30 Jul 2023 21:01:47 -0600 Message-ID: <20230731030211.955875-5-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.487.g6d72f3e995-goog In-Reply-To: <20230731030211.955875-1-sjg@chromium.org> References: <20230731030211.955875-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.103.8 at phobos.denx.de X-Virus-Status: Clean This is only used in one file and the value is the same for both boards which define it. Use the fixed value of 32KB and drop the CFG. This will allow removal of the config.h files. Signed-off-by: Simon Glass --- arch/x86/lib/physmem.c | 3 ++- include/configs/edison.h | 4 ---- include/configs/x86-common.h | 10 ---------- 3 files changed, 2 insertions(+), 15 deletions(-) diff --git a/arch/x86/lib/physmem.c b/arch/x86/lib/physmem.c index 1eb97ac5bb17..382f768149f4 100644 --- a/arch/x86/lib/physmem.c +++ b/arch/x86/lib/physmem.c @@ -14,6 +14,7 @@ #include #include #include +#include DECLARE_GLOBAL_DATA_PTR; @@ -144,7 +145,7 @@ static void x86_phys_memset_page(phys_addr_t map_addr, uintptr_t offset, int c, /* Make sure the window is below U-Boot. */ assert(window + LARGE_PAGE_SIZE < - gd->relocaddr - CONFIG_SYS_MALLOC_LEN - CFG_SYS_STACK_SIZE); + gd->relocaddr - CONFIG_SYS_MALLOC_LEN - SZ_32K); /* Map the page into the window and then memset the appropriate part. */ x86_phys_map_page(window, map_addr, 1); memset((void *)(window + offset), c, size); diff --git a/include/configs/edison.h b/include/configs/edison.h index 455a889b64c1..558c74d7b469 100644 --- a/include/configs/edison.h +++ b/include/configs/edison.h @@ -8,8 +8,4 @@ #include -/* Miscellaneous configurable options */ - -#define CFG_SYS_STACK_SIZE (32 * 1024) - #endif diff --git a/include/configs/x86-common.h b/include/configs/x86-common.h index c1c5a09a35c7..608c5ba7b0a6 100644 --- a/include/configs/x86-common.h +++ b/include/configs/x86-common.h @@ -10,16 +10,6 @@ #ifndef __CONFIG_X86_COMMON_H #define __CONFIG_X86_COMMON_H -/*----------------------------------------------------------------------- - * CPU Features - */ - -#define CFG_SYS_STACK_SIZE (32 * 1024) - -/*----------------------------------------------------------------------- - * Environment configuration - */ - /*----------------------------------------------------------------------- * USB configuration */ -- 2.41.0.487.g6d72f3e995-goog