[edk2] [PATCH v3 17/17] BaseTools/AutoGen: Update header file for MM modules.

Supreeth Venkatesh posted 17 patches 6 years, 11 months ago
Only 2 patches received!
[edk2] [PATCH v3 17/17] BaseTools/AutoGen: Update header file for MM modules.
Posted by Supreeth Venkatesh 6 years, 11 months ago
This patch corrects the Module Type Header file for Management Mode(MM)
as specified in PI v1.6 Specification. Also, it updates parameter for
auto generated template functions from EFI_SMM_SYSTEM_TABLE2 to
EFI_MM_SYSTEM_TABLE.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Supreeth Venkatesh <supreeth.venkatesh@arm.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
---
 BaseTools/Source/Python/AutoGen/GenC.py | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/BaseTools/Source/Python/AutoGen/GenC.py b/BaseTools/Source/Python/AutoGen/GenC.py
index 1be27d2b89..9b1a9fac12 100644
--- a/BaseTools/Source/Python/AutoGen/GenC.py
+++ b/BaseTools/Source/Python/AutoGen/GenC.py
@@ -265,7 +265,7 @@ EFI_STATUS
 EFIAPI
 ${Function} (
   IN EFI_HANDLE            ImageHandle,
-  IN EFI_SMM_SYSTEM_TABLE2 *MmSystemTable
+  IN EFI_MM_SYSTEM_TABLE   *MmSystemTable
   );
 ${END}
 """)
@@ -278,7 +278,7 @@ EFI_STATUS
 EFIAPI
 ProcessModuleEntryPointList (
   IN EFI_HANDLE            ImageHandle,
-  IN EFI_SMM_SYSTEM_TABLE2 *MmSystemTable
+  IN EFI_MM_SYSTEM_TABLE   *MmSystemTable
   )
 
 {
@@ -292,7 +292,7 @@ EFI_STATUS
 EFIAPI
 ProcessModuleEntryPointList (
   IN EFI_HANDLE            ImageHandle,
-  IN EFI_SMM_SYSTEM_TABLE2 *MmSystemTable
+  IN EFI_MM_SYSTEM_TABLE   *MmSystemTable
   )
 
 {
@@ -307,7 +307,7 @@ EFI_STATUS
 EFIAPI
 ProcessModuleEntryPointList (
   IN EFI_HANDLE            ImageHandle,
-  IN EFI_SMM_SYSTEM_TABLE2 *MmSystemTable
+  IN EFI_MM_SYSTEM_TABLE   *MmSystemTable
   )
 
 {
@@ -675,7 +675,7 @@ EFI_STATUS
 EFIAPI
 ${Function} (
   IN EFI_HANDLE            ImageHandle,
-  IN EFI_SMM_SYSTEM_TABLE2  *MmSystemTable
+  IN EFI_MM_SYSTEM_TABLE   *MmSystemTable
   );${END}
 """),
 }
