mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
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
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue