TianoCore EDK2 master
Loading...
Searching...
No Matches
CpuDxe.h
Go to the documentation of this file.
1
10#ifndef CPU_DXE_H_
11#define CPU_DXE_H_
12
13#include <Uefi.h>
14
15#include <Library/ArmLib.h>
16#include <Library/ArmMmuLib.h>
18#include <Library/DebugLib.h>
19#include <Library/PcdLib.h>
24#include <Library/UefiLib.h>
25#include <Library/CpuLib.h>
27#include <Library/DebugLib.h>
28
30#include <Protocol/Cpu.h>
34
35extern BOOLEAN mIsFlushingGCD;
36
37extern EFI_MEMORY_ATTRIBUTE_PROTOCOL mMemoryAttribute;
38
61 IN EFI_EXCEPTION_TYPE InterruptType,
62 IN EFI_CPU_INTERRUPT_HANDLER InterruptHandler
63 );
64
87 IN EFI_EXCEPTION_TYPE InterruptType,
88 IN EFI_CPU_INTERRUPT_HANDLER InterruptHandler
89 );
90
92EFIAPI
95 IN EFI_PHYSICAL_ADDRESS BaseAddress,
96 IN UINT64 Length,
97 IN UINT64 Attributes
98 );
99
103 );
104
107 IN EFI_CPU_ARCH_PROTOCOL *CpuProtocol
108 );
109
110// The ARM Attributes might be defined on 64-bit (case of the long format description table)
111UINT64
113 IN UINT64 EfiAttributes
114 );
115
118 IN OUT UINTN *BaseAddress,
119 OUT UINTN *RegionLength,
120 OUT UINTN *RegionAttributes
121 );
122
125 IN EFI_GCD_MEMORY_SPACE_DESCRIPTOR *MemorySpaceMap,
126 IN UINTN NumberOfDescriptors,
127 IN EFI_PHYSICAL_ADDRESS BaseAddress,
128 IN UINT64 Length,
129 IN UINT64 Attributes
130 );
131
141UINT64
143 IN UINTN PageAttributes
144 );
145
146#endif // CPU_DXE_H_
UINT64 UINTN
EFI_STATUS RegisterDebuggerInterruptHandler(IN EFI_EXCEPTION_TYPE InterruptType, IN EFI_CPU_INTERRUPT_HANDLER InterruptHandler)
EFI_STATUS SyncCacheConfig(IN EFI_CPU_ARCH_PROTOCOL *CpuProtocol)
Definition: Mmu.c:269
EFI_STATUS EFIAPI CpuSetMemoryAttributes(IN EFI_CPU_ARCH_PROTOCOL *This, IN EFI_PHYSICAL_ADDRESS BaseAddress, IN UINT64 Length, IN UINT64 Attributes)
Definition: CpuMmuCommon.c:228
EFI_STATUS SetGcdMemorySpaceAttributes(IN EFI_GCD_MEMORY_SPACE_DESCRIPTOR *MemorySpaceMap, IN UINTN NumberOfDescriptors, IN EFI_PHYSICAL_ADDRESS BaseAddress, IN UINT64 Length, IN UINT64 Attributes)
Definition: CpuMmuCommon.c:79
UINT64 EfiAttributeToArmAttribute(IN UINT64 EfiAttributes)
Definition: Mmu.c:354
EFI_STATUS RegisterInterruptHandler(IN EFI_EXCEPTION_TYPE InterruptType, IN EFI_CPU_INTERRUPT_HANDLER InterruptHandler)
Definition: Exception.c:93
UINT64 RegionAttributeToGcdAttribute(IN UINTN PageAttributes)
Definition: Mmu.c:111
EFI_STATUS GetMemoryRegion(IN OUT UINTN *BaseAddress, OUT UINTN *RegionLength, OUT UINTN *RegionAttributes)
Definition: Mmu.c:515
EFI_STATUS InitializeExceptions(IN EFI_CPU_ARCH_PROTOCOL *Cpu)
Definition: Exception.c:15
VOID(EFIAPI * EFI_CPU_INTERRUPT_HANDLER)(IN CONST EFI_EXCEPTION_TYPE InterruptType, IN CONST EFI_SYSTEM_CONTEXT SystemContext)
Definition: Cpu.h:52
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
INTN EFI_EXCEPTION_TYPE
Definition: DebugSupport.h:35
UINT64 EFI_PHYSICAL_ADDRESS
Definition: UefiBaseType.h:50
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29