VirtualBox

Changeset 13952

Show
Ignore:
Timestamp:
11/07/08 13:35:36 (2 months ago)
Author:
vboxsync
Message:

Extra macro's

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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;; 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy