From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f173.google.com (mail-pg1-f173.google.com [209.85.215.173]) by mx.groups.io with SMTP id smtpd.web11.29133.1612745599768718073 for ; Sun, 07 Feb 2021 16:53:19 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@nuviainc-com.20150623.gappssmtp.com header.s=20150623 header.b=tv7/OOab; spf=pass (domain: nuviainc.com, ip: 209.85.215.173, mailfrom: rebecca@nuviainc.com) Received: by mail-pg1-f173.google.com with SMTP id b21so9135474pgk.7 for ; Sun, 07 Feb 2021 16:53:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuviainc-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NVcMwyfD4JHRo82k4RJPLvPA9c89fjucOlsmIfi0dXQ=; b=tv7/OOabVIsIaeKQ39Y56gsfIQeTEYMVmO9nDLti/q1nmpzJjMGdB5Uj4JHUvxWyJq uBJtuOjibE8dQnSDWGrWz1xIohNT2YC6ASJ46wNrh7GfFsx1rX+26DjySbkeSR9pBpOT 7Nmhfk0wEhQtqvNfjhwtCBual22HTZZkxq6pQra3+JB8fUvzC4oFcmsfMNHvacyyWbKH jiIOji22zeGRCeIQUTMRKixuwUybODrGen3h83zCFBGA+JH1mEkk8VnQacbZYv8EbzLg VcrwcD4udlhnkMypQ6+Ul7FSh0yhKlrCgSzK9Si258wTMnp0sJ0v5N9zu+8Z09T4sXjE PwHg== 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=NVcMwyfD4JHRo82k4RJPLvPA9c89fjucOlsmIfi0dXQ=; b=pDbi96zaN+uCTg4nZ+GVb0SqmKhAP5C8mfLMnvLNOgO779BMT5qSoXOrakZ+ke1A6Y TgSaNrALTcvzbrCVI6LVtF1muzfvrfARTTAOvmBqi/P2MqUYhtIGH7kf8fEVG4VIbTSu ZLeEVdSEOP2e92qEt92JEN68Kp47/LZKz5BO3C0QsuzTiBRhOqFsBp5iwg2pL1TaNnwP VCdKkfArSyh1Fpuf9FTKrDWLJzW82SDcGcYSXUaK/Guy+mLVf4s6VNEiCja6EIEEFnYt hVnPfAn9WehZb+mEcK3/oS8nrnwp0f4Ncot2MrgjcH/xqjhK/4nQSEIkDtPIpyy0R5g3 doGA== X-Gm-Message-State: AOAM533k72jPya55i/B5YHyNGFYg9/xfbucF8OgmQuVaBSS6+Exl2pYk qTx97zjGvIJe50qVxOwf3hzU3dXxJN51ANTOm/M6rr5vWY4TViFt7P3KJ08wnlGJ+dLWUqnInD4 xFyo9amRiU0KL4tLlbLvnYBklnu8oCREbc7MpLYXuljj63IxANPgECw0oOTB0EFWLj22Ylw== X-Google-Smtp-Source: ABdhPJwnttVoVMZXANN+fPukiI19B4ZIN83YoM+go3QHXMJeWBvtMDVSvY+j5CEXWZsPJ6WxE8BqiA== X-Received: by 2002:aa7:8426:0:b029:1be:ed6b:9e27 with SMTP id q6-20020aa784260000b02901beed6b9e27mr15191609pfn.13.1612745598756; Sun, 07 Feb 2021 16:53:18 -0800 (PST) Return-Path: Received: from cube.int.bluestop.org (c-174-52-16-57.hsd1.ut.comcast.net. [174.52.16.57]) by smtp.gmail.com with ESMTPSA id c6sm11095883pjd.21.2021.02.07.16.53.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Feb 2021 16:53:17 -0800 (PST) From: "Rebecca Cran" To: devel@edk2.groups.io Cc: Rebecca Cran , leif@nuviainc.com, Ard Biesheuvel , nd@arm.com, Sami Mujawar , Liming Gao , Michael D Kinney , Zhiguang Liu , Samer El-Haj-Mahmoud , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Sami Mujawar Subject: [PATCH v8 08/21] ArmPkg: Add definition of the maximum cache level in ARMv8-A Date: Sun, 7 Feb 2021 17:52:41 -0700 Message-Id: <20210208005254.12176-9-rebecca@nuviainc.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210208005254.12176-1-rebecca@nuviainc.com> References: <20210208005254.12176-1-rebecca@nuviainc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The ARM Architecture Reference Manual for ARMv8-A defines up to seven levels of cache, L1 through L7. Define MAX_ARM_CACHE_LEVEL to be 7. Signed-off-by: Rebecca Cran Reviewed-by: Leif Lindholm Reviewed-by: Sami Mujawar --- ArmPkg/Include/Library/ArmLib.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ArmPkg/Include/Library/ArmLib.h b/ArmPkg/Include/Library/ArmLib.h index 26cb05def0a2..fd4f06d24274 100644 --- a/ArmPkg/Include/Library/ArmLib.h +++ b/ArmPkg/Include/Library/ArmLib.h @@ -109,6 +109,10 @@ typedef enum { #define GET_MPID(ClusterId, CoreId) (((ClusterId) << 8) | (CoreId)) #define PRIMARY_CORE_ID (PcdGet32(PcdArmPrimaryCore) & ARM_CORE_MASK) +// The ARM Architecture Reference Manual for ARMv8-A defines up +// to 7 levels of cache, L1 through L7. +#define MAX_ARM_CACHE_LEVEL 7 + UINTN EFIAPI ArmDataCacheLineLength ( -- 2.26.2