From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:4864:20::444; helo=mail-wr1-x444.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id D153521195BCB for ; Mon, 26 Nov 2018 14:38:37 -0800 (PST) Received: by mail-wr1-x444.google.com with SMTP id c14so15021148wrr.0 for ; Mon, 26 Nov 2018 14:38:37 -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 :mime-version:content-transfer-encoding; bh=URUyurxf667iFbDXbP2kN6XPe58zIYvx3JM7hp6HbeI=; b=MZY3mh93/+rHlojdNFVMDSnxn4SXQY8bflxz9wQk8ZsbblE2RrAl5ndBdj5mIcSMDk djSS9Poy9Sdc8wvjLRSvpnNl94zKvS9HMz9Fg/kX0RRmHOxuA4XvCJsi7SLC/LfI4Yly D2pLsSePDxbF7VXp4fxS8YtwCwYNK9qi6eYpE= 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=URUyurxf667iFbDXbP2kN6XPe58zIYvx3JM7hp6HbeI=; b=aOTmorXKyEKMarmIRFZKA9sGAAcLJgbg8mp88SqrUJveuHBRCZ3/NjHRHh6IFT5v9k enRcBznl+UuyC8QqbO3jrhFfBFx3sGj9rJWLRYLYKw86+JjqngBgviOPyd1qs6uVnM0h tYx3LQ0UgooS+ZeJaK3RBynsGh6KfmlYB28DG01ZkOcE4U+JeMtzZGF1Z1CP7fGaGT2s 1lxK/DcJlprxCYM3hQKEFkySYwMnGG+/IhFC1ruIIYO6RYo2CALrZCJQ1/jlCgnyi8We oSc9HpY62QwOEtnzfNr9ixPAxDzwYHgD9W/+ICX1DxnLk4u/oLsiXcJEXZtmwa9RikHx sGDg== X-Gm-Message-State: AA+aEWakXSvUqx7fP21W00xGBRqR3OJArg6iRDH0UEIOrvGUvTDRtP5v VvKlOBF3XyBzg4Mw9P1EFmvO3bvThcw= X-Google-Smtp-Source: AFSGD/XDl+5IAhk+ZDZPIn9ixNTzZwLfINMP/COGxsoVpsoymbXMxYQC/bd4y1eKmQ4NEdFV7K8PMA== X-Received: by 2002:adf:be8d:: with SMTP id i13mr26078150wrh.235.1543271916078; Mon, 26 Nov 2018 14:38:36 -0800 (PST) Received: from harold.home ([2a01:cb1d:112:6f00:8571:4c23:4f5c:5eb7]) by smtp.gmail.com with ESMTPSA id v5sm2641916wrn.71.2018.11.26.14.38.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Nov 2018 14:38:35 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Cc: Ard Biesheuvel , Laszlo Ersek , Leif Lindholm , Eric Auger , Andrew Jones , Philippe Mathieu-Daude , Julien Grall Date: Mon, 26 Nov 2018 23:37:55 +0100 Message-Id: <20181126223801.17121-8-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181126223801.17121-1-ard.biesheuvel@linaro.org> References: <20181126223801.17121-1-ard.biesheuvel@linaro.org> MIME-Version: 1.0 Subject: [PATCH v2 07/13] BeagleBoardPkg/PrePi: base GCD memory space size on CPU's PA range X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Nov 2018 22:38:38 -0000 Content-Transfer-Encoding: 8bit Derive the size of the GCD memory space map directly from the CPU's information registers rather than from the PcdPrePiCpuMemorySize PCD, which will be removed. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- BeagleBoardPkg/PrePi/PeiUniCore.inf | 1 - BeagleBoardPkg/PrePi/PrePi.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/BeagleBoardPkg/PrePi/PeiUniCore.inf b/BeagleBoardPkg/PrePi/PeiUniCore.inf index 3d72bc5b46e1..53c71d8eafc2 100644 --- a/BeagleBoardPkg/PrePi/PeiUniCore.inf +++ b/BeagleBoardPkg/PrePi/PeiUniCore.inf @@ -86,7 +86,6 @@ [FixedPcd] gArmPlatformTokenSpaceGuid.PcdCoreCount - gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory diff --git a/BeagleBoardPkg/PrePi/PrePi.c b/BeagleBoardPkg/PrePi/PrePi.c index 46f63f40c46e..bc9b0c80b84c 100644 --- a/BeagleBoardPkg/PrePi/PrePi.c +++ b/BeagleBoardPkg/PrePi/PrePi.c @@ -110,7 +110,7 @@ PrePiMain ( BuildStackHob (StacksBase, StacksSize); //TODO: Call CpuPei as a library - BuildCpuHob (PcdGet8 (PcdPrePiCpuMemorySize), PcdGet8 (PcdPrePiCpuIoSize)); + BuildCpuHob (ArmGetPhysicalAddressBits (), PcdGet8 (PcdPrePiCpuIoSize)); // Store timer value logged at the beginning of firmware image execution Performance.ResetEnd = GetTimeInNanoSecond (StartTimeStamp); -- 2.19.1