2
0
mirror of git://sourceware.org/git/glibc.git synced 2025-02-11 12:50:58 +08:00
glibc/sysdeps/tile/stackguard-macros.h

8 lines
228 B
C
Raw Normal View History

#ifdef __tilegx__
# define STACK_CHK_GUARD \
({ uintptr_t x; asm ("addi %0, tp, -16; ld %0, %0" : "=r" (x)); x; })
#else
# define STACK_CHK_GUARD \
({ uintptr_t x; asm ("addi %0, tp, -8; lw %0, %0" : "=r" (x)); x; })
#endif