From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f173.google.com (mail-pg1-f173.google.com [209.85.215.173]) by mx.groups.io with SMTP id smtpd.web08.1599.1635796653773273946 for ; Mon, 01 Nov 2021 12:57:34 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@corthon-com.20210112.gappssmtp.com header.s=20210112 header.b=Nq/QQNPu; spf=none, err=permanent DNS error (domain: corthon.com, ip: 209.85.215.173, mailfrom: bret@corthon.com) Received: by mail-pg1-f173.google.com with SMTP id r28so18205673pga.0 for ; Mon, 01 Nov 2021 12:57:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corthon-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RgVuJCFWYQLjqiPjTPjkemrDePT1cGbFUnNdOaAOnfQ=; b=Nq/QQNPus1L77tPLFGwC/cenGWuh/oJZN+n2S6waRkrfwNFAcgtL1ZreXTvCIZTKzr dU1j29iwKVJ/0s/psd94zeFJz1n5uC6KuAXFh7VsCmdn6qd89fXl7MMkIjnxtUXK+Bx0 P4VKZszysVM+5vjDST7egmF1cNsrqnUCtdp+Da8toKbQN/7nEubnFxXwVXZ6sDtVAFe5 9XiHxJVEN9uRcSzuq40MC0O/pAt4oqdkTvbLLh9Nl7boOdJG3vBbvWmvOGEcQKK9l05s bwzrsBxMFAzco74PsW+ffbu1XzArBLI0iAxbTlq32mM2SrP02JRiY043Q2FZsOH3oMy1 mWtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RgVuJCFWYQLjqiPjTPjkemrDePT1cGbFUnNdOaAOnfQ=; b=3Bs4psTmqEXHnBxgWRUPOyz4busbxqQlyKXuOfi2xvfYuVFCr//vK+nIgYClz4afQY sVBmsDyV3wXRd5yuWTN9GRegayD7FEFUU+ZaNa+8KyeuoY1WV7zkyZQ26tRShe5Qg3q+ iUN+f0b5vea67eoYLpQ4S0s/bPqwBtbg1aB+uoOln7KuMHmyt7hMCi5lZ1cvR+gG+Um8 kMbJ/nVMVNe5j6XoPpkI0Nf9v9SiUN/nonP3qwPJwSYm7YOJ6IF8ASVWh1wdhtpE1jt1 YO4k4a1S1l9Gy0SZcEhm+rY60xmvSvV1w/DGyVu7b6ml2Fa8iL28CLWlpV49NQCedNVv lXnA== X-Gm-Message-State: AOAM532GQnQIO/XX63b0/y13+opSPh412ClpyBAuHxMHvecEa5bI5kEK vZ23KpKwV8RPIczOZVSdfOfBPQkBjwBhXew8 X-Google-Smtp-Source: ABdhPJxUvKSDjikommywUXfeW35GydNJmIaBIzh9APKQxsRfbzD9h4EaMCxWsH9wXOQgZELhQ7PoNQ== X-Received: by 2002:a62:e719:0:b0:480:a0ab:c6bc with SMTP id s25-20020a62e719000000b00480a0abc6bcmr15826189pfh.79.1635796653108; Mon, 01 Nov 2021 12:57:33 -0700 (PDT) Return-Path: Received: from localhost.localdomain (174-21-94-94.tukw.qwest.net. [174.21.94.94]) by smtp.gmail.com with ESMTPSA id t2sm13759796pgf.35.2021.11.01.12.57.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Nov 2021 12:57:32 -0700 (PDT) From: "Bret Barkelew" X-Google-Original-From: "brbarkel@microsoft.com" To: devel@edk2.groups.io Cc: Leif Lindholm , Ard Biesheuvel , Sean Brogan Subject: [PATCH v1 02/16] ArmPkg/ArmMmuStandaloneMmLib: Update to match ArmMmuLib Date: Mon, 1 Nov 2021 12:56:34 -0700 Message-Id: <20211101195648.6420-3-brbarkel@microsoft.com> X-Mailer: git-send-email 2.31.1.windows.1 In-Reply-To: <20211101195648.6420-1-brbarkel@microsoft.com> References: <20211101195648.6420-1-brbarkel@microsoft.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Bret Barkelew REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3647 Cc: Leif Lindholm Cc: Ard Biesheuvel Cc: Sean Brogan Signed-off-by: Bret Barkelew --- ArmPkg/Library/StandaloneMmMmuLib/ArmMmuStandaloneMmLib.c | 37 +++++++++= +++++++++++ ArmPkg/Library/StandaloneMmMmuLib/ArmMmuStandaloneMmLib.inf | 2 +- 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/ArmPkg/Library/StandaloneMmMmuLib/ArmMmuStandaloneMmLib.c b/Ar= mPkg/Library/StandaloneMmMmuLib/ArmMmuStandaloneMmLib.c index 20f873e6802c..42216bf40ac7 100644 --- a/ArmPkg/Library/StandaloneMmMmuLib/ArmMmuStandaloneMmLib.c +++ b/ArmPkg/Library/StandaloneMmMmuLib/ArmMmuStandaloneMmLib.c @@ -325,3 +325,40 @@ ArmClearMemoryRegionReadOnly ( }=0D return Status;=0D }=0D +=0D +EFI_STATUS=0D +EFIAPI=0D +ArmConfigureMmu (=0D + IN ARM_MEMORY_REGION_DESCRIPTOR *MemoryTable,=0D + OUT VOID **TranslationTableBase OPTIONAL,=0D + OUT UINTN *TranslationTableSize OPTIONAL=0D + )=0D +{=0D + DEBUG ((DEBUG_ERROR, "%a() interface not implemented!\n", __FUNCTION__))= ;=0D + ASSERT (FALSE);=0D + return EFI_UNSUPPORTED;=0D +}=0D +=0D +VOID=0D +EFIAPI=0D +ArmReplaceLiveTranslationEntry (=0D + IN UINT64 *Entry,=0D + IN UINT64 Value,=0D + IN UINT64 RegionStart=0D + )=0D +{=0D + DEBUG ((DEBUG_ERROR, "%a() interface not implemented!\n", __FUNCTION__))= ;=0D + ASSERT (FALSE);=0D +}=0D +=0D +EFI_STATUS=0D +ArmSetMemoryAttributes (=0D + IN EFI_PHYSICAL_ADDRESS BaseAddress,=0D + IN UINT64 Length,=0D + IN UINT64 Attributes=0D + )=0D +{=0D + DEBUG ((DEBUG_ERROR, "%a() interface not implemented!\n", __FUNCTION__))= ;=0D + ASSERT (FALSE);=0D + return EFI_UNSUPPORTED;=0D +}=0D diff --git a/ArmPkg/Library/StandaloneMmMmuLib/ArmMmuStandaloneMmLib.inf b/= ArmPkg/Library/StandaloneMmMmuLib/ArmMmuStandaloneMmLib.inf index ff20e5898051..d34086853d32 100644 --- a/ArmPkg/Library/StandaloneMmMmuLib/ArmMmuStandaloneMmLib.inf +++ b/ArmPkg/Library/StandaloneMmMmuLib/ArmMmuStandaloneMmLib.inf @@ -13,7 +13,7 @@ [Defines] FILE_GUID =3D 44a741c2-655f-41fc-b066-179f5a9aa78a= =0D MODULE_TYPE =3D MM_CORE_STANDALONE=0D VERSION_STRING =3D 1.0=0D - LIBRARY_CLASS =3D StandaloneMmMmuLib=0D + LIBRARY_CLASS =3D ArmMmuLib | MM_CORE_STANDALONE MM_STA= NDALONE=0D PI_SPECIFICATION_VERSION =3D 0x00010032=0D =0D [Sources]=0D --=20 2.31.1.windows.1