From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) by mx.groups.io with SMTP id smtpd.web10.852.1635884309624733175 for ; Tue, 02 Nov 2021 13:18:29 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@corthon-com.20210112.gappssmtp.com header.s=20210112 header.b=6bHzwcM9; spf=none, err=permanent DNS error (domain: corthon.com, ip: 209.85.210.174, mailfrom: bret@corthon.com) Received: by mail-pf1-f174.google.com with SMTP id h74so145353pfe.0 for ; Tue, 02 Nov 2021 13:18:29 -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=gSZjzMSdiMM40/vxHpFyC3V7F2kDbuHVAqjJxfBWIws=; b=6bHzwcM9MtFzfJ1nqT8JRjDzhv47NYiizAZN52RioI7/snhsondjCNAfU18Cf/lYO4 JABb3r3gH2Rae5YFXWhXm2nEA/U5djKiwRUGW4A96fwqh3WiY9Qhi1yhDmOzuDxLnO4t 5A9qS5ESPYvbrbdbigF7s6UF+JoWW0u4lByMxK3hDONIOXXzmfeenhWarPjXtoBXseWF yyvbs9nxhLyYrMmPSwSK1Fsv94YfVCHvVbqht8qE+/nquJuEnEzgD15jRuFoHkb8E8d4 zbweS/MS9QUtyG5Gb5iVo0MT7J5hxeQLJQAAYFyPM7Pme/ZI4ofp0YMYwvoxCmcG82Ir SEaA== 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=gSZjzMSdiMM40/vxHpFyC3V7F2kDbuHVAqjJxfBWIws=; b=X/5woOH7JPLEDb8YjVT1coimWCL0GOSil8v2IMVJwxp0k6TDpacB67wF8/4/BaYMEw 7d/M4FZjXg3bVObkdJUj4cbtzyQ4rqEFVGkqlE7dxvQBDMBy6Hv0ejyj6lZOtmYNBSg8 Lp4w2jUHCCR4o8Ebw+yMBE2v1ZPARHJZn6WBmus56G0HPlCtDM1CYRmAf1EJRE0N0kH/ xP+/knNmChqUH4jBq5sAor/bVN2/jwVRjlmR2AnJsCVB2OuAp4M378PhoOOTcofPTuM1 ahk89Q0LpiKPgqtl7fvx8yhu0Y1AqHWCd7YtybHT/e8kCXIxJzn+zhtpm3MtwLTeg4M7 5LUA== X-Gm-Message-State: AOAM530gclyYsC9yyOwjDL8slR2BKrlr/4LwS4kqT0lwufiUBZtC1uEh /FjwysW/DLTXFk8T1ihgs8lJs6ziIXo8RyoE X-Google-Smtp-Source: ABdhPJy8fA+CBvv5+1aLHtuuQUJqR09U2obbgMqcuCIvDl2QVzS9rCVTOJLUk5eSv+VUZ2MUud0ZfA== X-Received: by 2002:a05:6a00:1787:b0:481:1503:e631 with SMTP id s7-20020a056a00178700b004811503e631mr13858325pfg.6.1635884308914; Tue, 02 Nov 2021 13:18:28 -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 t24sm17652pfg.118.2021.11.02.13.18.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Nov 2021 13:18:28 -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 v2 02/16] ArmPkg/ArmMmuStandaloneMmLib: Update to match ArmMmuLib Date: Tue, 2 Nov 2021 13:17:34 -0700 Message-Id: <20211102201748.1963-3-brbarkel@microsoft.com> X-Mailer: git-send-email 2.31.1.windows.1 In-Reply-To: <20211102201748.1963-1-brbarkel@microsoft.com> References: <20211102201748.1963-1-brbarkel@microsoft.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Bret Barkelew Drop switch from the custom "StandaloneMmMmuLib" class to the more generic "ArmMmuLib" class and add the missing functions to fulfill that interface. 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