From patchwork Wed Nov 28 14:33:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 152277 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1164173ljp; Wed, 28 Nov 2018 06:34:24 -0800 (PST) X-Google-Smtp-Source: AFSGD/VRrU8T2vpR04LRMrJznVfXbxH7LSrt7El+4IUKvTwoRt23xMibYJgueiFfCRv7rOIb4OVh X-Received: by 2002:a63:5122:: with SMTP id f34mr32070306pgb.218.1543415664403; Wed, 28 Nov 2018 06:34:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543415664; cv=none; d=google.com; s=arc-20160816; b=bmCJWZHufW+ttqY44EoXglF2e2TbSkXfly01xrx4SIPI3IBTsMgwv+JiqZpKBq55gg bbNjgpzl/BXIG7rdyDK/jVsZ7H7PjGLrye59px/PgZ9JpfJslEyglu+gXc/53g5mLVkU PEImA2vt0k/mkrSvZN29iO+yLQ9dGsUuHiv1LIPXZZBo0+f/GPHJVgbGkfWCPLskjUyZ dkVX+7ePTd9ZO9Mn1z/4PwfmkVC9eIkNcERdHMMr84ZjTEO/l7N/22V8wAt3s9HYhK2b MpZIBqT9tMGfph3KAWA4vkYi/j6YXEO5CSWfM0PMiTadTh/0Ewgof5IH/ujMpg0UfTGG fovQ== 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:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to; bh=CaI89xSauGEzimjMVrGl1sD8iZT5EZSF/72DJu4Dy/Q=; b=z8tsZ3scqubiSdpMyYskHZ7ZynvNZqIXEgZE6vvPiEWJC2eC9KKo0Itdc9Pqr62xAd CTlMe5hEfTxAOpTUpWOsDVA/I86qPZsN9iKKiPZYfDiO07DbA3Wnz9dQHAJTQJchQwX3 zh0unokLKyBjJE8nm3zjH1Kf9gZitq/cTeWNLXKcvRUgtt+ybz6u3ism/xYOks0vCbky 7830PRlH7IWC6RTD9f2oJLzE6pA4NW/xgx8cYkPEOMiOF6bc/XT1ejShnr+IXiIiFlyb PSF3gXkn7iZdY4Un2svdBsMWJHggI5jBtIMerirYi2uaUAQU7kviIz3KrKxiPFWSQtK1 D6LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=cNoI76Pk; 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 z136si7656081pgz.28.2018.11.28.06.34.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Nov 2018 06:34:24 -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=cNoI76Pk; 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 5989B21196214; Wed, 28 Nov 2018 06:34:15 -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::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-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 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: [edk2] [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: , Cc: Andrew Jones , Laszlo Ersek Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" 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(-) -- 2.19.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel 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.