VirtualBox

Ignore:
Timestamp:
Mar 14, 2023 12:20:15 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
156304
Message:

include/VBox/vmm: Refactor cpumctx.h into an architecture dependent header and architecture independent header, bugref:10387

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/cpumctx-x86-amd64.h

    r98954 r98955  
    11/** @file
    2  * CPUM - CPU Monitor(/ Manager), Context Structures.
     2 * CPUM - CPU Monitor(/ Manager), Context Structures for the x86/amd64 emulation/virtualization.
    33 */
    44
     
    3434 */
    3535
    36 #ifndef VBOX_INCLUDED_vmm_cpumctx_h
    37 #define VBOX_INCLUDED_vmm_cpumctx_h
     36#ifndef VBOX_INCLUDED_vmm_cpumctx_x86_amd64_h
     37#define VBOX_INCLUDED_vmm_cpumctx_x86_amd64_h
    3838#ifndef RT_WITHOUT_PRAGMA_ONCE
    3939# pragma once
     
    123123    uint64_t    esp;
    124124} CPUMSYSENTER;
    125 
    126 /** @def CPUM_UNION_NM
    127  * For compilers (like DTrace) that does not grok nameless unions, we have a
    128  * little hack to make them palatable.
    129  */
    130 /** @def CPUM_STRUCT_NM
    131  * For compilers (like DTrace) that does not grok nameless structs (it is
    132  * non-standard C++), we have a little hack to make them palatable.
    133  */
    134 #ifdef VBOX_FOR_DTRACE_LIB
    135 # define CPUM_UNION_NM(a_Nm)  a_Nm
    136 # define CPUM_STRUCT_NM(a_Nm) a_Nm
    137 #elif defined(IPRT_WITHOUT_NAMED_UNIONS_AND_STRUCTS)
    138 # define CPUM_UNION_NM(a_Nm)  a_Nm
    139 # define CPUM_STRUCT_NM(a_Nm) a_Nm
    140 #else
    141 # define CPUM_UNION_NM(a_Nm)
    142 # define CPUM_STRUCT_NM(a_Nm)
    143 #endif
    144 /** @def CPUM_UNION_STRUCT_NM
    145  * Combines CPUM_UNION_NM and CPUM_STRUCT_NM to avoid hitting the right side of
    146  * the screen in the compile time assertions.
    147  */
    148 #define CPUM_UNION_STRUCT_NM(a_UnionNm, a_StructNm) CPUM_UNION_NM(a_UnionNm .) CPUM_STRUCT_NM(a_StructNm)
    149125
    150126/** A general register (union). */
     
    11131089RT_C_DECLS_END
    11141090
    1115 #endif /* !VBOX_INCLUDED_vmm_cpumctx_h */
    1116 
     1091#endif /* !VBOX_INCLUDED_vmm_cpumctx_x86_amd64_h */
     1092
Note: See TracChangeset for help on using the changeset viewer.

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