OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
OpenRuntime.c File Reference
#include "OpenRuntimePrivate.h"
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/OcBootManagementLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
#include <Protocol/LoadedImage.h>
#include <Protocol/OcFirmwareRuntime.h>

Go to the source code of this file.

Functions

STATIC VOID EFIAPI FwGetCurrent (OUT OC_FWRT_CONFIG *Config)
 
STATIC VOID EFIAPI FwSetMain (IN CONST OC_FWRT_CONFIG *Config)
 
STATIC VOID EFIAPI FwSetOverride (IN CONST OC_FWRT_CONFIG *Config)
 
STATIC EFI_STATUS EFIAPI FwGetExecArea (OUT EFI_PHYSICAL_ADDRESS *BaseAddress, OUT UINTN *Pages)
 
EFI_STATUS EFIAPI UefiEntrypoint (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

STATIC OC_FIRMWARE_RUNTIME_PROTOCOL mOcFirmwareRuntimeProtocol
 

Detailed Description

Copyright (C) 2019, 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 OpenRuntime.c.

Function Documentation

◆ FwGetCurrent()

STATIC VOID EFIAPI FwGetCurrent ( OUT OC_FWRT_CONFIG * Config)

Definition at line 29 of file OpenRuntime.c.

◆ FwGetExecArea()

STATIC EFI_STATUS EFIAPI FwGetExecArea ( OUT EFI_PHYSICAL_ADDRESS * BaseAddress,
OUT UINTN * Pages )

Definition at line 64 of file OpenRuntime.c.

◆ FwSetMain()

STATIC VOID EFIAPI FwSetMain ( IN CONST OC_FWRT_CONFIG * Config)

Definition at line 39 of file OpenRuntime.c.

◆ FwSetOverride()

STATIC VOID EFIAPI FwSetOverride ( IN CONST OC_FWRT_CONFIG * Config)

Definition at line 49 of file OpenRuntime.c.

◆ UefiEntrypoint()

EFI_STATUS EFIAPI UefiEntrypoint ( IN EFI_HANDLE ImageHandle,
IN EFI_SYSTEM_TABLE * SystemTable )

Definition at line 91 of file OpenRuntime.c.

Variable Documentation

◆ mOcFirmwareRuntimeProtocol

STATIC OC_FIRMWARE_RUNTIME_PROTOCOL mOcFirmwareRuntimeProtocol
Initial value:
= {
}
#define OC_FIRMWARE_RUNTIME_REVISION
STATIC VOID EFIAPI FwSetMain(IN CONST OC_FWRT_CONFIG *Config)
Definition OpenRuntime.c:39
STATIC VOID EFIAPI FwGetCurrent(OUT OC_FWRT_CONFIG *Config)
Definition OpenRuntime.c:29
STATIC VOID EFIAPI FwSetOverride(IN CONST OC_FWRT_CONFIG *Config)
Definition OpenRuntime.c:49
STATIC EFI_STATUS EFIAPI FwGetExecArea(OUT EFI_PHYSICAL_ADDRESS *BaseAddress, OUT UINTN *Pages)
Definition OpenRuntime.c:64
EFI_STATUS EFIAPI FwOnGetVariable(IN EFI_GET_VARIABLE GetVariable, OUT EFI_GET_VARIABLE *OrgGetVariable OPTIONAL)
EFI_STATUS EFIAPI FwOnSetAddressMap(IN EFI_SET_VIRTUAL_ADDRESS_MAP SetAddressMap OPTIONAL, IN BOOLEAN Enabled)

Definition at line 79 of file OpenRuntime.c.