From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qt1-f180.google.com (mail-qt1-f180.google.com [209.85.160.180]) by mx.groups.io with SMTP id smtpd.web11.26310.1612135533919967245 for ; Sun, 31 Jan 2021 15:25:34 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@nuviainc-com.20150623.gappssmtp.com header.s=20150623 header.b=rvC4/Eyu; spf=pass (domain: nuviainc.com, ip: 209.85.160.180, mailfrom: rebecca@nuviainc.com) Received: by mail-qt1-f180.google.com with SMTP id l23so11018596qtq.13 for ; Sun, 31 Jan 2021 15:25:33 -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=rvC4/EyukhahICESO4PvHbFa2z15EDIojo4iKltgsag/FnmxvZTw+1lKZR42j9McV+ m7lreKw+Al90Cg9oNMBiv1C5d/AZ5D4en/iDv93alT8TsCYpGsLDMtwymXUx3/lcSgUb SbQfI4kZSSviThaSGIKjBSV9BAyAgasdf2PGpY5iE8Wv9Z4vANRD7ZAKJKJ24v9PoYYc huLaRmp9w5hT5osoS8OBJTjnLLfxfouDTFeVnun7GSi4xMqwiEXhXSYq5LtPKSmB8hGU S+fVdrXblO8VFtgRujJLv0uOPJwWDyQTnpXbsAeSuaQSsKUE6JxKNJsXsm4uq+Z24hCa hWFQ== 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=RHKKkzPKd1C/LTUV9/iuaIrdxhBFGOWW9cAq6kUIHGMyv6VUpn6sZuZFHm4YnG1Va8 CCxhyaQyn3ku/gkaysLZ51cC1juUiw4pGw/Pmy8zuHHYPhxzvew9sSicjyxPmyyBA+Me Yp+N65NlmyYpEIbtMJ1DBWW0Q5NN+wt8FnvDhudqtT4KKpgUA0OM49nJk3KYuAwR2u/j y3wuBSlKdwWGTJU0Q56XYWZxfi2XUrRwQldtaYihMoMFTyMQ1h3Ls95H/TqIkgJEPwwV ejI1tYovt3OeKkQryFIlygjZgysH3HrZxP8F77X8fsZFWaURI5E9Bf2H5ariAuJwUyca 1Fdw== X-Gm-Message-State: AOAM533pX2eUkhXxskQOqNIA/YF24wgW8w2TxK+XGm2mJ/r+SJf9jVv7 So0a6T3QeaxeEdFuFAzcuN+q2vhxSRySTSsilFGfhAF0pkZUio/SLjEk/jlybHj50naMftH+UVP DlCxXuCUeedOofIJlO4K7+q/51hA0VehoXAwn3AyPeEOJ7nU14lekmXbHYRw02S0HD/eqTw== X-Google-Smtp-Source: ABdhPJwRrTZ1sEhphdNijj9V2W/fV39Sm1S7kM/ZhBg2vPHIcaS6YX+O3XCFPw1e798Wk1uj1elzKA== X-Received: by 2002:a05:622a:248:: with SMTP id c8mr12811978qtx.122.1612135532893; Sun, 31 Jan 2021 15:25:32 -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 12sm11809361qkg.39.2021.01.31.15.25.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Jan 2021 15:25:32 -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 v7 08/21] ArmPkg: Add definition of the maximum cache level in ARMv8-A Date: Sun, 31 Jan 2021 16:24:58 -0700 Message-Id: <20210131232511.18340-9-rebecca@nuviainc.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210131232511.18340-1-rebecca@nuviainc.com> References: <20210131232511.18340-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