Update copyright notices with scripts/update-copyrights
[glibc.git] / sysdeps / powerpc / powerpc32 / stackguard-macros.h
blobb3d0af830f2e0f82dd61c64e1365f54c6f2443fb
1 #include <stdint.h>
3 #define STACK_CHK_GUARD \
4 ({ uintptr_t x; asm ("lwz %0,-28680(2)" : "=r" (x)); x; })
6 #define POINTER_CHK_GUARD \
7 ({ \
8 uintptr_t x; \
9 asm ("lwz %0,%1(2)" \
10 : "=r" (x) \
11 : "i" (offsetof (tcbhead_t, pointer_guard) - TLS_TCB_OFFSET - sizeof (tcbhead_t)) \
12 ); \
13 x; \