From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by mx.groups.io with SMTP id smtpd.web11.3036.1606782874441316558 for ; Mon, 30 Nov 2020 16:34:34 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@nuviainc-com.20150623.gappssmtp.com header.s=20150623 header.b=BNM3rhFZ; spf=pass (domain: nuviainc.com, ip: 209.85.210.194, mailfrom: rebecca@nuviainc.com) Received: by mail-pf1-f194.google.com with SMTP id y7so11505249pfq.11 for ; Mon, 30 Nov 2020 16:34:34 -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=X1slo98Qk4o1fzfoTn/jRHriRL/QxsOYfEVvwOetf1Q=; b=BNM3rhFZPMYvqn08orYe8I0m1es7yc+r8250BEd5lPWdIdRwUHBs4gXe6ZKwMreh3r E2fRENbIhBLg9kWmk4QqCsGHiPhT6IDYNVecHh06pjRebaoCeDHaE7iatk+vgaAIbPPY o/0pswUjO6v0McVAnXnVgCwC+MSD1j35qxTIvA/naHyL62lc4VdQZ7+4tvKYf507Ce5h vqgC8u/9iD3k+E3xlL9NhOOL7agRCKGN0P8gQLCSZ+YchPC22LbeCCaoXKG5KofnU45Z bl/k6yEED0JebPTrd9GN/56WYLegGtEdve8ZUTwJCBhpGqDH00bFqnbTQacyRmFBH4TR sOAg== 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=X1slo98Qk4o1fzfoTn/jRHriRL/QxsOYfEVvwOetf1Q=; b=isn6ae2n4+ZySXhWwSjqvKdY/KvEiHMHDgEfNIO2Gr3XwsfkvcW8HylNwpZcZvYfXG PwZ34iq69YFUo3U1r1ncTVuk3yk4AN8MiPNYZU2gN1Ojomnvt45UhyJnoItsxzgGW4nY VU+t/NaT556VNk3FA5BUKpJ95fcksnynlZFVZcifhf0DOeGQl/vYSkgY/ivdyPFzCmPD M1kVOFWtkjhxD1E4FZi5fvJeaopMTMEfJwdyp/d/G4W8vEKZg2nuHHpjnaq8F3FX0fG3 LXGWhBhGY2vr4bdVcGSF4rxqcX6c37MGyYKrziUOPxvX55z3bbv88pqP9XiB6D0sZpSo QyIA== X-Gm-Message-State: AOAM530LC9B9UpD3a1i1A8VwmTeLZCIjTCBs/wn9MHR9hB2huaTqDZE2 9yr/CkEXLESmiBk+BBg+P6QZc1Tcbbpyb8iFcJYiHDnjEtAkKORZcDXv2JZzwdKnP/Vgk7mcEf7 w0cPF49hojQI8Y3j0NJoOausJWIRLTQPAuRLUkf8IuqySCTbe2USQtN55pGfmcZfcgEvys11J X-Google-Smtp-Source: ABdhPJw0dA8NzdjD1hvrM2V26X2I23I8YYvw5Cw24vjmcrquwHfiiguWEWsKL7yQeE01EGS7jWIKkA== X-Received: by 2002:a63:df14:: with SMTP id u20mr20085575pgg.77.1606782873186; Mon, 30 Nov 2020 16:34:33 -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 22sm57899pjb.40.2020.11.30.16.34.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2020 16:34:32 -0800 (PST) From: "Rebecca Cran" To: devel@edk2.groups.io Cc: Rebecca Cran , Michael D Kinney , Liming Gao , Zhiguang Liu , Leif Lindholm , Ard Biesheuvel , Sami Mujawar Subject: [PATCH v4 04/11] ArmPkg: Add helper to read the Memory Model Features Register 2 Date: Mon, 30 Nov 2020 17:33:51 -0700 Message-Id: <20201201003358.8780-5-rebecca@nuviainc.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201201003358.8780-1-rebecca@nuviainc.com> References: <20201201003358.8780-1-rebecca@nuviainc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add helper function to read the MMFR2 register. We will need this to determine CCIDX support. Signed-off-by: Rebecca Cran --- ArmPkg/Library/ArmLib/AArch64/AArch64Lib.h | 6 ++++++ ArmPkg/Library/ArmLib/AArch64/AArch64Support.S | 3 +++ 2 files changed, 9 insertions(+) diff --git a/ArmPkg/Library/ArmLib/AArch64/AArch64Lib.h b/ArmPkg/Library/ArmLib/AArch64/AArch64Lib.h index b2c8a8ea0b84..d6bcfc3b82ae 100644 --- a/ArmPkg/Library/ArmLib/AArch64/AArch64Lib.h +++ b/ArmPkg/Library/ArmLib/AArch64/AArch64Lib.h @@ -35,5 +35,11 @@ ArmCleanInvalidateDataCacheEntryBySetWay ( IN UINTN SetWayFormat ); +UINTN +EFIAPI +ArmReadIdMmfr2 ( + VOID + ); + #endif // __AARCH64_LIB_H__ diff --git a/ArmPkg/Library/ArmLib/AArch64/AArch64Support.S b/ArmPkg/Library/ArmLib/AArch64/AArch64Support.S index 199374ff59e3..874bc2866ac3 100644 --- a/ArmPkg/Library/ArmLib/AArch64/AArch64Support.S +++ b/ArmPkg/Library/ArmLib/AArch64/AArch64Support.S @@ -424,6 +424,9 @@ ASM_FUNC(ArmCallWFI) wfi ret +ASM_FUNC(ArmReadIdMmfr2) + mrs x0, ID_AA64MMFR2_EL1 // read EL1 MMFR2 + ret ASM_FUNC(ArmReadMpidr) mrs x0, mpidr_el1 // read EL1 MPIDR -- 2.26.2