summary refs log tree commit diff
path: root/sysdeps/s390/s390-64/stackguard-macros.h
blob: 0cebb5f022986e62d5422a2191fd5ddc3d44c524 (plain) (blame)
1
2
3
4
#include <stdint.h>

#define STACK_CHK_GUARD \
  ({ uintptr_t x; asm ("ear %0,%%a0; sllg %0,%0,32; ear %0,%%a1; lg %0,0x28(%0)" : "=a" (x)); x; })