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::344; helo=mail-wm1-x344.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) (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 9DCB921196214 for ; Wed, 28 Nov 2018 06:34:12 -0800 (PST) Received: by mail-wm1-x344.google.com with SMTP id r11-v6so2840901wmb.2 for ; Wed, 28 Nov 2018 06:34:12 -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=QXIroxK8mtrTqFpjk0U69BxVNsswlB/AGn2AylTo+6s=; b=cNoI76PkjWeiJjeHSFKIlnixMEB7oXx5FstPz2HUnoc7d3Pqz8kC/vMd18yUHKzacX UzbKkEWWqQPxwdbQ7nBfxQhCDiAw5SW+E8YKfLUtgQp9e7uu0QJkzhy96SG6rEwzUYLq CBln72BzDQ4cFn/7jsdKQSfM7cXs6aa2Jasag= 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=QXIroxK8mtrTqFpjk0U69BxVNsswlB/AGn2AylTo+6s=; b=tGH3NVlNqoP+I+ps0JIdnuhGQWf2g1YxvdG3VtEbZEr5MNCFYFFTa28quQhrbM7qpZ 0yLKpIlJl9mGhXbotOTcqdgOdhINJEp4KDtJklGv9mZokcEFqF9WNrY2+2H0ed/cvMFr NdcawMSFfKNulaMqJuyFHqKi1MQr3zcmBDwK26gJXYpTET1lHSqYPxmmIDDpptC2ElpP m9Agmscuhll4RwEcCrSlFZb9Nr1lo7b0ZnOeftwhNitn7plJxQN71b5/CMOQNekcJZwi EE44l38c5C+FcjDFRiDoKx+f6RSEskOzMRCU7USR2X11Y912enU7Kfy+sbS3w+z0YGey C+AA== X-Gm-Message-State: AA+aEWadRewLD8VMwh3QHcB8cx4UZamyxyCBvLeST7Ihd0rNiItyn4ii 0ADSsFkX5bvgp6t1BbhA4xYMnNWeQLs= X-Google-Smtp-Source: AFSGD/Vlb/+aS7ifEih5qK1+emI53KSHxN91r0BUocVBD4DQbWymloSpVvMmLxMFzb2DCmyyxSHh2g== X-Received: by 2002:a1c:e354:: with SMTP id a81mr2941982wmh.142.1543415650742; Wed, 28 Nov 2018 06:34:10 -0800 (PST) Received: from harold.home ([2a01:cb1d:112:6f00:296f:238b:c20d:3626]) by smtp.gmail.com with ESMTPSA id 6sm3391891wmk.26.2018.11.28.06.34.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Nov 2018 06:34:09 -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: Wed, 28 Nov 2018 15:33:46 +0100 Message-Id: <20181128143357.991-6-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181128143357.991-1-ard.biesheuvel@linaro.org> References: <20181128143357.991-1-ard.biesheuvel@linaro.org> MIME-Version: 1.0 Subject: [PATCH v3 05/16] 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: Wed, 28 Nov 2018 14:34:13 -0000 Content-Transfer-Encoding: 8bit AArch64 supports 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. So redefine MAX_ADDRESS to cover only 48 address bits. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel Reviewed-by: Leif Lindholm --- 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