OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
KernelSupport32.c File Reference
#include "../BootCompatInternal.h"
#include <Guid/OcVariable.h>
#include <IndustryStandard/AppleHibernate.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/OcBootManagementLib.h>
#include <Library/OcDebugLogLib.h>
#include <Library/OcDeviceTreeLib.h>
#include <Library/OcMachoLib.h>
#include <Library/OcMemoryLib.h>
#include <Library/OcMiscLib.h>
#include <Library/OcStringLib.h>
#include <Library/PrintLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>

Go to the source code of this file.

Functions

VOID AppleMapPrepareKernelJump32 (IN OUT BOOT_COMPAT_CONTEXT *BootCompat)
 
UINTN EFIAPI AppleMapPrepareKernelState32 (IN UINTN Args)
 

Detailed Description

Copyright (C) 2019-2024, vit9696. All rights reserved.

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 KernelSupport32.c.

Function Documentation

◆ AppleMapPrepareKernelJump32()

VOID AppleMapPrepareKernelJump32 ( IN OUT BOOT_COMPAT_CONTEXT * BootCompat)

Patch kernel entry point with KernelJump to later land in AppleMapPrepareKernelState.

Parameters
[in,out]BootCompatBoot compatibility context.

< mov bx, ds

< mov es, ebx

< mov ebp, eax

< call

Definition at line 36 of file KernelSupport32.c.

◆ AppleMapPrepareKernelState32()

UINTN EFIAPI AppleMapPrepareKernelState32 ( IN UINTN Args)

Prepare environment for Apple kernel bootloader in boot or wake cases. This callback arrives when boot.efi jumps to kernel entry point. Should transfer control to restored kernel entry point with the same arguments.

Parameters
[in]ArgsCase-specific kernel argument handle.
Returns
Case-specific value if any.

Definition at line 114 of file KernelSupport32.c.