]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Change related:
authorydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 6 Sep 2011 08:45:42 +0000 (08:45 +0000)
committerydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 6 Sep 2011 08:45:42 +0000 (08:45 +0000)
1. Refine comments to remove the unrecognized code.
2. Add code to avoid potential data type change.
3. In inf file, add module type to the library class list.

Signed-off-by: ydong10
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12284 6f19259b-4bc3-4df7-8a09-765794883524

SecurityPkg/Library/PlatformSecureLibNull/PlatformSecureLibNull.inf
SecurityPkg/Tcg/TcgDxe/TcgDxe.c
SecurityPkg/Tcg/TcgSmm/TcgSmm.c

index 5750198aa7047ebf1af270c1e200b4e0603beae0..dc119f2b1ca841de2c824049d7a1f7311ee0f222 100644 (file)
@@ -17,7 +17,7 @@
   FILE_GUID                      = 7FA68D82-10A4-4e71-9524-D3D9500D3CDF\r
   MODULE_TYPE                    = DXE_DRIVER\r
   VERSION_STRING                 = 1.0\r
-  LIBRARY_CLASS                  = PlatformSecureLib|DXE_RUNTIME_DRIVER DXE_SMM_DRIVER\r
+  LIBRARY_CLASS                  = PlatformSecureLib|DXE_RUNTIME_DRIVER DXE_SMM_DRIVER DXE_DRIVER\r
 \r
 \r
 #\r
index 4cb5d3084b241604ec8f0c4e9dd9d1ebe893e728..05a11360d46b16d3339c9ec580c0619227da23d7 100644 (file)
@@ -1006,7 +1006,7 @@ OnReadyToBoot (
 /**\r
   Install TCG ACPI Table when ACPI Table Protocol is available.\r
 \r
-  A system¡¯s firmware uses an ACPI table to identify the system's TCG capabilities \r
+  A system's firmware uses an ACPI table to identify the system's TCG capabilities \r
   to the Post-Boot environment. The information in this ACPI table is not guaranteed \r
   to be valid until the Host Platform transitions from pre-boot state to post-boot state.  \r
 \r
index 9116944081656eacc04f62a32190f948f1c71b64..ab2df664d771a90bdcb0de10e569f69623c185ea 100644 (file)
@@ -374,7 +374,7 @@ PublishAcpiTable (
   ASSERT_EFI_ERROR (Status);\r
 \r
   ASSERT (Table->OemTableId == SIGNATURE_64 ('T', 'c', 'g', 'T', 'a', 'b', 'l', 'e'));\r
-  mTcgNvs = AssignOpRegion (Table, SIGNATURE_32 ('T', 'N', 'V', 'S'), sizeof (TCG_NVS));\r
+  mTcgNvs = AssignOpRegion (Table, SIGNATURE_32 ('T', 'N', 'V', 'S'), (UINT16) sizeof (TCG_NVS));\r
   ASSERT (mTcgNvs != NULL);\r
 \r
   //\r