X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=OvmfPkg%2FInclude%2FLibrary%2FLoadLinuxLib.h;h=d33249903cf2e38e80b1cafbbd91ee157e2b17fe;hp=d1064d239a729980cf9b9dd62210f19bab804e92;hb=61a044c6c15f5806a30ff23409ba5287d9d07163;hpb=f6c6c020286e230a4d72e4f91ab433e5619e83af diff --git a/OvmfPkg/Include/Library/LoadLinuxLib.h b/OvmfPkg/Include/Library/LoadLinuxLib.h index d1064d239a..d33249903c 100644 --- a/OvmfPkg/Include/Library/LoadLinuxLib.h +++ b/OvmfPkg/Include/Library/LoadLinuxLib.h @@ -1,7 +1,7 @@ /** @file Load/boot UEFI Linux. - Copyright (c) 2011 - 2012, Intel Corporation. All rights reserved.
+ Copyright (c) 2011 - 2013, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -44,7 +44,7 @@ LoadLinuxCheckKernelSetup ( @param[in] KernelSetup - The kernel setup image @param[in] KernelSize - The kernel size on disk. - @retval 0 An error occured + @retval 0 An error occurred @retval !0 The initial size required by the kernel to begin execution. @@ -94,6 +94,26 @@ LoadLinuxAllocateKernelSetupPages ( ); +/** + Clears the uninitialised space before and after the struct setup_header + in the kernel setup image. The kernel requires that these be zeroed + unless explicitly initialised, so this function should be called after + the setup_header has been copied in from a bzImage, before setting up + anything else. + + @param[in] KernelSetup - The kernel setup image + + @retval EFI_SUCCESS - The Linux kernel setup was successfully initialized + @retval EFI_INVALID_PARAMETER - KernelSetup was NULL + @retval EFI_UNSUPPORTED - The Linux kernel is not supported + +**/ +EFI_STATUS +EFIAPI +LoadLinuxInitializeKernelSetup ( + IN VOID *KernelSetup + ); + /** Allocates pages for the kernel.