PowerPC: Fix POINTER_CHK_GUARD thread register for PPC64

This commit is contained in:
Adhemerval Zanella 2013-09-25 13:43:04 -05:00
parent c5f840fd4f
commit 5ebbff8fd1
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2013-09-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
* sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
Fix thread ID register.
2013-09-25 Joseph Myers <joseph@codesourcery.com>
* conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.

View File

@ -6,7 +6,7 @@
#define POINTER_CHK_GUARD \
({ \
uintptr_t x; \
asm ("ld %0,%1(2)" \
asm ("ld %0,%1(13)" \
: "=r" (x) \
: "i" (offsetof (tcbhead_t, pointer_guard) - TLS_TCB_OFFSET - sizeof (tcbhead_t)) \
); \