Changeset 39158 in vbox for trunk/src/VBox/Devices/EFI
- Timestamp:
- Nov 1, 2011 8:24:34 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/Thunk/EfiThunk.asm
r37955 r39158 199 199 200 200 ; 201 ; UEFI spec requires FPU initialization. 202 ; 203 204 mov eax,cr4 205 or eax, X86_CR4_OSFSXR|X86_CR4_OSXMMEEXCPT 206 mov cr4,eax 207 ; 201 208 ; Jump to 32-bit entry point of the firmware, interrupts still disabled. 202 209 ; … … 205 212 ; around all it wants for all we care. 206 213 ; 214 207 215 mov eax,[0xfffff000 + DEVEFIINFO.fFlags] 208 216 and eax, DEVEFI_INFO_FLAGS_AMD64 209 217 jnz trampoline_64 218 xor eax,eax 219 xor edi,edi 210 220 mov ebp, [0xfffff000 + DEVEFIINFO.PhysFwVol] 211 mov esi, [0xfffff000 + DEVEFIINFO.pfnFirmwareEP]212 mov edi, [0xfffff000 + DEVEFIINFO.pfnPeiEP]221 ;mov esi, [0xfffff000 + DEVEFIINFO.pfnFirmwareEP] 222 ;mov edi, [0xfffff000 + DEVEFIINFO.pfnPeiEP] 213 223 jmp [0xfffff000 + DEVEFIINFO.pfnFirmwareEP] 214 224 jmp HaltForEver … … 281 291 282 292 mov eax,cr4 283 or eax, X86_CR4_PAE |X86_CR4_OSFSXR|X86_CR4_OSXMMEEXCPT293 or eax, X86_CR4_PAE 284 294 mov cr4,eax 285 295 … … 301 311 efi_64: 302 312 mov ebp, [0xff009] ; DEVEFIINFO.PhysFwVol 303 mov esi, [0xff000]; + DEVEFIINFO.pfnFirmwareEP] 304 mov edi, [0xff000 + 0x28]; + DEVEFIINFO.pfnPeiEP] 313 ;mov esi, [0xff000]; + DEVEFIINFO.pfnFirmwareEP] 314 ;mov edi, [0xff000 + 0x28]; + DEVEFIINFO.pfnPeiEP] 315 xor rax,rax 316 xor rdi,rdi 305 317 jmp [0xff000]; + DEVEFIINFO.pfnFirmwareEP] 306 318 jmp HaltForEver
Note:
See TracChangeset
for help on using the changeset viewer.