Changeset 727 in vbox for trunk/src/VBox/VMM/VMMR0
- Timestamp:
- Feb 6, 2007 7:38:36 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/VMMR0A.asm
r726 r727 46 46 ; @param pJmpBuf msc:rcx gcc:rdi x86:[esp+4] Our jmp_buf. 47 47 ; @param pfn msc:rdx gcc:rsi x86:[esp+8] The function to be called when not resuming. 48 ; @param pVM msc:r8 gcc:r cx x86:[esp+c] The argument of that function.48 ; @param pVM msc:r8 gcc:rdx x86:[esp+c] The argument of that function. 49 49 ; 50 50 BEGINPROC vmmR0CallHostSetJmp … … 132 132 ; 133 133 %ifdef ASM_CALL64_MSC 134 xchg rdx, rcx ; rdx=pJmpBuf rcx=pfn 134 mov r11, rdx ; pfn 135 mov rdx, rcx ; pJmpBuf; 135 136 %else 137 mov r8, rdx ; pVM (save it like MSC) 138 mov r11, rsi ; pfn 136 139 mov rdx, rdi ; pJmpBuf 137 140 %endif … … 159 162 push rdx ; Save it and fix stack alignment (16). 160 163 %ifdef ASM_CALL64_MSC 161 mov rax, rcx ; pfn162 164 mov rcx, r8 ; pVM -> arg0 163 165 %else 164 mov rax, rsi ; pfn 165 mov rdi, rcx ; pVM -> arg0 166 %endif 167 call rax 166 mov rdi, r8 ; pVM -> arg0 167 %endif 168 call r11 168 169 pop rdx ; pJmpBuf 169 170 and qword [rdx + VMMR0JMPBUF.rip], byte 0 ; used for valid check.
Note:
See TracChangeset
for help on using the changeset viewer.