changeset 1357:32ebb1c95eca

. Keep this in sync with the Linux version.
author Greg Lewis <glewis@eyesbeyond.com>
date Mon, 08 Mar 2010 22:20:21 -0800
parents c089830905be
children 1e976d3fd820
files src/os_cpu/bsd_zero/vm/os_bsd_zero.hpp
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/os_cpu/bsd_zero/vm/os_bsd_zero.hpp	Mon Mar 08 21:37:54 2010 -0800
+++ b/src/os_cpu/bsd_zero/vm/os_bsd_zero.hpp	Mon Mar 08 22:20:21 2010 -0800
@@ -1,6 +1,6 @@
 /*
  * Copyright 2003-2004 Sun Microsystems, Inc.  All Rights Reserved.
- * Copyright 2007, 2008 Red Hat, Inc.
+ * Copyright 2007, 2008, 2010 Red Hat, Inc.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -39,7 +39,13 @@
                   "stfd %0, 0(%2)\n"
                   : "=f"(tmp)
                   : "b"(src), "b"(dst));
+#elif defined(S390) && !defined(_LP64)
+    double tmp;
+    asm volatile ("ld  %0, 0(%1)\n"
+                  "std %0, 0(%2)\n"
+                  : "=r"(tmp)
+                  : "a"(src), "a"(dst));
 #else
     *(jlong *) dst = *(jlong *) src;
-#endif // PPC && !_LP64
+#endif
   }