OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
VerifyMsrE2.c File Reference
#include <Uefi.h>
#include <PiDxe.h>
#include <Library/PcdLib.h>
#include <Library/UefiLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/OcMiscLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
#include <Library/UefiApplicationEntryPoint.h>
#include <Register/Msr.h>
#include <Protocol/MpService.h>

Go to the source code of this file.

Functions

VOID EFIAPI ReadMsrE2 (IN VOID *Buffer)
 
EFI_STATUS EFIAPI VerifyMSRE2 (VOID)
 

Variables

STATIC EFI_MP_SERVICES_PROTOCOL * mMpServices
 
STATIC UINTN mHasLockedCores
 
STATIC UINTN mHasUnlockedCores
 

Detailed Description

Verify MSR 0xE2 status on all the processors.

Copyright (c) 2018, 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 VerifyMsrE2.c.

Function Documentation

◆ ReadMsrE2()

VOID EFIAPI ReadMsrE2 ( IN VOID * Buffer)

Definition at line 33 of file VerifyMsrE2.c.

◆ VerifyMSRE2()

EFI_STATUS EFIAPI VerifyMSRE2 ( VOID )

Check MsrE2 Status - original VerifyMSRE2

Return values
EFI_SUCCESSSuccess
OtherFail to verify MSR 0xE2 status

Definition at line 61 of file VerifyMsrE2.c.

Variable Documentation

◆ mHasLockedCores

STATIC UINTN mHasLockedCores

Definition at line 28 of file VerifyMsrE2.c.

◆ mHasUnlockedCores

STATIC UINTN mHasUnlockedCores

Definition at line 29 of file VerifyMsrE2.c.

◆ mMpServices

STATIC EFI_MP_SERVICES_PROTOCOL* mMpServices

Definition at line 27 of file VerifyMsrE2.c.