mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-24 03:31:07 +00:00
hurd: Add pointer guard support
* sysdeps/mach/hurd/i386/tls.h (THREAD_SET_POINTER_GUARD, THREAD_COPY_POINTER_GUARD): New macros.
This commit is contained in:
parent
ecfa912f42
commit
8fcc772da8
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user