OpenCore
1.0.4
OpenCore Bootloader
|
#include <IndustryStandard/AppleCsrConfig.h>
#include <Library/OcMainLib.h>
#include <Guid/AppleVariable.h>
#include <Guid/OcVariable.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/DevicePathLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/OcAcpiLib.h>
#include <Library/OcAppleBootPolicyLib.h>
#include <Library/OcAppleDiskImageLib.h>
#include <Library/OcAudioLib.h>
#include <Library/OcBootManagementLib.h>
#include <Library/OcConsoleLib.h>
#include <Library/OcCpuLib.h>
#include <Library/OcDebugLogLib.h>
#include <Library/OcDeviceMiscLib.h>
#include <Library/OcLogAggregatorLib.h>
#include <Library/OcSmbiosLib.h>
#include <Library/OcStringLib.h>
#include <Library/OcVariableLib.h>
#include <Library/PcdLib.h>
#include <Library/PrintLib.h>
#include <Library/SerialPortLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
#include <Protocol/OcInterface.h>
#include <ShimVars.h>
Go to the source code of this file.
Functions | |
STATIC VOID | OcStoreLoadPath (IN EFI_DEVICE_PATH_PROTOCOL *LoadPath OPTIONAL) |
STATIC EFI_STATUS | ProduceDebugReport (IN EFI_HANDLE VolumeHandle) |
STATIC EFI_STATUS EFIAPI | OcToolLoadEntry (IN OC_STORAGE_CONTEXT *Storage, IN OC_BOOT_ENTRY *ChosenEntry, OUT VOID **Data, OUT UINT32 *DataSize, OUT EFI_DEVICE_PATH_PROTOCOL **DevicePath, OUT EFI_HANDLE *StorageHandle, OUT EFI_DEVICE_PATH_PROTOCOL **StoragePath, IN OC_DMG_LOADING_SUPPORT DmgLoading, OUT OC_APPLE_DISK_IMAGE_PRELOAD_CONTEXT *DmgPreloadContext, OUT VOID **CustomFreeContext) |
STATIC VOID | SavePanicLog (IN OC_STORAGE_CONTEXT *Storage) |
CONST CHAR8 * | OcMiscGetVersionString (VOID) |
EFI_STATUS | OcMiscEarlyInit (IN OC_STORAGE_CONTEXT *Storage, OUT OC_GLOBAL_CONFIG *Config, IN OC_RSA_PUBLIC_KEY *VaultKey OPTIONAL) |
STATIC CHAR16 * | BuildLauncherPath (IN CONST CHAR16 *RootPath, IN CONST CHAR8 *LauncherPath, OUT CONST CHAR16 **MatchSuffix) |
VOID | OcMiscMiddleInit (IN OC_STORAGE_CONTEXT *Storage, IN OC_GLOBAL_CONFIG *Config, IN CONST CHAR16 *RootPath, IN EFI_DEVICE_PATH_PROTOCOL *LoadPath, IN EFI_HANDLE StorageHandle, OUT UINT8 *Signature OPTIONAL) |
EFI_STATUS | OcMiscLateInit (IN OC_STORAGE_CONTEXT *Storage, IN OC_GLOBAL_CONFIG *Config) |
VOID | OcMiscLoadSystemReport (IN OC_GLOBAL_CONFIG *Config, IN EFI_HANDLE LoadHandle OPTIONAL) |
VOID | OcMiscBoot (IN OC_STORAGE_CONTEXT *Storage, IN OC_GLOBAL_CONFIG *Config, IN OC_PRIVILEGE_CONTEXT *Privilege OPTIONAL, IN OC_IMAGE_START StartImage, IN BOOLEAN CustomBootGuid, IN EFI_HANDLE LoadHandle) |
VOID | OcMiscUefiQuirksLoaded (IN OC_GLOBAL_CONFIG *Config) |
OpenCore driver.
Copyright (c) 2019, vit9696. 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 http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Definition in file OpenCoreMisc.c.
STATIC CHAR16 * BuildLauncherPath | ( | IN CONST CHAR16 * | RootPath, |
IN CONST CHAR8 * | LauncherPath, | ||
OUT CONST CHAR16 ** | MatchSuffix ) |
Generates bootstrap path according to the BootProtect mode.
[in] | RootPath | Root load path. |
[in] | LauncherPath | Launcher path to write, optional. |
[out] | MatchSuffix | Match suffix to optimise lookup. |
Definition at line 602 of file OpenCoreMisc.c.
VOID OcMiscBoot | ( | IN OC_STORAGE_CONTEXT * | Storage, |
IN OC_GLOBAL_CONFIG * | Config, | ||
IN OC_PRIVILEGE_CONTEXT *Privilege | OPTIONAL, | ||
IN OC_IMAGE_START | StartImage, | ||
IN BOOLEAN | CustomBootGuid, | ||
IN EFI_HANDLE | LoadHandle ) |
Load late miscellaneous support like boot screen config.
[in] | Storage | OpenCore storage. |
[in] | Config | OpenCore configuration. |
[in] | Privilege | OpenCore privilege context. |
[in] | StartImage | Image starting routine used. |
[in] | LoadHandle | OpenCore loading handle. |
[in] | CustomBootGuid | Use custom (gOcVendorVariableGuid) for Boot#### variables. |
< Always true for entries
Definition at line 798 of file OpenCoreMisc.c.
EFI_STATUS OcMiscEarlyInit | ( | IN OC_STORAGE_CONTEXT * | Storage, |
OUT OC_GLOBAL_CONFIG * | Config, | ||
IN OC_RSA_PUBLIC_KEY *VaultKey | OPTIONAL ) |
Load early miscellaneous support like configuration.
[in] | Storage | OpenCore storage. |
[out] | Config | OpenCore configuration. |
[in] | VaultKey | Vault key. |
EFI_SUCCESS | when allowed to continue. |
< Should be unreachable.
< Should be unreachable.
< Should be unreachable.
< Should be unreachable.
< Should be unreachable.
Definition at line 439 of file OpenCoreMisc.c.
CONST CHAR8 * OcMiscGetVersionString | ( | VOID | ) |
Get human readable version string.
null-terminated | 7-bit ASCII version string. |
Force the assertions in case we forget about them.
Definition at line 372 of file OpenCoreMisc.c.
EFI_STATUS OcMiscLateInit | ( | IN OC_STORAGE_CONTEXT * | Storage, |
IN OC_GLOBAL_CONFIG * | Config ) |
Load late miscellaneous support like Apple hibernation or panic saving.
[in] | Storage | OpenCore storage. |
[in] | Config | OpenCore configuration. |
EFI_SUCCESS | on success, informational. |
Definition at line 743 of file OpenCoreMisc.c.
VOID OcMiscLoadSystemReport | ( | IN OC_GLOBAL_CONFIG * | Config, |
IN EFI_HANDLE LoadHandle | OPTIONAL ) |
Load system report.
[in] | LoadHandle | OpenCore loading handle. |
EFI_SUCCESS | on success, informational. |
Definition at line 787 of file OpenCoreMisc.c.
VOID OcMiscMiddleInit | ( | IN OC_STORAGE_CONTEXT * | Storage, |
IN OC_GLOBAL_CONFIG * | Config, | ||
IN CONST CHAR16 * | RootPath, | ||
IN EFI_DEVICE_PATH_PROTOCOL * | LoadPath, | ||
IN EFI_HANDLE | StorageHandle, | ||
OUT UINT8 *Signature | OPTIONAL ) |
Load middle miscellaneous support like device path.
[in] | Storage | OpenCore storage. |
[in] | Config | OpenCore configuration. |
[in] | RootPath | Root load path (e.g. path to OC directory). |
[in] | LoadPath | OpenCore loading device path (absolute). |
[in] | StorageHandle | OpenCore storage loading handle (e.g. FS handle). |
[out] | Signature | OpenCore SHA-1 booter signature, optional. |
EFI_SUCCESS | on success, informational. |
Definition at line 639 of file OpenCoreMisc.c.
VOID OcMiscUefiQuirksLoaded | ( | IN OC_GLOBAL_CONFIG * | Config | ) |
Load miscellaneous support after UEFI quirks.
[in] | Config | OpenCore configuration. |
Definition at line 1053 of file OpenCoreMisc.c.
STATIC VOID OcStoreLoadPath | ( | IN EFI_DEVICE_PATH_PROTOCOL *LoadPath | OPTIONAL | ) |
Definition at line 51 of file OpenCoreMisc.c.
STATIC EFI_STATUS EFIAPI OcToolLoadEntry | ( | IN OC_STORAGE_CONTEXT * | Storage, |
IN OC_BOOT_ENTRY * | ChosenEntry, | ||
OUT VOID ** | Data, | ||
OUT UINT32 * | DataSize, | ||
OUT EFI_DEVICE_PATH_PROTOCOL ** | DevicePath, | ||
OUT EFI_HANDLE * | StorageHandle, | ||
OUT EFI_DEVICE_PATH_PROTOCOL ** | StoragePath, | ||
IN OC_DMG_LOADING_SUPPORT | DmgLoading, | ||
OUT OC_APPLE_DISK_IMAGE_PRELOAD_CONTEXT * | DmgPreloadContext, | ||
OUT VOID ** | CustomFreeContext ) |
Definition at line 260 of file OpenCoreMisc.c.
STATIC EFI_STATUS ProduceDebugReport | ( | IN EFI_HANDLE | VolumeHandle | ) |
Definition at line 93 of file OpenCoreMisc.c.
STATIC VOID SavePanicLog | ( | IN OC_STORAGE_CONTEXT * | Storage | ) |
Definition at line 325 of file OpenCoreMisc.c.