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:
Pawel Jakub Dawidek
2012-01-22 11:01:36 +00:00
parent 241b3b8122
commit 9b9a01792d
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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);
+2 -1
View File
@@ -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;