summaryrefslogtreecommitdiff
path: root/ports/sysdeps/ia64/stackguard-macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'ports/sysdeps/ia64/stackguard-macros.h')
-rw-r--r--ports/sysdeps/ia64/stackguard-macros.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ports/sysdeps/ia64/stackguard-macros.h b/ports/sysdeps/ia64/stackguard-macros.h
index dc683c28c5..390729327a 100644
--- a/ports/sysdeps/ia64/stackguard-macros.h
+++ b/ports/sysdeps/ia64/stackguard-macros.h
@@ -2,3 +2,6 @@
#define STACK_CHK_GUARD \
({ uintptr_t x; asm ("adds %0 = -8, r13;; ld8 %0 = [%0]" : "=r" (x)); x; })
+
+#define POINTER_CHK_GUARD \
+ ({ uintptr_t x; asm ("adds %0 = -16, r13;; ld8 %0 = [%0]" : "=r" (x)); x; })