Use a spare for the thread pointer (mc_thrptr). The thread pointer
is only read and written by set_mcontext() and get_mcontext() for use by threading libraries.
This commit is contained in:
parent
3665b7c29b
commit
286cc49014
@ -50,7 +50,8 @@ typedef struct __mcontext {
|
||||
#define _MC_REV0_SIGFRAME 1 /* context is a signal frame */
|
||||
#define _MC_REV0_TRAPFRAME 2 /* context is a trap frame */
|
||||
long mc_format;
|
||||
long mc_spare[6];
|
||||
long mc_thrptr; /* Thread pointer */
|
||||
long mc_spare[5];
|
||||
} mcontext_t;
|
||||
|
||||
#if defined(_KERNEL) && defined(COMPAT_FREEBSD4)
|
||||
|
Loading…
Reference in New Issue
Block a user