@@ -755,7 +755,7 @@ VOID
 EFIAPI
 ProcessLibrary${Type}List (
   IN EFI_HANDLE            ImageHandle,
-  IN EFI_SMM_SYSTEM_TABLE2  *MmSystemTable
+  IN EFI_MM_SYSTEM_TABLE   *MmSystemTable
   )
 {
 ${BEGIN}  EFI_STATUS  Status;
@@ -779,8 +779,8 @@ gModuleTypeHeaderFile = {
     SUP_MODULE_UEFI_DRIVER       :   ["Uefi.h",  "Library/BaseLib.h", "Library/DebugLib.h", "Library/UefiBootServicesTableLib.h", "Library/UefiDriverEntryPoint.h"],
     SUP_MODULE_UEFI_APPLICATION  :   ["Uefi.h",  "Library/BaseLib.h", "Library/DebugLib.h", "Library/UefiBootServicesTableLib.h", "Library/UefiApplicationEntryPoint.h"],
     SUP_MODULE_SMM_CORE          :   ["PiDxe.h", "Library/BaseLib.h", "Library/DebugLib.h", "Library/UefiDriverEntryPoint.h"],
-    SUP_MODULE_MM_STANDALONE     :   ["PiSmm.h", "Library/BaseLib.h", "Library/DebugLib.h", "Library/SmmDriverStandaloneEntryPoint.h"],
-    SUP_MODULE_MM_CORE_STANDALONE :  ["PiSmm.h", "Library/BaseLib.h", "Library/DebugLib.h", "Library/SmmCoreStandaloneEntryPoint.h"],
+    SUP_MODULE_MM_STANDALONE     :   ["PiMm.h", "Library/BaseLib.h", "Library/DebugLib.h", "Library/StandaloneMmDriverEntryPoint.h"],
+    SUP_MODULE_MM_CORE_STANDALONE :  ["PiMm.h", "Library/BaseLib.h", "Library/DebugLib.h", "Library/StandaloneMmCoreEntryPoint.h"],
     SUP_MODULE_USER_DEFINED      :   [gBasicHeaderFile]
 }
 
-- 
2.17.0

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
Re: [edk2] [PATCH v3 17/17] BaseTools/AutoGen: Update header file for MM modules.
Posted by Gao, Liming 6 years, 11 months ago
Reviewed-by: Liming Gao <liming.gao@intel.com>

>-----Original Message-----
>From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of
>Supreeth Venkatesh
>Sent: Tuesday, June 05, 2018 6:14 AM
>To: edk2-devel@lists.01.org
>Cc: Yao, Jiewen <jiewen.yao@intel.com>; Gao, Liming <liming.gao@intel.com>
>Subject: [edk2] [PATCH v3 17/17] BaseTools/AutoGen: Update header file for
>MM modules.
>
>This patch corrects the Module Type Header file for Management Mode(MM)
>as specified in PI v1.6 Specification. Also, it updates parameter for
>auto generated template functions from EFI_SMM_SYSTEM_TABLE2 to
>EFI_MM_SYSTEM_TABLE.
>
>Contributed-under: TianoCore Contribution Agreement 1.1
>Signed-off-by: Supreeth Venkatesh <supreeth.venkatesh@arm.com>
>Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
>---
> BaseTools/Source/Python/AutoGen/GenC.py | 16 ++++++++--------
> 1 file changed, 8 insertions(+), 8 deletions(-)
>
>diff --git a/BaseTools/Source/Python/AutoGen/GenC.py
>b/BaseTools/Source/Python/AutoGen/GenC.py
>index 1be27d2b89..9b1a9fac12 100644
>--- a/BaseTools/Source/Python/AutoGen/GenC.py
>+++ b/BaseTools/Source/Python/AutoGen/GenC.py
>@@ -265,7 +265,7 @@ EFI_STATUS
> EFIAPI
> ${Function} (
>   IN EFI_HANDLE            ImageHandle,
>-  IN EFI_SMM_SYSTEM_TABLE2 *MmSystemTable
>+  IN EFI_MM_SYSTEM_TABLE   *MmSystemTable
>   );
> ${END}
> """)
>@@ -278,7 +278,7 @@ EFI_STATUS
> EFIAPI
> ProcessModuleEntryPointList (
>   IN EFI_HANDLE            ImageHandle,
>-  IN EFI_SMM_SYSTEM_TABLE2 *MmSystemTable
>+  IN EFI_MM_SYSTEM_TABLE   *MmSystemTable
>   )
>
> {
>@@ -292,7 +292,7 @@ EFI_STATUS
> EFIAPI
> ProcessModuleEntryPointList (
>   IN EFI_HANDLE            ImageHandle,
>-  IN EFI_SMM_SYSTEM_TABLE2 *MmSystemTable
>+  IN EFI_MM_SYSTEM_TABLE   *MmSystemTable
>   )
>
> {
>@@ -307,7 +307,7 @@ EFI_STATUS
> EFIAPI
> ProcessModuleEntryPointList (
>   IN EFI_HANDLE            ImageHandle,
>-  IN EFI_SMM_SYSTEM_TABLE2 *MmSystemTable
>+  IN EFI_MM_SYSTEM_TABLE   *MmSystemTable
>   )
>
> {
>@@ -675,7 +675,7 @@ EFI_STATUS
> EFIAPI
> ${Function} (
>   IN EFI_HANDLE            ImageHandle,
>-  IN EFI_SMM_SYSTEM_TABLE2  *MmSystemTable
>+  IN EFI_MM_SYSTEM_TABLE   *MmSystemTable
>   );${END}
> """),
> }
>@@ -755,7 +755,7 @@ VOID
> EFIAPI
> ProcessLibrary${Type}List (
>   IN EFI_HANDLE            ImageHandle,
>-  IN EFI_SMM_SYSTEM_TABLE2  *MmSystemTable
>+  IN EFI_MM_SYSTEM_TABLE   *MmSystemTable
>   )
> {
> ${BEGIN}  EFI_STATUS  Status;
>@@ -779,8 +779,8 @@ gModuleTypeHeaderFile = {
>     SUP_MODULE_UEFI_DRIVER       :   ["Uefi.h",  "Library/BaseLib.h",
>"Library/DebugLib.h", "Library/UefiBootServicesTableLib.h",
>"Library/UefiDriverEntryPoint.h"],
>     SUP_MODULE_UEFI_APPLICATION  :   ["Uefi.h",  "Library/BaseLib.h",
>"Library/DebugLib.h", "Library/UefiBootServicesTableLib.h",
>"Library/UefiApplicationEntryPoint.h"],
>     SUP_MODULE_SMM_CORE          :   ["PiDxe.h", "Library/BaseLib.h",
>"Library/DebugLib.h", "Library/UefiDriverEntryPoint.h"],
>-    SUP_MODULE_MM_STANDALONE     :   ["PiSmm.h", "Library/BaseLib.h",
>"Library/DebugLib.h", "Library/SmmDriverStandaloneEntryPoint.h"],
>-    SUP_MODULE_MM_CORE_STANDALONE :  ["PiSmm.h",
>"Library/BaseLib.h", "Library/DebugLib.h",
>"Library/SmmCoreStandaloneEntryPoint.h"],
>+    SUP_MODULE_MM_STANDALONE     :   ["PiMm.h", "Library/BaseLib.h",
>"Library/DebugLib.h", "Library/StandaloneMmDriverEntryPoint.h"],
>+    SUP_MODULE_MM_CORE_STANDALONE :  ["PiMm.h",
>"Library/BaseLib.h", "Library/DebugLib.h",
>"Library/StandaloneMmCoreEntryPoint.h"],
>     SUP_MODULE_USER_DEFINED      :   [gBasicHeaderFile]
> }
>
>--
>2.17.0
>
>_______________________________________________
>edk2-devel mailing list
>edk2-devel@lists.01.org
>https://lists.01.org/mailman/listinfo/edk2-devel
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel