TDF_* flags should be used with td_flags field and TDP_* flags should be used
with td_pflags field. Correct two places where it was not the case. Discussed with: kib MFC after: 1 week
This commit is contained in:
@@ -137,7 +137,7 @@ sendsig(catcher, ksi, mask)
|
||||
catcher, sig);
|
||||
|
||||
/* Allocate and validate space for the signal handler context. */
|
||||
if ((td->td_flags & TDP_ALTSTACK) != 0 && !(onstack) &&
|
||||
if ((td->td_pflags & TDP_ALTSTACK) != 0 && !(onstack) &&
|
||||
SIGISMEMBER(psp->ps_sigonstack, sig)) {
|
||||
fp = (struct sigframe *)(td->td_sigstk.ss_sp +
|
||||
td->td_sigstk.ss_size);
|
||||
|
||||
@@ -467,7 +467,8 @@ proc0_init(void *dummy __unused)
|
||||
td->td_priority = PVM;
|
||||
td->td_base_pri = PVM;
|
||||
td->td_oncpu = 0;
|
||||
td->td_flags = TDF_INMEM|TDP_KTHREAD;
|
||||
td->td_flags = TDF_INMEM;
|
||||
td->td_pflags = TDP_KTHREAD;
|
||||
td->td_cpuset = cpuset_thread0();
|
||||
prison0.pr_cpuset = cpuset_ref(td->td_cpuset);
|
||||
p->p_peers = 0;
|
||||
|
||||
Reference in New Issue
Block a user