src/os/bsd/vm/os_bsd.cpp

Print this page
rev 4738 : Clean up PPC defines.

Reorganize PPC defines.  Distinguish PPC, PPC64 and PPC32.
PPC should guard code needed on PPC regardless of word size.
PPC32 and PPC64 should guard code needed in the 64-bit or
the 32-bit port.


 188   if (!init) {
 189     privileges = (getuid() != geteuid()) || (getgid() != getegid());
 190     init = true;
 191   }
 192   return privileges;
 193 }
 194 
 195 
 196 
 197 // Cpu architecture string
 198 #if   defined(ZERO)
 199 static char cpu_arch[] = ZERO_LIBARCH;
 200 #elif defined(IA64)
 201 static char cpu_arch[] = "ia64";
 202 #elif defined(IA32)
 203 static char cpu_arch[] = "i386";
 204 #elif defined(AMD64)
 205 static char cpu_arch[] = "amd64";
 206 #elif defined(ARM)
 207 static char cpu_arch[] = "arm";
 208 #elif defined(PPC)
 209 static char cpu_arch[] = "ppc";
 210 #elif defined(SPARC)
 211 #  ifdef _LP64
 212 static char cpu_arch[] = "sparcv9";
 213 #  else
 214 static char cpu_arch[] = "sparc";
 215 #  endif
 216 #else
 217 #error Add appropriate cpu_arch setting
 218 #endif
 219 
 220 // Compiler variant
 221 #ifdef COMPILER2
 222 #define COMPILER_VARIANT "server"
 223 #else
 224 #define COMPILER_VARIANT "client"
 225 #endif
 226 
 227 
 228 void os::Bsd::initialize_system_info() {




 188   if (!init) {
 189     privileges = (getuid() != geteuid()) || (getgid() != getegid());
 190     init = true;
 191   }
 192   return privileges;
 193 }
 194 
 195 
 196 
 197 // Cpu architecture string
 198 #if   defined(ZERO)
 199 static char cpu_arch[] = ZERO_LIBARCH;
 200 #elif defined(IA64)
 201 static char cpu_arch[] = "ia64";
 202 #elif defined(IA32)
 203 static char cpu_arch[] = "i386";
 204 #elif defined(AMD64)
 205 static char cpu_arch[] = "amd64";
 206 #elif defined(ARM)
 207 static char cpu_arch[] = "arm";
 208 #elif defined(PPC32)
 209 static char cpu_arch[] = "ppc";
 210 #elif defined(SPARC)
 211 #  ifdef _LP64
 212 static char cpu_arch[] = "sparcv9";
 213 #  else
 214 static char cpu_arch[] = "sparc";
 215 #  endif
 216 #else
 217 #error Add appropriate cpu_arch setting
 218 #endif
 219 
 220 // Compiler variant
 221 #ifdef COMPILER2
 222 #define COMPILER_VARIANT "server"
 223 #else
 224 #define COMPILER_VARIANT "client"
 225 #endif
 226 
 227 
 228 void os::Bsd::initialize_system_info() {