Changeset 58459 in vbox for trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/UefiLib/UefiNotTiano.c
- Timestamp:
- Oct 28, 2015 8:17:18 PM (9 years ago)
- Location:
- trunk/src/VBox/Devices/EFI/Firmware
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/Firmware
-
Property svn:mergeinfo
set to (toggle deleted branches)
/vendor/edk2/current 103735-103757
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/UefiLib/UefiNotTiano.c
r48674 r58459 35 35 VOID 36 36 EFIAPI 37 InternalEmptyFun tion (37 InternalEmptyFunction ( 38 38 IN EFI_EVENT Event, 39 39 IN VOID *Context … … 68 68 return EfiCreateEventLegacyBootEx ( 69 69 TPL_CALLBACK, 70 InternalEmptyFun tion,70 InternalEmptyFunction, 71 71 NULL, 72 72 LegacyBootEvent … … 102 102 ) 103 103 { 104 EFI_STATUS Status; 104 EFI_STATUS Status; 105 EFI_EVENT_NOTIFY WorkerNotifyFunction; 105 106 106 107 ASSERT (LegacyBootEvent != NULL); … … 115 116 // For UEFI 2.0 and the future use an Event Group 116 117 // 118 if (NotifyFunction == NULL) { 119 // 120 // CreateEventEx will check NotifyFunction is NULL or not and return error. 121 // Use dummy routine for the case NotifyFunction is NULL. 122 // 123 WorkerNotifyFunction = InternalEmptyFunction; 124 } else { 125 WorkerNotifyFunction = NotifyFunction; 126 } 117 127 Status = gBS->CreateEventEx ( 118 128 EVT_NOTIFY_SIGNAL, 119 129 NotifyTpl, 120 NotifyFunction,130 WorkerNotifyFunction, 121 131 NotifyContext, 122 132 &gEfiEventLegacyBootGuid, … … 153 163 return EfiCreateEventReadyToBootEx ( 154 164 TPL_CALLBACK, 155 InternalEmptyFun tion,165 InternalEmptyFunction, 156 166 NULL, 157 167 ReadyToBootEvent … … 187 197 ) 188 198 { 189 EFI_STATUS Status; 199 EFI_STATUS Status; 200 EFI_EVENT_NOTIFY WorkerNotifyFunction; 190 201 191 202 ASSERT (ReadyToBootEvent != NULL); … … 200 211 // For UEFI 2.0 and the future use an Event Group 201 212 // 213 if (NotifyFunction == NULL) { 214 // 215 // CreateEventEx will check NotifyFunction is NULL or not and return error. 216 // Use dummy routine for the case NotifyFunction is NULL. 217 // 218 WorkerNotifyFunction = InternalEmptyFunction; 219 } else { 220 WorkerNotifyFunction = NotifyFunction; 221 } 202 222 Status = gBS->CreateEventEx ( 203 223 EVT_NOTIFY_SIGNAL, 204 224 NotifyTpl, 205 NotifyFunction,225 WorkerNotifyFunction, 206 226 NotifyContext, 207 227 &gEfiEventReadyToBootGuid,
Note:
See TracChangeset
for help on using the changeset viewer.