Changeset 9145 in vbox
- Timestamp:
- May 27, 2008 8:36:18 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r9142 r9145 803 803 # 804 804 ifeq ($(KBUILD_TARGET_ARCH),amd64) 805 ARCH_BITS_DEFS := HC_ARCH_BITS=64 GC_ARCH_BITS=32805 ARCH_BITS_DEFS := HC_ARCH_BITS=64 806 806 else ifeq ($(KBUILD_TARGET_ARCH),x86) 807 ARCH_BITS_DEFS := HC_ARCH_BITS=32 GC_ARCH_BITS=32807 ARCH_BITS_DEFS := HC_ARCH_BITS=32 808 808 else 809 809 error KBUILD_TARGET_ARCH=$(KBUILD_TARGET_ARCH) 810 810 endif 811 812 ifdef VBOX_WITH_64_BITS_GUESTS 813 GCARCH_BITS_DEFS := GC_ARCH_BITS=64 814 else 815 GCARCH_BITS_DEFS := GC_ARCH_BITS=32 816 endif 817 ARCH_BITS_DEFS += $(GCARCH_BITS_DEFS) 811 818 812 819 # … … 2566 2573 TEMPLATE_VBOXW32GUESTR3_BLD_TRG_ARCH = x86 2567 2574 TEMPLATE_VBOXW32GUESTR3_BLD_TRG_CPU = i386 2568 TEMPLATE_VBOXW32GUESTR3_DEFS = IN_GUEST IN_GUEST_R3 IN_RING3 IN_RT_R3 __WIN32__ __WIN__ HC_ARCH_BITS=32 GC_ARCH_BITS=322575 TEMPLATE_VBOXW32GUESTR3_DEFS = IN_GUEST IN_GUEST_R3 IN_RING3 IN_RT_R3 __WIN32__ __WIN__ HC_ARCH_BITS=32 $(GCARCH_BITS_DEFS) 2569 2576 TEMPLATE_VBOXW32GUESTR3_RCDEFS = \ 2570 2577 VBOX_VERSION_MAJOR=\"$(VBOX_VERSION_MAJOR)\" \ … … 2639 2646 TEMPLATE_VBOXW32GUESTR0_BLD_TRG_ARCH = x86 2640 2647 TEMPLATE_VBOXW32GUESTR0_BLD_TRG_CPU = i386 2641 TEMPLATE_VBOXW32GUESTR0_DEFS = _X86_ IN_GUEST IN_GUEST_R0 IN_RING0 IN_RT_R0 __WIN32__ __WIN__ HC_ARCH_BITS=32 GC_ARCH_BITS=322648 TEMPLATE_VBOXW32GUESTR0_DEFS = _X86_ IN_GUEST IN_GUEST_R0 IN_RING0 IN_RT_R0 __WIN32__ __WIN__ HC_ARCH_BITS=32 $(GCARCH_BITS_DEFS) 2642 2649 TEMPLATE_VBOXW32GUESTR0_RCDEFS = \ 2643 2650 VBOX_VERSION_MAJOR=\"$(VBOX_VERSION_MAJOR)\" \ … … 2759 2766 TEMPLATE_VBOXGUESTR3EXE_DEFS := IN_GUEST IN_GUEST_R3 IN_RT_R3 \ 2760 2767 $(filter-out $(ARCH_BITS_DEFS),$(TEMPLATE_VBOXR3EXE_DEFS)) \ 2761 HC_ARCH_BITS=32 GC_ARCH_BITS=322768 HC_ARCH_BITS=32 $(GCARCH_BITS_DEFS) 2762 2769 if1of ($(KBUILD_TARGET),l4 linux) # As few libs as possible on linux. 2763 2770 TEMPLATE_VBOXGUESTR3EXE_LIBS = pthread rt m … … 2865 2872 TEMPLATE_VBOXGUESTR0_SDKS.win.amd64 = W2K3DDK WINPSDKINCS 2866 2873 ifn1of ($(KBUILD_TARGET),l4 linux) # must be same as the host. 2867 TEMPLATE_VBOXGUESTR0_DEFS = $(filter-out $(ARCH_BITS_DEFS),$(TEMPLATE_VBOXR0DRV_DEFS)) IN_GUEST IN_GUEST_R0 HC_ARCH_BITS=32 GC_ARCH_BITS=322874 TEMPLATE_VBOXGUESTR0_DEFS = $(filter-out $(ARCH_BITS_DEFS),$(TEMPLATE_VBOXR0DRV_DEFS)) IN_GUEST IN_GUEST_R0 HC_ARCH_BITS=32 $(GCARCH_BITS_DEFS) 2868 2875 TEMPLATE_VBOXGUESTR0_BLD_TRG_ARCH = x86 2869 2876 TEMPLATE_VBOXGUESTR0_BLD_TRG_CPU = blend -
trunk/include/iprt/asmdefs.mac
r8260 r9145 502 502 ;; @def RTGCPHYS_DEF 503 503 ; The pesudo-instruction used to declare an initialized guest physical address. 504 %define RTGCPHYS_DEF d d504 %define RTGCPHYS_DEF dq 505 505 506 506 ;; @def RTGCPTR_RES 507 507 ; The pesudo-instruction used to declare (=reserve space for) an uninitialized 508 508 ; guest physical address variable 509 %define RTGCPHYS_RES res d509 %define RTGCPHYS_RES resq 510 510 511 511 ;; @def RTGCPTR_PRE 512 512 ; The memory operand prefix used for a guest physical address. 513 %define RTGCPHYS_PRE dword513 %define RTGCPHYS_PRE qword 514 514 515 515 ;; @def RTGCPHYS_CB 516 516 ; The size in bytes of a guest physical address. 517 %define RTGCPHYS_CB 4517 %define RTGCPHYS_CB 8 518 518 519 519 -
trunk/include/iprt/cdefs.h
r8614 r9145 167 167 168 168 /** @def HC_ARCH_BITS 169 * Defines the host architec hture bit count.169 * Defines the host architecture bit count. 170 170 */ 171 171 #if !defined(HC_ARCH_BITS) || defined(DOXYGEN_RUNNING) … … 178 178 179 179 /** @def R3_ARCH_BITS 180 * Defines the host ring-3 architec hture bit count.180 * Defines the host ring-3 architecture bit count. 181 181 */ 182 182 #if !defined(R3_ARCH_BITS) || defined(DOXYGEN_RUNNING) … … 189 189 190 190 /** @def R0_ARCH_BITS 191 * Defines the host ring-0 architec hture bit count.191 * Defines the host ring-0 architecture bit count. 192 192 */ 193 193 #if !defined(R0_ARCH_BITS) || defined(DOXYGEN_RUNNING) … … 200 200 201 201 /** @def GC_ARCH_BITS 202 * Defines the guest architec hture bit count.202 * Defines the guest architecture bit count. 203 203 */ 204 204 #if !defined(GC_ARCH_BITS) || defined(DOXYGEN_RUNNING) -
trunk/include/iprt/types.h
r8924 r9145 804 804 #define NIL_RTGCPHYS64 (~(RTGCPHYS64)0) 805 805 806 /** Guest context pointer.807 * Keep in mind that this type is an unsigned integer in808 * HC and void pointer in GC.809 */810 #ifdef IN_GC811 typedef void *RTGCPTR;812 #else813 typedef RTGCUINTPTR RTGCPTR;814 #endif815 /** Pointer to a guest context pointer. */816 typedef RTGCPTR *PRTGCPTR;817 /** Pointer to a const guest context pointer. */818 typedef const RTGCPTR *PCRTGCPTR;819 /** @def NIL_RTGCPTR820 * NIL GC pointer.821 */822 #define NIL_RTGCPTR ((RTGCPTR)0)823 824 806 /** Guest context pointer, 32 bits. 825 807 * Keep in mind that this type is an unsigned integer in … … 852 834 #define NIL_RTGCPTR64 ((RTGCPTR64)0) 853 835 836 /** Guest context pointer. 837 * Keep in mind that this type is an unsigned integer in 838 * HC and void pointer in GC. 839 */ 840 #if GC_ARCH_BITS == 64 841 typedef RTGCPTR64 RTGCPTR; 842 /** Pointer to a guest context pointer. */ 843 typedef PRTGCPTR64 PRTGCPTR; 844 /** Pointer to a const guest context pointer. */ 845 typedef PCRTGCPTR64 PCRTGCPTR; 846 /** @def NIL_RTGCPTR 847 * NIL GC pointer. 848 */ 849 #define NIL_RTGCPTR NIL_RTGCPTR64 850 #elif GC_ARCH_BITS == 32 851 typedef RTGCPTR32 RTGCPTR; 852 /** Pointer to a guest context pointer. */ 853 typedef PRTGCPTR32 PRTGCPTR; 854 /** Pointer to a const guest context pointer. */ 855 typedef PCRTGCPTR32 PCRTGCPTR; 856 /** @def NIL_RTGCPTR 857 * NIL GC pointer. 858 */ 859 #define NIL_RTGCPTR NIL_RTGCPTR32 860 #else 861 # error "Unsupported GC_ARCH_BITS!" 862 #endif 863 854 864 /** Unsigned integer register in the guest context. */ 855 #if GC_ARCH_BITS == 32 865 #if GC_ARCH_BITS == 64 866 typedef uint64_t RTGCUINTREG; 867 #elif GC_ARCH_BITS == 32 856 868 typedef uint32_t RTGCUINTREG; 857 #elif GC_ARCH_BITS == 64858 typedef uint64_t RTGCUINTREG;859 869 #else 860 870 # error "Unsupported GC_ARCH_BITS!"
Note:
See TracChangeset
for help on using the changeset viewer.