about summary refs log tree commit diff
path: root/sysdeps/sparc/sparc64/stackguard-macros.h
blob: cc0c12c0412901cfb00a80da71eb3a117b5d1c5a (plain) (blame)
1
2
3
4
5
6
7
#include <stdint.h>

#define STACK_CHK_GUARD \
  ({ uintptr_t x; asm ("ldx [%%g7+0x28], %0" : "=r" (x)); x; })

#define POINTER_CHK_GUARD \
  ({ uintptr_t x; asm ("ldx [%%g7+0x30], %0" : "=r" (x)); x; })