src/os_cpu/linux_zero/vm/os_linux_zero.hpp

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.

*** 34,44 **** // Note: Currently only used in 64 bit Windows implementations static bool register_code_area(char *low, char *high) { return true; } // Atomically copy 64 bits of data static void atomic_copy64(volatile void *src, volatile void *dst) { ! #if defined(PPC) && !defined(_LP64) double tmp; asm volatile ("lfd %0, 0(%1)\n" "stfd %0, 0(%2)\n" : "=f"(tmp) : "b"(src), "b"(dst)); --- 34,44 ---- // Note: Currently only used in 64 bit Windows implementations static bool register_code_area(char *low, char *high) { return true; } // Atomically copy 64 bits of data static void atomic_copy64(volatile void *src, volatile void *dst) { ! #if defined(PPC32) double tmp; asm volatile ("lfd %0, 0(%1)\n" "stfd %0, 0(%2)\n" : "=f"(tmp) : "b"(src), "b"(dst));