From mboxrd@z Thu Jan 1 00:00:00 1970 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 40E9DC61DA3 for ; Wed, 22 Feb 2023 01:43:21 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D415085AE1; Wed, 22 Feb 2023 02:41:27 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="MHEQBe0e"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E3D1985AA8; Wed, 22 Feb 2023 02:39:26 +0100 (CET) Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) (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 4B00B85A85 for ; Wed, 22 Feb 2023 02:39:16 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=troykiskyboundary@gmail.com Received: by mail-pj1-x102c.google.com with SMTP id d1-20020a17090a3b0100b00229ca6a4636so7212915pjc.0 for ; Tue, 21 Feb 2023 17:39:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=zsCe0e6950X+SLGSRrB0kfwe2IFilYwXYLlKlF9Z5no=; b=MHEQBe0eFxDDTrTqLoqd1z1VG5jEvRAZGiFT8Nw7LF55zg2WTLJNo0K7X7xkKhOaUo diRb41IbJvM3l95g1udPNwYCXvsBMpLVVHe0mILUx2dTi6ouxcJhHj/KFavhjvJS5460 fCPKd9NVOHh5nON3RALqvkJ6d8D5NZq6rGAgn8logNV9W93+bjmpbhQExmi7joe0G/wp 3rBrtG7huQdQlbTmFQsJweUCoCx4i8ECbThz7KC7wA8fnVB2leN8YzJAKpAiKQ8Xyt+j myhbMk+o4ti5BVjft2Un0SnIV5MGelkceIdGJPQlJQwV9NqZFMBhbJVYV2hJZY4YlsaR 5ZLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=zsCe0e6950X+SLGSRrB0kfwe2IFilYwXYLlKlF9Z5no=; b=Srnumo/+gDPLYDr3NBa8Q7yPjbreAZMWjOl2MbvCsKAudCOHZo4IXne6+ABTKXQVcz 9tm9IAKr8eidTG0+OmHFcX/qrlukBjknXf7PJIKBKX1QW+/L3Q2r0CUUDpWrfvuRd455 xQAW5IlNxEWt85zNrFHkV+I1n+dT6s61BMLy2vzNt7AFHrS4zRKpKR+dtdW5wp09lg5d g+7Qy5QPZrtEMQ0ZEHkA6caTCBaDoy2wENQGJwWGRJsui/2KrN3+hebf7SGglCCYW6RK K34//SflFA/jsFq/k0VNGe/Au5C5VgBouFe1wUVg3zF+Dn0emG3mcbmfaB+VXAWgduRg 5bRQ== X-Gm-Message-State: AO0yUKXfUND6Snb2dTOprTwhQgxcKOGaFPmrnRaFSSbESEQ8an64JHJR MZASSQ5Cffu0MsDOtQk8+wM= X-Google-Smtp-Source: AK7set+4CVf9/Al00y52X1rsqpctj2hJjf9CWcXW3WBuiOC1nueSSsVDv+DvxGK4T5f4ebwFn5BFXQ== X-Received: by 2002:a05:6a20:7fa3:b0:cb:77ef:b502 with SMTP id d35-20020a056a207fa300b000cb77efb502mr5961192pzj.5.1677029942127; Tue, 21 Feb 2023 17:39:02 -0800 (PST) Received: from OS2.boundarydevices.com. (wsip-184-189-120-117.oc.oc.cox.net. [184.189.120.117]) by smtp.gmail.com with ESMTPSA id d6-20020aa78e46000000b005accb31201fsm4200976pfr.26.2023.02.21.17.39.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 17:39:01 -0800 (PST) From: Troy Kisky To: sjg@chromium.org, trini@konsulko.com, u-boot@lists.denx.de Cc: gary.bisson@lairdconnect.com, Troy Kisky , Bin Meng Subject: [PATCH v1 20/24] x86: cpu: i386: cpu: only set pci_ram_top if CONFIG_IS_ENABLED(PCI) Date: Tue, 21 Feb 2023 17:38:17 -0800 Message-Id: <20230222013821.1144691-21-troykiskyboundary@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230222013821.1144691-1-troykiskyboundary@gmail.com> References: <20230222013821.1144691-1-troykiskyboundary@gmail.com> 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.6 at phobos.denx.de X-Virus-Status: Clean This avoids an error when ifdef CONFIG_PCI is changed to if CONFIG_IS_ENABLED(PCI) Signed-off-by: Troy Kisky --- arch/x86/cpu/i386/cpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/cpu/i386/cpu.c b/arch/x86/cpu/i386/cpu.c index c7f6c5a013e..07a73f79768 100644 --- a/arch/x86/cpu/i386/cpu.c +++ b/arch/x86/cpu/i386/cpu.c @@ -415,7 +415,9 @@ int cpu_phys_address_size(void) /* Don't allow PCI region 3 to use memory in the 2-4GB memory hole */ static void setup_pci_ram_top(void) { +#if CONFIG_IS_ENABLED(PCI) gd->pci_ram_top = 0x80000000U; +#endif } static void setup_mtrr(void) -- 2.34.1