comparison src/os_cpu/bsd_zero/vm/os_bsd_zero.hpp @ 14390:0f03ff49c720

8016491: PPC64 (part 2): Clean up PPC defines. Summary: Distinguish PPC, PPC64 and PPC32. PPC should guard code needed on any PPC system. PPC32 and PPC64 should guard code needed in a port for the ppc64 or ppc32 instruction set. Reviewed-by: kvn
author goetz
date Wed, 19 Jun 2013 12:29:30 +0200
parents f08d439fab8c
children 4ca6dc0799b6
comparison
equal deleted inserted replaced
14389:164db61dbced 14390:0f03ff49c720
34 // Note: Currently only used in 64 bit Windows implementations 34 // Note: Currently only used in 64 bit Windows implementations
35 static bool register_code_area(char *low, char *high) { return true; } 35 static bool register_code_area(char *low, char *high) { return true; }
36 36
37 // Atomically copy 64 bits of data 37 // Atomically copy 64 bits of data
38 static void atomic_copy64(volatile void *src, volatile void *dst) { 38 static void atomic_copy64(volatile void *src, volatile void *dst) {
39 #if defined(PPC) && !defined(_LP64) 39 #if defined(PPC32)
40 double tmp; 40 double tmp;
41 asm volatile ("lfd %0, 0(%1)\n" 41 asm volatile ("lfd %0, 0(%1)\n"
42 "stfd %0, 0(%2)\n" 42 "stfd %0, 0(%2)\n"
43 : "=f"(tmp) 43 : "=f"(tmp)
44 : "b"(src), "b"(dst)); 44 : "b"(src), "b"(dst));