src/os_cpu/linux_zero/vm/os_linux_zero.hpp

changeset 1701
3b687c53c266
parent 1445
354d3184f6b2
child 1907
c18cbe5936b8
     1.1 --- a/src/os_cpu/linux_zero/vm/os_linux_zero.hpp	Thu Feb 18 11:35:41 2010 +0100
     1.2 +++ b/src/os_cpu/linux_zero/vm/os_linux_zero.hpp	Thu Feb 18 06:54:48 2010 -0800
     1.3 @@ -1,6 +1,6 @@
     1.4  /*
     1.5   * Copyright 2003-2004 Sun Microsystems, Inc.  All Rights Reserved.
     1.6 - * Copyright 2007, 2008 Red Hat, Inc.
     1.7 + * Copyright 2007, 2008, 2010 Red Hat, Inc.
     1.8   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.9   *
    1.10   * This code is free software; you can redistribute it and/or modify it
    1.11 @@ -39,7 +39,13 @@
    1.12                    "stfd %0, 0(%2)\n"
    1.13                    : "=f"(tmp)
    1.14                    : "b"(src), "b"(dst));
    1.15 +#elif defined(S390) && !defined(_LP64)
    1.16 +    double tmp;
    1.17 +    asm volatile ("ld  %0, 0(%1)\n"
    1.18 +                  "std %0, 0(%2)\n"
    1.19 +                  : "=r"(tmp)
    1.20 +                  : "a"(src), "a"(dst));
    1.21  #else
    1.22      *(jlong *) dst = *(jlong *) src;
    1.23 -#endif // PPC && !_LP64
    1.24 +#endif
    1.25    }

mercurial