VirtualBox

Changeset 87321 in vbox


Ignore:
Timestamp:
Jan 20, 2021 12:36:53 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142294
Message:

VMM/HMR0A.asm: Renamed some macros.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMR0A.asm

    r87311 r87321  
    5959%endif
    6060
    61 ;; @def MYPUSHAD
     61;; @def PUSH_CALLEE_PRESERVED_REGISTERS
    6262; Macro generating an equivalent to PUSHAD instruction.
    6363
    64 ;; @def MYPOPAD
     64;; @def POP_CALLEE_PRESERVED_REGISTERS
    6565; Macro generating an equivalent to POPAD instruction.
    6666
    67 ;; @def MYPUSHSEGS
     67;; @def PUSH_RELEVANT_SEGMENT_REGISTERS
    6868; Macro saving all segment registers on the stack.
    6969; @param 1  Full width register name.
    7070; @param 2  16-bit register name for \a 1.
    7171
    72 ;; @def MYPOPSEGS
     72;; @def POP_RELEVANT_SEGMENT_REGISTERS
    7373; Macro restoring all segment registers on the stack.
    7474; @param 1  Full width register name.
     
    7676
    7777%ifdef ASM_CALL64_GCC
    78  %macro MYPUSHAD 0
     78 %macro PUSH_CALLEE_PRESERVED_REGISTERS 0
    7979   push    r15
    8080   push    r14
     
    8383   push    rbx
    8484 %endmacro
    85  %macro MYPOPAD 0
     85 %macro POP_CALLEE_PRESERVED_REGISTERS 0
    8686   pop     rbx
    8787   pop     r12
     
    9292
    9393%else ; ASM_CALL64_MSC
    94  %macro MYPUSHAD 0
     94 %macro PUSH_CALLEE_PRESERVED_REGISTERS 0
    9595   push    r15
    9696   push    r14
     
    101101   push    rdi
    102102 %endmacro
    103  %macro MYPOPAD 0
     103 %macro POP_CALLEE_PRESERVED_REGISTERS 0
    104104   pop     rdi
    105105   pop     rsi
     
    113113
    114114%ifdef VBOX_SKIP_RESTORE_SEG
    115  %macro MYPUSHSEGS 2
     115 %macro PUSH_RELEVANT_SEGMENT_REGISTERS 2
    116116 %endmacro
    117117
    118  %macro MYPOPSEGS 2
     118 %macro POP_RELEVANT_SEGMENT_REGISTERS 2
    119119 %endmacro
    120120%else       ; !VBOX_SKIP_RESTORE_SEG
    121121 ; Trashes, rax, rdx & rcx.
    122  %macro MYPUSHSEGS 2
     122 %macro PUSH_RELEVANT_SEGMENT_REGISTERS 2
    123123  %ifndef HM_64_BIT_USE_NULL_SEL
    124124   mov     %2, es
     
    150150
    151151 ; trashes, rax, rdx & rcx
    152  %macro MYPOPSEGS 2
     152 %macro POP_RELEVANT_SEGMENT_REGISTERS 2
    153153   ; Note: do not step through this code with a debugger!
    154154  %ifndef HM_64_BIT_USE_NULL_SEL
     
    836836
    837837    ; Restore segment registers.
    838     MYPOPSEGS xAX, ax
     838    POP_RELEVANT_SEGMENT_REGISTERS xAX, ax
    839839
    840840    ; Restore the host XCR0 if necessary.
     
    848848
    849849    ; Restore general purpose registers.
    850     MYPOPAD
     850    POP_CALLEE_PRESERVED_REGISTERS
    851851%endmacro
    852852
     
    871871
    872872    ; Save all general purpose host registers.
    873     MYPUSHAD
     873    PUSH_CALLEE_PRESERVED_REGISTERS
    874874
    875875    ; First we have to save some final CPU context registers.
     
    925925    ; Note! Trashes rdx & rcx, so we moved it here (amd64 case).
    926926    ;
    927     MYPUSHSEGS xAX, ax
     927    PUSH_RELEVANT_SEGMENT_REGISTERS xAX, ax
    928928
    929929    ; Save the pCtx pointer.
     
    10781078
    10791079    ; Save all general purpose host registers.
    1080     MYPUSHAD
     1080    PUSH_CALLEE_PRESERVED_REGISTERS
    10811081
    10821082    ; Load pCtx into xSI.
     
    12021202
    12031203    ; Restore host general purpose registers.
    1204     MYPOPAD
     1204    POP_CALLEE_PRESERVED_REGISTERS
    12051205
    12061206    mov     eax, VINF_SUCCESS
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette