about summary refs log tree commit diff
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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ports/sysdeps/ia64/stackguard-macros.h b/ports/sysdeps/ia64/stackguard-macros.h
new file mode 100644
index 0000000000..dc683c28c5
--- /dev/null
+++ b/ports/sysdeps/ia64/stackguard-macros.h
@@ -0,0 +1,4 @@
+#include <stdint.h>
+
+#define STACK_CHK_GUARD \
+  ({ uintptr_t x; asm ("adds %0 = -8, r13;; ld8 %0 = [%0]" : "=r" (x)); x; })