From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by mx.groups.io with SMTP id smtpd.web10.133.1607363692010217607 for ; Mon, 07 Dec 2020 09:54:52 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@nuviainc-com.20150623.gappssmtp.com header.s=20150623 header.b=hSE3KogO; spf=pass (domain: nuviainc.com, ip: 209.85.210.193, mailfrom: rebecca@nuviainc.com) Received: by mail-pf1-f193.google.com with SMTP id 131so10778280pfb.9 for ; Mon, 07 Dec 2020 09:54:51 -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=BEuDHn7iXpOi+YYkylLo8pBaVFL7xoF8hcmY7zkMOPw=; b=hSE3KogOAj1r0TebYLph/SXGCXdFHSjIkxmODEpL+7pSSsOfJTtYZ9YBDpf8f2uH4c bC6fW8e+HcC1f2YMXMn2B3WpbXKv9kbmOoXvbr4vMst4E0DCI1uzi5ayNkfCa73K0vma YSsmmbXXIE7RUhisBy9saDOx8jOQx1dZgViDWi+c9NH02ohSsE3LNGTbKwUyOEmcXJru nAvWWhxsVxzq/d7a0Eb1empXUJ617LbcEUFyXF1V+DYMwFd1fFarXErIHWSLz7vcdcNr O5bA3XvKlxaiPBT1RRE4pO1iDwUE8YECM6TV1RQV2sYRtyODMWYsAXOPgFaJd+mbS2Og C4DA== 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=BEuDHn7iXpOi+YYkylLo8pBaVFL7xoF8hcmY7zkMOPw=; b=GIZRKVEE1ptk3QLJvhtafAIizt9q8NtGU0IwvMGyrmKP3YvDH4fN6P+2nLQ5xiQ28L hHhjCsOXYSUQEETPFXnLjz1rndSgjRvqWyYix7mKH3H3J2M7gmCtxnpLWxDbwLevw8w5 3h4zBSMXIfQEH8tOxpqlKuPGam7pfbK2iwCOF6h6hUCf9l38Ssrk2USTXPRnCWeOtks5 ilV/bl5U6Tmiv/xeXXbwHOvrflmKzFtDYxRbF990Jp2eoOWNwrNLFWIYBNJsExLMVJY+ hNFDFbXHRv7Fls5hgCEzc57mlcVMjfLUR26rCH6la9LMuc8kA2kFld2Xf4ZVBayIvFuj 20Zw== X-Gm-Message-State: AOAM533shGbVl49DCKyLEjWuU4SSQWuYhyclk3HaGX7ifuP+4agGmrdu oGlGdaVFkSQ2xrBsLwZMLqcxRKDpEccuH4QM4pnfqcG483qimGie5yQFsJ2f+2zyeq/D5Ut5Fs3 kcnLRtDF5WMQhn9YwxoM++Zp9RYIlWN9lHBG8vgdEcwcVTKWIwtOjWLrfxJg6wmCuCItZf3E1 X-Google-Smtp-Source: ABdhPJwuW2lt/38Kyj8XaJnF5rNLXChBqdvXuCI/bksYl5pUJhbkPyVwQJit4jMoKPN1WIeTCZn8Xg== X-Received: by 2002:a62:b607:0:b029:197:7177:df6e with SMTP id j7-20020a62b6070000b02901977177df6emr17348216pff.4.1607363691243; Mon, 07 Dec 2020 09:54:51 -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 nm6sm2369pjb.25.2020.12.07.09.54.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Dec 2020 09:54:50 -0800 (PST) From: "Rebecca Cran" To: devel@edk2.groups.io Cc: Rebecca Cran , Michael D Kinney , Liming Gao , Zhiguang Liu , Leif Lindholm , Ard Biesheuvel Subject: [PATCH v4 09/10] ArmPkg: Add definition of the maximum cache level in ARMv8-A Date: Mon, 7 Dec 2020 10:54:26 -0700 Message-Id: <20201207175427.28712-10-rebecca@nuviainc.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201207175427.28712-1-rebecca@nuviainc.com> References: <20201207175427.28712-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 --- 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 87c3a6f1ecac..4e26991727cb 100644 --- a/ArmPkg/Include/Library/ArmLib.h +++ b/ArmPkg/Include/Library/ArmLib.h @@ -108,6 +108,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