Skip to content

Commit

Permalink
Merge pull request #2247 from ibm-research-ireland/master
Browse files Browse the repository at this point in the history
HPX on ppc64le
  • Loading branch information
hkaiser committed Jul 12, 2016
2 parents a79e9b8 + cde9e60 commit aaf27e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 5 additions & 1 deletion hpx/config.hpp
Expand Up @@ -462,7 +462,11 @@
# if defined(HPX_DEBUG)
# define HPX_SMALL_STACK_SIZE 0x20000 // 128kByte
# else
# define HPX_SMALL_STACK_SIZE 0xC000 // 48kByte
# if defined(__powerpc__)
# define HPX_SMALL_STACK_SIZE 0x20000 // 128kByte
# else
# define HPX_SMALL_STACK_SIZE 0xC000 // 48kByte
# endif
# endif
# endif
#endif
Expand Down
3 changes: 1 addition & 2 deletions hpx/runtime/threads/coroutines/detail/get_stack_pointer.hpp
Expand Up @@ -10,7 +10,6 @@
#if !defined(HPX_WINDOWS)
#if defined(__x86_64__) || defined(__amd64) \
|| defined(__i386__) || defined(__i486__) || defined(__i586__) || defined(__i686__) \
|| defined(__powerpc__) \
|| defined(__arm__)
#define HPX_HAVE_THREADS_GET_STACK_POINTER
#endif
Expand All @@ -28,7 +27,7 @@ namespace hpx { namespace threads { namespace coroutines { namespace detail
#elif defined(__i386__) || defined(__i486__) || defined(__i586__) || defined(__i686__)
asm("movl %%esp, %0" : "=r"(stack_ptr));
#elif defined(__powerpc__)
std::size_t stack_ptr_p = &stack_ptr;
std::size_t stack_ptr_p = (std::size_t)&stack_ptr;
asm("stw %%r1, 0(%0)" : "=&r"(stack_ptr_p));
#elif defined(__arm__)
asm("mov %0, sp" : "=r"(stack_ptr));
Expand Down

0 comments on commit aaf27e2

Please sign in to comment.