VirtualBox

Changeset 16019 in vbox


Ignore:
Timestamp:
Jan 18, 2009 1:33:51 AM (16 years ago)
Author:
vboxsync
Message:

tstVMStructGC,Config.kmk,iprt/stdint.h: FreeBSD/amd64 hacks.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r16017 r16019  
    20212021 TEMPLATE_VBOXGCEXE_LDFLAGS.strict = -g
    20222022 TEMPLATE_VBOXGCEXE_LDFLAGS.release = -g
     2023 if1of ($(KBUILD_TARGET),freebsd)
     2024  # The FreeBSD port of gcc isn't picking up -m32 where it should. the .o order below isn't
     2025  # quite right (target source comes first), if it stops working we'll have to write a linker tool.
     2026  TEMPLATE_VBOXGCEXE_DEFS.$(KBUILD_TARGET)    = $(TEMPLATE_VBOXGC_DEFS.$(KBUILD_TARGET))    IPRT_DONT_USE_SYSTEM_STDINT_H
     2027  TEMPLATE_VBOXGCEXE_LDFLAGS.$(KBUILD_TARGET) = $(TEMPLATE_VBOXGC_LDFLAGS.$(KBUILD_TARGET)) -nostdlib -v
     2028  TEMPLATE_VBOXGCEXE_SOURCES.$(KBUILD_TARGET) = /usr/lib32/crtend.o /usr/lib32/crtn.o
     2029  TEMPLATE_VBOXGCEXE_SOURCES                  = /usr/lib32/crt1.o /usr/lib32/crti.o /usr/lib32/crtbegin.o
     2030  TEMPLATE_VBOXGCEXE_LIBPATH.$(KBUILD_TARGET) = /usr/lib32
     2031  TEMPLATE_VBOXGCEXE_LIBS.$(KBUILD_TARGET)    = /usr/lib32/libc.so
     2032 endif
    20232033endif
    20242034
  • trunk/include/iprt/stdint.h

    r8245 r16019  
    4646#include <iprt/cdefs.h>
    4747
    48 #if !(defined(RT_OS_LINUX) && defined(__KERNEL__)) && !defined(_MSC_VER) && !defined(__IBMC__) && !defined(__IBMCPP__) && !defined(IPRT_NO_CRT) && !defined(DOXYGEN_RUNNING)
     48#if !(defined(RT_OS_LINUX) && defined(__KERNEL__)) && !defined(_MSC_VER) && !defined(__IBMC__) && !defined(__IBMCPP__) \
     49  && !defined(IPRT_NO_CRT) && !defined(IPRT_DONT_USE_SYSTEM_STDINT_H) && !defined(DOXYGEN_RUNNING)
    4950# include <stdint.h>
    5051
    5152#else
    5253
    53 #if !(defined(RT_OS_LINUX) && defined(__KERNEL__)) || defined(IPRT_NO_CRT) || defined(DOXGEN_RUNNING)
     54#if !(defined(RT_OS_LINUX) && defined(__KERNEL__)) || defined(IPRT_NO_CRT) || defined(IPRT_DONT_USE_SYSTEM_STDINT_H) || defined(DOXGEN_RUNNING)
    5455/* machine specific */
    5556typedef signed char         __int8_t;
     
    168169#endif /* !C++ || __STDC_CONSTANT_MACROS */
    169170
     171#if defined(RT_OS_FREEBSD) && defined(IPRT_DONT_USE_SYSTEM_STDINT_H)
     172/* This is a hack to get tstVMStructGC.cpp building on FreeBSD. */
     173# define __uintptr_t __bad_uintptr_t
     174# define __uint64_t __bad_uint64_t
     175# define __uint32_t __bad_uint32_t
     176# define __uint16_t __bad_uint16_t
     177# define __uint8_t  __bad_uint8_t
     178# define __intptr_t __bad_intptr_t
     179# define __int64_t  __bad_int64_t
     180# define __int32_t  __bad_int32_t
     181# define __int16_t  __bad_int16_t
     182# define __int8_t   __bad_int8_t
     183#endif
     184
    170185#endif /* ! have usable stdint.h */
    171186
  • trunk/src/VBox/VMM/testcase/tstVMStructGC.cpp

    r14503 r16019  
    3434#endif
    3535
     36#include <VBox/types.h>
     37#include <iprt/assert.h>
     38AssertCompileSize(uint8_t,  1);
     39AssertCompileSize(uint16_t, 2);
     40AssertCompileSize(uint32_t, 4);
     41AssertCompileSize(uint64_t, 8);
     42AssertCompileSize(RTRCPTR,  4);
     43#ifdef VBOX_WITH_64_BITS_GUESTS
     44AssertCompileSize(RTGCPTR,  8);
     45#else
     46AssertCompileSize(RTGCPTR,  8);
     47#endif
     48AssertCompileSize(RTGCPHYS, 8);
     49AssertCompileSize(RTHCPHYS, 8);
     50
    3651
    3752/*******************************************************************************
     
    4661#include <VBox/vmm.h>
    4762#include <VBox/stam.h>
    48 #include "PDMInternal.h"
     63#include "../PDMInternal.h"
    4964#include <VBox/pdm.h>
    50 #include "CFGMInternal.h"
    51 #include "CPUMInternal.h"
    52 #include "MMInternal.h"
    53 #include "PGMInternal.h"
    54 #include "SELMInternal.h"
    55 #include "TRPMInternal.h"
    56 #include "TMInternal.h"
    57 #include "IOMInternal.h"
    58 #include "REMInternal.h"
    59 #include "HWACCMInternal.h"
    60 #include "PATMInternal.h"
    61 #include "VMMInternal.h"
    62 #include "DBGFInternal.h"
    63 #include "STAMInternal.h"
    64 #include "CSAMInternal.h"
    65 #include "EMInternal.h"
    66 #include "REMInternal.h"
     65#include "../CFGMInternal.h"
     66#include "../CPUMInternal.h"
     67#include "../MMInternal.h"
     68#include "../PGMInternal.h"
     69#include "../SELMInternal.h"
     70#include "../TRPMInternal.h"
     71#include "../TMInternal.h"
     72#include "../IOMInternal.h"
     73#include "../REMInternal.h"
     74#include "../HWACCMInternal.h"
     75#include "../PATM/PATMInternal.h"
     76#include "../VMMInternal.h"
     77#include "../DBGFInternal.h"
     78#include "../STAMInternal.h"
     79#include "../PATM/CSAMInternal.h"
     80#include "../EMInternal.h"
     81#include "../REMInternal.h"
    6782#include <VBox/vm.h>
    6883#include <VBox/param.h>
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