]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg: Update comments in EFI_MEMORY_DESCRIPTOR according to UEFI2.7
authorDandan Bi <dandan.bi@intel.com>
Fri, 16 Jun 2017 03:36:15 +0000 (11:36 +0800)
committerHao Wu <hao.a.wu@intel.com>
Tue, 20 Jun 2017 01:29:42 +0000 (09:29 +0800)
Cc: Liming Gao <liming.gao@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
MdePkg/Include/Uefi/UefiSpec.h

index 57cb4e804f703e7e21c1cf6ca1b23b3aa65386ab..4eb9384c1b2e349c74068a56435e20876965cfd9 100644 (file)
@@ -5,7 +5,7 @@
   If a code construct is defined in the UEFI 2.6 specification it must be included\r
   by this include file.\r
 \r
-Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials are licensed and made available under \r
 the terms and conditions of the BSD License that accompanies this distribution.  \r
 The full text of the license may be found at\r
@@ -103,21 +103,28 @@ typedef enum {
 ///\r
 typedef struct {\r
   ///\r
-  /// Type of the memory region.  See EFI_MEMORY_TYPE.\r
+  /// Type of the memory region.\r
+  /// Type EFI_MEMORY_TYPE is defined in the\r
+  /// AllocatePages() function description.\r
   ///\r
   UINT32                Type;\r
   ///\r
-  /// Physical address of the first byte of the memory region.  Must aligned \r
-  /// on a 4 KB boundary.\r
+  /// Physical address of the first byte in the memory region. PhysicalStart must be\r
+  /// aligned on a 4 KiB boundary, and must not be above 0xfffffffffffff000. Type\r
+  /// EFI_PHYSICAL_ADDRESS is defined in the AllocatePages() function description\r
   ///\r
   EFI_PHYSICAL_ADDRESS  PhysicalStart;\r
   ///\r
-  /// Virtual address of the first byte of the memory region.  Must aligned \r
-  /// on a 4 KB boundary.\r
+  /// Virtual address of the first byte in the memory region.\r
+  /// VirtualStart must be aligned on a 4 KiB boundary,\r
+  /// and must not be above 0xfffffffffffff000.\r
   ///\r
   EFI_VIRTUAL_ADDRESS   VirtualStart;\r
   ///\r
-  /// Number of 4KB pages in the memory region.\r
+  /// NumberOfPagesNumber of 4 KiB pages in the memory region.\r
+  /// NumberOfPages must not be 0, and must not be any value\r
+  /// that would represent a memory page with a start address,\r
+  /// either physical or virtual, above 0xfffffffffffff000.\r
   ///\r
   UINT64                NumberOfPages;\r
   ///\r