]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Include/Library/LoadLinuxLib.h
OvmfPkg/MemEncryptSevLib: find pages of initial SMRAM save state map
[mirror_edk2.git] / OvmfPkg / Include / Library / LoadLinuxLib.h
index d1064d239a729980cf9b9dd62210f19bab804e92..d33249903cf2e38e80b1cafbbd91ee157e2b17fe 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Load/boot UEFI Linux.\r
 \r
-  Copyright (c) 2011 - 2012, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2011 - 2013, 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
@@ -44,7 +44,7 @@ LoadLinuxCheckKernelSetup (
   @param[in]     KernelSetup - The kernel setup image\r
   @param[in]     KernelSize - The kernel size on disk.\r
 \r
-  @retval    0                An error occured\r
+  @retval    0                An error occurred\r
   @retval    !0               The initial size required by the kernel to\r
                               begin execution.\r
 \r
@@ -94,6 +94,26 @@ LoadLinuxAllocateKernelSetupPages (
   );\r
 \r
 \r
+/**\r
+  Clears the uninitialised space before and after the struct setup_header\r
+  in the kernel setup image. The kernel requires that these be zeroed\r
+  unless explicitly initialised, so this function should be called after\r
+  the setup_header has been copied in from a bzImage, before setting up\r
+  anything else.\r
+\r
+  @param[in]     KernelSetup - The kernel setup image\r
+\r
+  @retval    EFI_SUCCESS - The Linux kernel setup was successfully initialized\r
+  @retval    EFI_INVALID_PARAMETER - KernelSetup was NULL\r
+  @retval    EFI_UNSUPPORTED - The Linux kernel is not supported\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+LoadLinuxInitializeKernelSetup (\r
+  IN VOID        *KernelSetup\r
+  );\r
+\r
 /**\r
   Allocates pages for the kernel.\r
 \r