Changeset 99404 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Universal/EbcDxe/EbcInt.h
- Timestamp:
- Apr 14, 2023 3:17:44 PM (21 months ago)
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/FirmwareNew
-
Property svn:mergeinfo
changed from (toggle deleted branches)
to (toggle deleted branches)/vendor/edk2/current 103735-103757,103769-103776,129194-145445 /vendor/edk2/current 103735-103757,103769-103776,129194-156846
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Universal/EbcDxe/EbcInt.h
r80721 r99404 10 10 #ifndef _EBC_INT_H_ 11 11 #define _EBC_INT_H_ 12 13 12 14 13 #include <Uefi.h> … … 29 28 #include <Library/MemoryAllocationLib.h> 30 29 31 extern VM_CONTEXT 30 extern VM_CONTEXT *mVmPtr; 32 31 33 32 // … … 61 60 EFI_STATUS 62 61 EbcCreateThunks ( 63 IN EFI_HANDLE 64 IN VOID 65 OUT VOID 66 IN UINT32 62 IN EFI_HANDLE ImageHandle, 63 IN VOID *EbcEntryPoint, 64 OUT VOID **Thunk, 65 IN UINT32 Flags 67 66 ); 68 67 … … 82 81 EFI_STATUS 83 82 EbcAddImageThunk ( 84 IN EFI_HANDLE 85 IN VOID 86 IN UINT32 83 IN EFI_HANDLE ImageHandle, 84 IN VOID *ThunkBuffer, 85 IN UINT32 ThunkSize 87 86 ); 88 87 … … 91 90 // function. 92 91 // 93 #define EFI_TIMER_UNIT_1MS (1000 * 10)94 #define EBC_VM_PERIODIC_CALLBACK_RATE (1000 * EFI_TIMER_UNIT_1MS)95 #define STACK_POOL_SIZE (1024 * 1020)96 #define MAX_STACK_NUM 492 #define EFI_TIMER_UNIT_1MS (1000 * 10) 93 #define EBC_VM_PERIODIC_CALLBACK_RATE (1000 * EFI_TIMER_UNIT_1MS) 94 #define STACK_POOL_SIZE (1024 * 1020) 95 #define MAX_STACK_NUM 4 97 96 98 97 // 99 98 // External low level functions that are native-processor dependent 100 99 // 100 101 101 /** 102 102 The VM thunk code stuffs an EBC entry point into a processor … … 132 132 EFIAPI 133 133 EbcLLCALLEXNative ( 134 IN UINTN 135 IN UINTN 136 IN VOID 134 IN UINTN CallAddr, 135 IN UINTN EbcSp, 136 IN VOID *FramePtr 137 137 ); 138 138 … … 154 154 VOID 155 155 EbcLLCALLEX ( 156 IN VM_CONTEXT 157 IN UINTN 158 IN UINTN 159 IN VOID 160 IN UINT8 156 IN VM_CONTEXT *VmPtr, 157 IN UINTN FuncAddr, 158 IN UINTN NewStackPointer, 159 IN VOID *FramePtr, 160 IN UINT8 Size 161 161 ); 162 162 … … 175 175 **/ 176 176 EFI_STATUS 177 GetEBCStack (178 IN EFI_HANDLE Handle,179 OUT VOID **StackBuffer,180 OUT UINTN *BufferIndex177 GetEBCStack ( 178 IN EFI_HANDLE Handle, 179 OUT VOID **StackBuffer, 180 OUT UINTN *BufferIndex 181 181 ); 182 182 … … 190 190 **/ 191 191 EFI_STATUS 192 ReturnEBCStack (193 IN UINTN Index192 ReturnEBCStack ( 193 IN UINTN Index 194 194 ); 195 195 … … 213 213 **/ 214 214 EFI_STATUS 215 FreeEBCStack (215 FreeEBCStack ( 216 216 VOID 217 217 ); … … 226 226 **/ 227 227 EFI_STATUS 228 ReturnEBCStackByHandle (229 IN EFI_HANDLE Handle228 ReturnEBCStackByHandle ( 229 IN EFI_HANDLE Handle 230 230 ); 231 231 232 232 typedef struct { 233 EFI_EBC_PROTOCOL *This;234 VOID *EntryPoint;235 EFI_HANDLE ImageHandle;236 VM_CONTEXT VmContext;233 EFI_EBC_PROTOCOL *This; 234 VOID *EntryPoint; 235 EFI_HANDLE ImageHandle; 236 VM_CONTEXT VmContext; 237 237 } EFI_EBC_THUNK_DATA; 238 238 239 #define EBC_PROTOCOL_PRIVATE_DATA_SIGNATURE SIGNATURE_32 ('e', 'b', 'c', 'p') 240 239 #define EBC_PROTOCOL_PRIVATE_DATA_SIGNATURE SIGNATURE_32 ('e', 'b', 'c', 'p') 241 240 242 241 #define EBC_PROTOCOL_PRIVATE_DATA_FROM_THIS(a) \ 243 242 CR(a, EBC_PROTOCOL_PRIVATE_DATA, EbcProtocol, EBC_PROTOCOL_PRIVATE_DATA_SIGNATURE) 244 245 243 246 244 /**
Note:
See TracChangeset
for help on using the changeset viewer.