VirtualBox

Changeset 13952 in vbox


Ignore:
Timestamp:
Nov 7, 2008 12:35:36 PM (16 years ago)
Author:
vboxsync
Message:

Extra macro's

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/cpum.mac

    r12600 r13952  
    3232%define __VBox_cpum_mac__
    3333
     34
     35;;
     36; Converts the CPUM pointer to CPUMCPU (for the first VMCPU)
     37; @param   %1   register name
     38%macro CPUMCPU_FROM_CPUM 1
     39    add     %1, [%1 + CPUM.ulOffCPUMCPU]
     40%endmacro
     41
     42;;
     43; Converts the CPUMCPU pointer to CPUM (for the first VMCPU)
     44; @param   %1   register name
     45%macro CPUM_FROM_CPUMCPU 1
     46    sub     %1, [%1 + CPUM.ulOffCPUMCPU]
     47%endmacro
    3448
    3549;;
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