Changeset 58459 in vbox for trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BaseLib/X64/Thunk16.S
- 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/BaseLib/X64/Thunk16.S
r48674 r58459 1 1 #------------------------------------------------------------------------------ 2 2 # 3 # Copyright (c) 2006 - 201 1, Intel Corporation. All rights reserved.<BR>3 # Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR> 4 4 # This program and the accompanying materials 5 5 # are licensed and made available under the terms and conditions of the BSD License … … 147 147 L_64BitCode: 148 148 .byte 0x90 149 .byte 0x 67,0xbc # mov esp, imm32150 L_SavedSp: .space 4# restore stack149 .byte 0x48,0xbc # mov rsp, imm64 150 L_SavedSp: .space 8 # restore stack 151 151 nop 152 152 ret … … 296 296 movq %cr4, %rbp 297 297 movl %ebp, (%rcx) # save CR4 in SavedCr4 298 andl $0x 300,%ebp # clear all but PCE and OSFXSRbits298 andl $0xffffffcf,%ebp # clear PAE, PSE bits 299 299 movl %r8d, %esi # esi <- 16-bit stack segment 300 300 .byte 0x6a, DATA32 … … 308 308 movl %cs, %r8d 309 309 movw %r8w, (L_SavedCs - L_SavedCr4)(%rcx) 310 mov l %esp, (L_SavedSp - L_SavedCr4)(%rcx)310 movq %rsp, (L_SavedSp - L_SavedCr4)(%rcx) 311 311 .byte 0xff, 0x69 # jmp (_EntryPoint - L_SavedCr4)(%rcx) 312 312 .set Ltemp1, _EntryPoint - L_SavedCr4
Note:
See TracChangeset
for help on using the changeset viewer.