]> sourceware.org Git - glibc.git/commitdiff
hurd: Add pointer guard support
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 6 Jun 2020 01:26:00 +0000 (01:26 +0000)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 6 Jun 2020 01:29:44 +0000 (03:29 +0200)
* sysdeps/mach/hurd/i386/tls.h (THREAD_SET_POINTER_GUARD,
THREAD_COPY_POINTER_GUARD): New macros.

sysdeps/mach/hurd/i386/tls.h

index 03a894bd35e224fae445ff37751a95b14099bb76..97d0b1cbab66fd60e1795681d700e5960ae54be1 100644 (file)
@@ -303,6 +303,13 @@ out:
   ((descr)->stack_guard                                                              \
    = THREAD_GETMEM (THREAD_SELF, stack_guard))
 
+/* Set the pointer guard field in the TCB head.  */
+#define THREAD_SET_POINTER_GUARD(value) \
+  THREAD_SETMEM (THREAD_SELF, pointer_guard, value)
+#define THREAD_COPY_POINTER_GUARD(descr) \
+  ((descr)->pointer_guard                                                    \
+   = THREAD_GETMEM (THREAD_SELF, pointer_guard))
+
 
 # include <mach/machine/thread_status.h>
 
This page took 0.039031 seconds and 5 git commands to generate.