From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by mx.groups.io with SMTP id smtpd.web10.68.1609801133010299294 for ; Mon, 04 Jan 2021 14:58:53 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@nuviainc-com.20150623.gappssmtp.com header.s=20150623 header.b=FNRAU4yQ; spf=pass (domain: nuviainc.com, ip: 209.85.214.174, mailfrom: rebecca@nuviainc.com) Received: by mail-pl1-f174.google.com with SMTP id g3so15344712plp.2 for ; Mon, 04 Jan 2021 14:58:52 -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=FNRAU4yQGjKdxTAyxpej/p12R/XGjA92cbho9ASQ94rZpYRnV39/ngvhAFUu9OK04z rIdzdzRhsM2ehjbQd20BxPdQi4zz+ljFWTZkDzi0sdIj+NG6QqnOmw0F8EEj83ZlmqV4 leIJgU9nyf9L40Bysl4wEa7VtSzoZwhsPIy2uvxVVp6rDa55cEJMfuCPJgKa+aZcoW9T ZXX1Z0W9RYJs/Ci6htDt5kX270vDBWVmKfkddv+JFP5lCV/8HNbZRpABN07pww7DWPaS MGefoyZt2x3vjJWOWxvAhM8qhrPrkLByjAUEzdjx2scmqjAXCQxN7lIbHmjE/SgKd7ag a8AQ== 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=DbDCdvS4KjbTLtsj8HihRgvp20z4pkQyZq1CweeSO6RekPZwPmSgVWa0UWVGqZ4EvN awF5mKHjeM4bahnASLo+/ZU5+79niKBfGclIEolOblQWTh5IPUtt3wY+bQ7zZHwiepVt 9N/LuwcG38TKH74WhWCnW74F+Vfh5Rh0Mz54gOMZ0zjwtjHxSis39wJjyaHbWN8MNbdv 0kgKqO5arCoguqsoJNAtXTeVkqJ+no1CQlaG9FVclrb+SlidZGwXtlk+Ioehfrn8tkzT FhTOMsCN+UORpFGwB2qlyMdGT0Jr74Y8MaS7aiD3emuBtVQLyjjSAT4FBJt3h9OsXpR0 iATg== X-Gm-Message-State: AOAM532C6r2C/Rxj+ovAGoWKh9pPeVsDcSleV9vOX270ATzadIBUeovN AcVhgMxFWxQwpmA3VDgi9LwGLm0Typqtdavh3+UIdx+qvdQClKMfyFlekszKfYOAD5nun41PNRN 3wtMnHKTSgfkbWuhM/xJ8CG2vW4mZjAE2Ns421CPBJGWVusdiGj+DayNjboZOiUBi4XQlXTVv X-Google-Smtp-Source: ABdhPJxqKDkP8erbwQo84rQn1xD8b6jGVIKaLfwm1Wg4Xo+AGswS3ta+oKcg15O17ZYU2DxvBF/Jrw== X-Received: by 2002:a17:90b:a17:: with SMTP id gg23mr1084026pjb.129.1609801132176; Mon, 04 Jan 2021 14:58:52 -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 x143sm64185289pgx.66.2021.01.04.14.58.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jan 2021 14:58:51 -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 v5 08/23] ArmPkg: Add definition of the maximum cache level in ARMv8-A Date: Mon, 4 Jan 2021 15:58:15 -0700 Message-Id: <20210104225830.12606-9-rebecca@nuviainc.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210104225830.12606-1-rebecca@nuviainc.com> References: <20210104225830.12606-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