TianoCore EDK2 master
Loading...
Searching...
No Matches
SmmCpuPlatformHookLibQemu.c
Go to the documentation of this file.
1
9#include <Library/BaseLib.h> // AsmReadMsr64()
10#include <PiSmm.h>
11#include <Register/Intel/ArchitecturalMsr.h> // MSR_IA32_APIC_BASE_REGISTER
12
14
27BOOLEAN
28EFIAPI
30 VOID
31 )
32{
33 return TRUE;
34}
35
46BOOLEAN
47EFIAPI
49 VOID
50 )
51{
52 return TRUE;
53}
54
76EFIAPI
78 OUT BOOLEAN *IsBsp
79 )
80{
82
84 *IsBsp = (BOOLEAN)(ApicBaseMsr.Bits.BSP == 1);
85 return EFI_SUCCESS;
86}
87
106EFIAPI
108 IN UINT64 Address,
109 IN OUT SMM_PAGE_SIZE_TYPE *PageSize,
110 IN OUT UINTN *NumOfPages,
111 IN OUT UINTN *PageAttribute
112 )
113{
114 return EFI_UNSUPPORTED;
115}
UINT64 UINTN
#define TRUE
Definition: Base.h:301
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
UINT64 EFIAPI AsmReadMsr64(IN UINT32 Index)
Definition: GccInlinePriv.c:60
#define MSR_IA32_APIC_BASE
SMM_PAGE_SIZE_TYPE
EFI_STATUS EFIAPI PlatformSmmBspElection(OUT BOOLEAN *IsBsp)
BOOLEAN EFIAPI PlatformValidSmi(VOID)
EFI_STATUS EFIAPI GetPlatformPageTableAttribute(IN UINT64 Address, IN OUT SMM_PAGE_SIZE_TYPE *PageSize, IN OUT UINTN *NumOfPages, IN OUT UINTN *PageAttribute)
BOOLEAN EFIAPI ClearTopLevelSmiStatus(VOID)
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
#define EFI_SUCCESS
Definition: UefiBaseType.h:112
struct MSR_IA32_APIC_BASE_REGISTER::@564 Bits