From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by mx.groups.io with SMTP id smtpd.web10.4016.1636590288274749828 for ; Wed, 10 Nov 2021 16:24:48 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@corthon-com.20210112.gappssmtp.com header.s=20210112 header.b=NxMxDZwI; spf=none, err=permanent DNS error (domain: corthon.com, ip: 209.85.216.47, mailfrom: bret@corthon.com) Received: by mail-pj1-f47.google.com with SMTP id nh10-20020a17090b364a00b001a69adad5ebso3270821pjb.2 for ; Wed, 10 Nov 2021 16:24:48 -0800 (PST) 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=Shz5f3NQx3XXQ8ZSEqKIe5YWudoRmOXf8GTJn5WfPzY=; b=NxMxDZwIaaPDwoqeAeqkecL7BrTALeQrT6EJAChs+Dub+S/cndahFmHH3HcvDSOqO4 gXVgwOtywN0eYqVN5qs7dUty/6EgLLumaxq6IJTWtrK0uqAv/6hZ9ZHo89vFbqzJ6LKZ pdkuw6T4k5XUQzLfQBUa2yVzaK5FX3aN/rBsa6I7bkVbPEIK3+5FVTbQJ+pFRAYXHSbT 1XC5EvxO+ODN1JCjTC+BfhW2JhtxFzONfer7Xtgpzl/oJFlmftpCFNoOjW+I+VKySg/8 9lu9U14gnXGGUEybJDFv0bIBKrq0A9VQZcBHPvkLcxH7hkpDY/2TFPMAHeALmCSrT110 SIXA== 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=Shz5f3NQx3XXQ8ZSEqKIe5YWudoRmOXf8GTJn5WfPzY=; b=qUa72ElvzSkt/tXRXX+fMD8OdDMmW+K4BG78m04UNJig24q+qWer07lxa0bqs6qGJ/ 4UcDts31rtvi0i8yAh9e+wIflZVoEWdTopFcx65IfAypHNNW9LUkD5Kj4EV59h/DrX/m 1fWyddg4AztvdzmtR+Z19KJQZTyxaVlcW+YadiQ5cZRAa53deQMJ2IYzOTkYSBrFJqJo MlzyXAcxyWZ8eAQDmuZ4h8tXiH6JYNo/d7l/unh3Deg8pb6BOppE9t34FtTJQXmdJEBI CFSoasrA/H4poWGF30Ju0em4SrchRLLtfMVkn8RQ+iloBUoid3+HaKUXP68bRuaSWr4l 3Bzg== X-Gm-Message-State: AOAM531FAi/sJeMkcb/3QoDO7pToAp10EvsuQKbhE+AzLOkBAN8xEo/Q tvqYRYwaTjJKPjkgdrQgALUBsWA4+d54U4nv X-Google-Smtp-Source: ABdhPJxGyGaYlrqNN55tT+mjUB0odgLTSB5fxTA71DNXCwSK9lfLtayDn3txr45fV9j71L7xtR/nNw== X-Received: by 2002:a17:903:286:b0:142:4abc:88b8 with SMTP id j6-20020a170903028600b001424abc88b8mr3605545plr.25.1636590287567; Wed, 10 Nov 2021 16:24:47 -0800 (PST) Return-Path: Received: from localhost.localdomain (174-21-94-94.tukw.qwest.net. [174.21.94.94]) by smtp.gmail.com with ESMTPSA id e14sm838890pfv.18.2021.11.10.16.24.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Nov 2021 16:24:47 -0800 (PST) From: "Bret Barkelew" X-Google-Original-From: "brbarkel@microsoft.com" To: devel@edk2.groups.io Cc: Leif Lindholm , Ard Biesheuvel , Sean Brogan Subject: [PATCH v3 04/14] ArmPkg: Disavow StandaloneMmMmuLib. It's just ArmMmuLib Date: Wed, 10 Nov 2021 16:24:06 -0800 Message-Id: <20211111002416.1770-5-brbarkel@microsoft.com> X-Mailer: git-send-email 2.31.1.windows.1 In-Reply-To: <20211111002416.1770-1-brbarkel@microsoft.com> References: <20211111002416.1770-1-brbarkel@microsoft.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Bret Barkelew This extra interface is redundant and unnecessary. Dropping it is more EDK2-ish. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3647 Cc: Leif Lindholm Cc: Ard Biesheuvel Cc: Sean Brogan Signed-off-by: Bret Barkelew Reviewed-by: Leif Lindholm --- ArmPkg/ArmPkg.dec | 4 --- ArmPkg/Include/Library/StandaloneMmMmuLib.h | 36 -------------------- 2 files changed, 40 deletions(-) diff --git a/ArmPkg/ArmPkg.dec b/ArmPkg/ArmPkg.dec index 9da1bbc9f216..f5c235ecc11b 100644 --- a/ArmPkg/ArmPkg.dec +++ b/ArmPkg/ArmPkg.dec @@ -88,10 +88,6 @@ [LibraryClasses.common] #=0D SemihostLib|Include/Library/SemihostLib.h=0D =0D - ## @libraryclass Provides an interface for a StandaloneMm Mmu.=0D - #=0D - StandaloneMmMmuLib|Include/Library/StandaloneMmMmuLib.h=0D -=0D [Guids.common]=0D gArmTokenSpaceGuid =3D { 0xBB11ECFE, 0x820F, 0x4968, { 0xBB, 0xA6,= 0xF7, 0x6A, 0xFE, 0x30, 0x25, 0x96 } }=0D =0D diff --git a/ArmPkg/Include/Library/StandaloneMmMmuLib.h b/ArmPkg/Include/L= ibrary/StandaloneMmMmuLib.h deleted file mode 100644 index ccc016d0350a..000000000000 --- a/ArmPkg/Include/Library/StandaloneMmMmuLib.h +++ /dev/null @@ -1,36 +0,0 @@ -/** @file=0D -=0D - Copyright (c) 2018, ARM Ltd. All rights reserved.=0D -=0D - SPDX-License-Identifier: BSD-2-Clause-Patent=0D -=0D -**/=0D -=0D -#ifndef STANDALONE_MM_MMU_LIB_=0D -#define STANDALONE_MM_MMU_LIB_=0D -=0D -EFI_STATUS=0D -ArmSetMemoryRegionNoExec (=0D - IN EFI_PHYSICAL_ADDRESS BaseAddress,=0D - IN UINT64 Length=0D - );=0D -=0D -EFI_STATUS=0D -ArmClearMemoryRegionNoExec (=0D - IN EFI_PHYSICAL_ADDRESS BaseAddress,=0D - IN UINT64 Length=0D - );=0D -=0D -EFI_STATUS=0D -ArmSetMemoryRegionReadOnly (=0D - IN EFI_PHYSICAL_ADDRESS BaseAddress,=0D - IN UINT64 Length=0D - );=0D -=0D -EFI_STATUS=0D -ArmClearMemoryRegionReadOnly (=0D - IN EFI_PHYSICAL_ADDRESS BaseAddress,=0D - IN UINT64 Length=0D - );=0D -=0D -#endif /* STANDALONE_MM_MMU_LIB_ */=0D --=20 2.31.1.windows.1