1 #include <stdint.h>
2 
3 #define STACK_CHK_GUARD \
4   ({ uintptr_t x; __asm__ ("ear %0,%%a0; l %0,0x14(%0)" : "=a" (x)); x; })
5 
6 /* On s390/s390x there is no unique pointer guard, instead we use the
7    same value as the stack guard.  */
8 #define POINTER_CHK_GUARD \
9   ({								\
10     uintptr_t x;						\
11     __asm__ ("ear %0,%%a0; l %0,%1(%0)"				\
12 	     : "=a" (x)						\
13 	     : "i" (offsetof (tcbhead_t, stack_guard)));	\
14     x;								\
15   })
16