8 lines
228 B
C
8 lines
228 B
C
|
#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
|