2012-05-15 23:34:30 +00:00
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#define STACK_CHK_GUARD \
|
|
|
|
({ uintptr_t x; \
|
|
|
|
asm ("mov %%fs:%c1, %0" : "=r" (x) \
|
|
|
|
: "i" (offsetof (tcbhead_t, stack_guard))); x; })
|
2013-09-23 00:52:09 -04:00
|
|
|
|
|
|
|
#define POINTER_CHK_GUARD \
|
|
|
|
({ uintptr_t x; \
|
|
|
|
asm ("mov %%fs:%c1, %0" : "=r" (x) \
|
|
|
|
: "i" (offsetof (tcbhead_t, pointer_guard))); x; })
|