]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg DxeIpl: Move ClearFirst4KPage/IsNullDetectionEnabled definition
authorStar Zeng <star.zeng@intel.com>
Mon, 6 Nov 2017 07:21:04 +0000 (15:21 +0800)
committerStar Zeng <star.zeng@intel.com>
Mon, 11 Dec 2017 12:28:16 +0000 (20:28 +0800)
Move ClearFirst4KPage/IsNullDetectionEnabled definition from DxeIpl.h to
VirtualMemory.h as they are implemented in VirtualMemory.c and only used
in IA32/X64 ARCH.

Cc: Jian J Wang <jian.j.wang@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
MdeModulePkg/Core/DxeIplPeim/DxeIpl.h
MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.h

index f3aabdb7e0f02b2bde79f0d3ea848ef751bc0f5f..6f8e13d21335268a92fbd30caa33cd13c4c7ce55 100644 (file)
@@ -2,7 +2,7 @@
   Master header file for DxeIpl PEIM. All source files in this module should\r
   include this file for common definitions.\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\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -240,29 +240,4 @@ Decompress (
   OUT       UINTN                   *OutputSize\r
   );\r
 \r
-/**\r
-  Clear legacy memory located at the first 4K-page.\r
-\r
-  This function traverses the whole HOB list to check if memory from 0 to 4095\r
-  exists and has not been allocated, and then clear it if so.\r
-\r
-  @param HobStart         The start of HobList passed to DxeCore.\r
-\r
-**/\r
-VOID\r
-ClearFirst4KPage (\r
-  IN  VOID *HobStart\r
-  );\r
-\r
-/**\r
-  Return configure status of NULL pointer detection feature.\r
-\r
-  @return TRUE   NULL pointer detection feature is enabled\r
-  @return FALSE  NULL pointer detection feature is disabled\r
-**/\r
-BOOLEAN\r
-IsNullDetectionEnabled (\r
-  VOID\r
-  );\r
-\r
 #endif\r
index 7c9bb49e3e2cffe60797403bb0bdc6131c7074a1..26a2100f0b804c619835c1d9f0422b15a6c01822 100644 (file)
@@ -7,7 +7,7 @@
     3) IA-32 Intel(R) Architecture Software Developer's Manual Volume 3:System Programmer's Guide, Intel\r
     4) AMD64 Architecture Programmer's Manual Volume 2: System Programming\r
 \r
-Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>\r
 Copyright (c) 2017, AMD Incorporated. All rights reserved.<BR>\r
 \r
 This program and the accompanying materials\r
@@ -227,5 +227,29 @@ AsmGetVectorTemplatInfo (
   OUT   VOID  **TemplateBase\r
   );\r
 \r
+/**\r
+  Clear legacy memory located at the first 4K-page.\r
+\r
+  This function traverses the whole HOB list to check if memory from 0 to 4095\r
+  exists and has not been allocated, and then clear it if so.\r
+\r
+  @param HobStart         The start of HobList passed to DxeCore.\r
+\r
+**/\r
+VOID\r
+ClearFirst4KPage (\r
+  IN  VOID *HobStart\r
+  );\r
+\r
+/**\r
+  Return configure status of NULL pointer detection feature.\r
+\r
+  @return TRUE   NULL pointer detection feature is enabled\r
+  @return FALSE  NULL pointer detection feature is disabled\r
+**/\r
+BOOLEAN\r
+IsNullDetectionEnabled (\r
+  VOID\r
+  );\r
 \r
 #endif \r