Skip to content

Commit

Permalink
Add support for 31-bit s390; merge linux_syscall_support.h changes fr…
Browse files Browse the repository at this point in the history
…om upstream.
  • Loading branch information
bryanpkc authored and alk committed Jun 26, 2016
1 parent c542180 commit bf8eacc
Show file tree
Hide file tree
Showing 7 changed files with 222 additions and 102 deletions.
4 changes: 2 additions & 2 deletions configure.ac
Expand Up @@ -53,8 +53,8 @@ case "$host" in
*-darwin*) default_enable_heap_checker=no;;
esac

# Currently only backtrace works on s390x.
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(, [return __s390x__])],
# Currently only backtrace works on s390.
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(, [return __s390__])],
[default_enable_libunwind=no
default_enable_backtrace=yes],
[default_enable_libunwind=yes
Expand Down
2 changes: 1 addition & 1 deletion m4/pc_from_ucontext.m4
Expand Up @@ -27,7 +27,7 @@ AC_DEFUN([AC_PC_FROM_UCONTEXT],
pc_fields="$pc_fields uc_mcontext.sc_ip" # Linux (ia64)
pc_fields="$pc_fields uc_mcontext.pc" # Linux (mips)
pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[[PT_NIP]]" # Linux (ppc)
pc_fields="$pc_fields uc_mcontext.psw.addr" # Linux (s390x)
pc_fields="$pc_fields uc_mcontext.psw.addr" # Linux (s390)
pc_fields="$pc_fields uc_mcontext.gregs[[R15]]" # Linux (arm old [untested])
pc_fields="$pc_fields uc_mcontext.arm_pc" # Linux (arm arch 5)
pc_fields="$pc_fields uc_mcontext.gp_regs[[PT_NIP]]" # Suse SLES 11 (ppc64)
Expand Down
2 changes: 1 addition & 1 deletion src/base/basictypes.h
Expand Up @@ -363,7 +363,7 @@ class AssignAttributeStartEnd {
# elif (defined(__aarch64__))
# define CACHELINE_ALIGNED __attribute__((aligned(64)))
// implementation specific, Cortex-A53 and 57 should have 64 bytes
# elif (defined(__s390x__))
# elif (defined(__s390__))
# define CACHELINE_ALIGNED __attribute__((aligned(256)))
# else
# error Could not determine cache line length - unknown architecture
Expand Down

0 comments on commit bf8eacc

Please sign in to comment.