From patchwork Tue Nov 27 12:27:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 152126 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1253587ljp; Tue, 27 Nov 2018 05:17:58 -0800 (PST) X-Google-Smtp-Source: AFSGD/WCUgP24K3fTXbib38/UmZT280l8PnlE/cYNKWzvyBciDIhNgkX1Me3Q5m7C8cKvGpwuZWY X-Received: by 2002:a17:902:768b:: with SMTP id m11mr32607188pll.271.1543324678826; Tue, 27 Nov 2018 05:17:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543324678; cv=none; d=google.com; s=arc-20160816; b=Ajm1J/kzaIEruwZOU7u1Yy24PncgNFPL9VsEv93AQ40YMLTT5yQUH+1j2MAg7KiKvl wx9ucY5g13ot9n/w1fABMby63xiUYJFsB95T1/YQum9FLgtmjbucwOxXbx5V935pVUPy RCsya2gvkFz8Hxek7TvHION7+s+yvMPpdOLgyCzgzGtI1lMaGzK5Qu+dgXX1+CsQ42nr poT2dEEHaaoONIo3Uwb9wMSciW1LyEdtKwUGSJ1ftQmnDd+bTVh9jS1sFXH9SK0OZVXC g0F5gmrQPm+uSjoYfYxv96BLwsi6hF0ymZC6Q7ygf+CnO3tjXCW3CHJdSZzwNsQmAaPV fUlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from :dkim-signature:delivered-to; bh=sVo2R5Xu/PXZ/1wPum17JfRSHtXkAZRw/Hn6jlwDdmk=; b=PxpkMub3vQr1A30CP53OGuPM2RDvYDw2zwzrNAMF54d1b+quHlQbMtz1L+8F3ta3Xd l3hgo7s26WUzMUyoLEI8rlTgIvUFAhET1KyyV/g7+1yHr4IRBrQZTWUjucfsNDcI1liy PsdOwtWJq8D5FWmootc6HYw6dvh/bRw6zC8UYe9UBnRRVHW9pyV0sKL42KrdPiIhwhci XGGmHgjGik9jZ1Spw+JF3dPO4VJiIPI7taMF8EcRxjzV79fMTvPBd0HgBNZ5nGDuTxDt wn3C5LvUH33e2vBo7SMz6rR5CX8CXVbw4e4fG5DHIy+334V7DCKzRcHnc7sp30+LaY0w /C0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=YAn7DoAg; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id i13si3879331pgi.260.2018.11.27.05.17.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Nov 2018 05:17:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=YAn7DoAg; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 7E4F121F85E7D; Tue, 27 Nov 2018 05:16:58 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org 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 B9CAA21B02822 for ; Tue, 27 Nov 2018 04:27:53 -0800 (PST) Received: by mail-wr1-x444.google.com with SMTP id v13so19025596wrw.5 for ; Tue, 27 Nov 2018 04:27:53 -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:mime-version :content-transfer-encoding; bh=IP84WqzGE6m23HdXwSQqwNkHLyfjVZfSx2RGAiI0VsY=; b=YAn7DoAgwzIfOMGq1rPuPTQuYlKeT1GjisA9mjAmu9/73rQz0gh5JiOtO6IHgX6UUb 0d16S4WZttYSPEnf4mA9rP0bdB3Pch3gDggqfP9aBXW3148RdMIUbC4ahJDbVPfbyBZh MqE+casU1NPyyDWpiRMOIRxJltMa1u9BO2ONo= 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:mime-version :content-transfer-encoding; bh=IP84WqzGE6m23HdXwSQqwNkHLyfjVZfSx2RGAiI0VsY=; b=U5uniS+6bMiJ63NknfR7cW/88oPont5rJYyY9u4XKgZYYXTTwr+1qYJKZbFmMr0n4k XIvX7B8Vm7bNxdJtlni79ZLLlg6oHWgGqU5Lhugq9HPYVu/eUYYpNYdF60O2ofysYyxB xZ3a2hG3K6K7GdGFA0vFdfipXp1beqgyyNm1KVA19BCmerPxRRIyt4FosfiE4rRgHmvy q5t7kjzzIonbOgEtiKXEbsnWih2MjoZcJtq6X5/wZm52LMZHvi+0T1R2RlE63HwCYFXO BoRAJK0CZp/RWSSPCg8G+qG37/kQdiQxGyj3+Mo7O5YDp3xH7hZ3Bj9EKR+/XFQwi3ww bL3A== X-Gm-Message-State: AA+aEWaO8jn1RwZoWskA5CNQ/ijtQPjaNFZoFx2R12hnlUIJszxD9H5O pvP0rAetyy+K420Aphw6TaXMMiBnLiM= X-Received: by 2002:adf:b6a1:: with SMTP id j33mr27423147wre.55.1543321671961; Tue, 27 Nov 2018 04:27:51 -0800 (PST) Received: from harold.home ([2a01:cb1d:112:6f00:f523:5d63:a56a:3d76]) by smtp.gmail.com with ESMTPSA id c7sm3475874wre.64.2018.11.27.04.27.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Nov 2018 04:27:51 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Tue, 27 Nov 2018 13:27:48 +0100 Message-Id: <20181127122748.24527-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Subject: [edk2] [PATCH] MdePkg/ProcessorBind.h AARCH64: limit MAX_ADDRESS to 48 bits 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: , Cc: lersek@redhat.com, liming.gao@intel.com, michael.d.kinney@intel.com Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" AArch64 support the use of more than 48 bits for physical and/or virtual addressing, but only if the page size is set to 64 KB, which is not supported by UEFI/EDK2. So redefine MAX_ADDRESS to cover only 48 address bits. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- MdePkg/Include/AArch64/ProcessorBind.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.19.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Leif Lindholm diff --git a/MdePkg/Include/AArch64/ProcessorBind.h b/MdePkg/Include/AArch64/ProcessorBind.h index 968c18f915ae..dad75df1c579 100644 --- a/MdePkg/Include/AArch64/ProcessorBind.h +++ b/MdePkg/Include/AArch64/ProcessorBind.h @@ -138,9 +138,9 @@ typedef INT64 INTN; #define MAX_2_BITS 0xC000000000000000ULL /// -/// Maximum legal AARCH64 address +/// Maximum legal AARCH64 address (48 bits for 4 KB page size) /// -#define MAX_ADDRESS 0xFFFFFFFFFFFFFFFFULL +#define MAX_ADDRESS 0xFFFFFFFFFFFFULL /// /// Maximum legal AArch64 INTN and UINTN values.