Changeset 39455 in vbox
- Timestamp:
- Nov 29, 2011 1:29:31 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/cdefs.h
r39015 r39455 110 110 * Indicates that we're compiling for the SPARC V9 architecture (64-bit). 111 111 */ 112 #if !defined(RT_ARCH_X86) && !defined(RT_ARCH_AMD64) && !defined(RT_ARCH_SPARC) && !defined(RT_ARCH_SPARC64) 112 #if !defined(RT_ARCH_X86) \ 113 && !defined(RT_ARCH_AMD64) \ 114 && !defined(RT_ARCH_SPARC) \ 115 && !defined(RT_ARCH_SPARC64) \ 116 && !defined(RT_ARCH_ARM) 113 117 # if defined(__amd64__) || defined(__x86_64__) || defined(_M_X64) || defined(__AMD64__) 114 118 # define RT_ARCH_AMD64 … … 119 123 # elif defined(__sparc__) 120 124 # define RT_ARCH_SPARC 125 # elif defined(__arm__) || defined(__arm32__) 126 # define RT_ARCH_ARM 121 127 # else /* PORTME: append test for new archs. */ 122 128 # error "Check what predefined macros your compiler uses to indicate architecture." … … 135 141 #elif defined(RT_ARCH_SPARC) && defined(RT_ARCH_SPARC64) 136 142 # error "Both RT_ARCH_SPARC and RT_ARCH_SPARC64 cannot be defined at the same time!" 143 #elif defined(RT_ARCH_ARM) && defined(RT_ARCH_AMD64) 144 # error "Both RT_ARCH_ARM and RT_ARCH_AMD64 cannot be defined at the same time!" 145 #elif defined(RT_ARCH_ARM) && defined(RT_ARCH_X86) 146 # error "Both RT_ARCH_ARM and RT_ARCH_X86 cannot be defined at the same time!" 147 #elif defined(RT_ARCH_ARM) && defined(RT_ARCH_SPARC64) 148 # error "Both RT_ARCH_ARM and RT_ARCH_SPARC64 cannot be defined at the same time!" 149 #elif defined(RT_ARCH_ARM) && defined(RT_ARCH_SPARC) 150 # error "Both RT_ARCH_ARM and RT_ARCH_SPARC cannot be defined at the same time!" 137 151 #endif 138 152 … … 147 161 * @deprecated 148 162 */ 149 #if !defined(__X86__) && !defined(__AMD64__) && !defined(RT_ARCH_SPARC) && !defined(RT_ARCH_SPARC64)163 #if !defined(__X86__) && !defined(__AMD64__) && (defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)) 150 164 # if defined(RT_ARCH_AMD64) 151 165 # define __AMD64__ … … 158 172 # error "Both __X86__ and __AMD64__ cannot be defined at the same time!" 159 173 #elif defined(__X86__) && !defined(RT_ARCH_X86) 160 # error " Both__X86__ without RT_ARCH_X86!"174 # error "__X86__ without RT_ARCH_X86!" 161 175 #elif defined(__AMD64__) && !defined(RT_ARCH_AMD64) 162 # error " Both__AMD64__ without RT_ARCH_AMD64!"176 # error "__AMD64__ without RT_ARCH_AMD64!" 163 177 #endif 164 178 … … 167 181 /** @def RT_LITTLE_ENDIAN 168 182 * Defined if the architecture is little endian. */ 169 #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) 183 #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) || defined(RT_ARCH_ARM) 170 184 # define RT_LITTLE_ENDIAN 171 185 #elif defined(RT_ARCH_SPARC) || defined(RT_ARCH_SPARC64) … … 2103 2117 # endif /* !IN_RING3 */ 2104 2118 2119 #elif defined(RT_ARCH_ARM) 2120 /* ASSUMES that at least the last and first 4K are out of bounds. */ 2121 # define RT_VALID_PTR(ptr) ( (uintptr_t)(ptr) + 0x1000U >= 0x2000U ) 2122 2105 2123 #else 2106 2124 # error "Architecture identifier missing / not implemented."
Note:
See TracChangeset
for help on using the changeset viewer.