From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f43.google.com (mail-io1-f43.google.com [209.85.166.43]) by mx.groups.io with SMTP id smtpd.web11.4156.1610642207856569334 for ; Thu, 14 Jan 2021 08:36:47 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@nuviainc-com.20150623.gappssmtp.com header.s=20150623 header.b=dTJ/iguz; spf=pass (domain: nuviainc.com, ip: 209.85.166.43, mailfrom: rebecca@nuviainc.com) Received: by mail-io1-f43.google.com with SMTP id n4so12297913iow.12 for ; Thu, 14 Jan 2021 08:36:47 -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=dTJ/iguzl+vDyRusjrQIkSNWpuJadcTC/H4+875Xec0hFULxonWr2mcTGS2j3waDGs XKdgg50Y5a0KcTZKhzjCaVaFSjKs3fQvdB+vLnTAH9A0CXS2szfQQuZUvsaR6fj8Rti9 PhUo8lEhec8gFD8kxUWN61nvcoDAKrPCojl0ZVPorsHpsiluUiOj986WtkzmpBKLldLZ l1W7JyZ3IXOCAQ5ibx6v3d99APMU1AGcYI9+6WWQP0dV9G/2TWWH0CUHB8tZ+rkHwEov syt/5VBile2uRXMaxwy2ceQBS0jyMF121+Vz1Xge1s88TrqO4mSZ+jygcGNeMvnWF7iM 9HEA== 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=H+TJ/4En2+2do0oVpcby/7Wzv6yReBFea3wlByGY+F/oQZXO4BJD3torvQUJjrHJ8w Q17TFJYF3mPnNUUwxw4pQzmEeH1GcQxRa6BFgsmrTA5vbOnuuFQo01Pcy8Yz9cJYnMVU QXKkMlhHJg9owiQo+FRFrK+Y+yKY5aRIC4a7sA820vN1OkxUZ8joHIksO0Wrf15sy3YT z566zrwWfstrudgehYiit46HAWdZy1W7uz3DuX2+yje+gs17um7clVHR+/yOhDwtBzAW ogsT36TlpuVzH57Gav9bMN/JHCIHXSC+H2S0Q9jT2W4jb3TYWJ8ffcUkgedufpZOn+zZ RVfA== X-Gm-Message-State: AOAM531mpdUE1/tRQy+3lrVzsPc6CWhlLy18e4TxY26O5ea0yy7449md av0lxktmhgB100EQCS2+Wh+2Y6uoaB0xgN8wH6YKGdUwP2P2xJBcY5IOz7K51hyhTCD1dfq1kbo v/6zGqSSr5UCNYI1K791B3aEI6Emg8JqSWEz5dFL0gs+7UhuwZyB7qJnLb9+EN6bHQqZvAzOM X-Google-Smtp-Source: ABdhPJxiQpbk1CejPJoCGXGjDUYsRJmzfWy1/r9XaNYa2gMoxfA/cGpPh6Cm0H5609riy6C+2RTzpw== X-Received: by 2002:a02:5148:: with SMTP id s69mr7215039jaa.8.1610642207077; Thu, 14 Jan 2021 08:36:47 -0800 (PST) Return-Path: Received: from cube.nuviainc.com (c-174-52-16-57.hsd1.ut.comcast.net. [174.52.16.57]) by smtp.gmail.com with ESMTPSA id y5sm3711920ilj.35.2021.01.14.08.36.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Jan 2021 08:36:46 -0800 (PST) From: "Rebecca Cran" To: devel@edk2.groups.io Cc: Rebecca Cran , Leif Lindholm , Ard Biesheuvel , nd@arm.com, Sami Mujawar , Liming Gao , Michael D Kinney , Zhiguang Liu , Sami Mujawar Subject: [PATCH v6 09/22] ArmPkg: Add definition of the maximum cache level in ARMv8-A Date: Thu, 14 Jan 2021 09:36:15 -0700 Message-Id: <20210114163628.31952-10-rebecca@nuviainc.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210114163628.31952-1-rebecca@nuviainc.com> References: <20210114163628.31952-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