OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
ForgeUefi.c File Reference
#include <PiDxe.h>
#include <Guid/EventGroup.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/DxeServicesTableLib.h>
#include <Library/IoLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/OcDeviceMiscLib.h>
#include <Library/UefiBootServicesTableLib.h>

Go to the source code of this file.

Functions

STATIC EFI_STATUS EFIAPI OcCreateEventEx (IN UINT32 Type, IN EFI_TPL NotifyTpl, IN EFI_EVENT_NOTIFY NotifyFunction OPTIONAL, IN CONST VOID *NotifyContext OPTIONAL, IN CONST EFI_GUID *EventGroup OPTIONAL, OUT EFI_EVENT *Event)
 
EFI_STATUS OcForgeUefiSupport (IN BOOLEAN Forge, IN BOOLEAN Trash)
 

Detailed Description

Copyright (c) 2020, joevt. All rights reserved. Copyright (C) 2021-2023, vit9696, mikebeaton. 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 ForgeUefi.c.

Function Documentation

◆ OcCreateEventEx()

STATIC EFI_STATUS EFIAPI OcCreateEventEx ( IN UINT32 Type,
IN EFI_TPL NotifyTpl,
IN EFI_EVENT_NOTIFY NotifyFunction OPTIONAL,
IN CONST VOID *NotifyContext OPTIONAL,
IN CONST EFI_GUID *EventGroup OPTIONAL,
OUT EFI_EVENT * Event )

Definition at line 32 of file ForgeUefi.c.

◆ OcForgeUefiSupport()

EFI_STATUS OcForgeUefiSupport ( IN BOOLEAN Forge,
IN BOOLEAN Trash )

Upgrade UEFI version to 2.x.

Parameters
[in]ForgeIf TRUE forge, else just report status.
[in]TrashIf TRUE trash gBS->CreateEventEx directly, else reallocate gBS. Reallocate strategy will only affect current image and any images it loads. Trash strategy should affect all images.
Return values
EFI_SUCCESSon success.

Definition at line 81 of file ForgeUefi.c.