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 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-Google-Smtp-Source: AFSGD/UfArs6yg+gXw+7sxLRv7G5uT/HLYPi3Lzgid47IAUB6Ls+6YYWnTe7mbhZ5EmZZ8J7MyucIQ== 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 Cc: liming.gao@intel.com, michael.d.kinney@intel.com, leif.lindholm@linaro.org, lersek@redhat.com, philmd@redhat.com, Ard Biesheuvel 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: [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: , X-List-Received-Date: Tue, 27 Nov 2018 12:27:54 -0000 Content-Transfer-Encoding: 8bit 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(-) 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. -- 2.19.1