svn commit: r230455 - in head/sys: arm/arm kern
Pawel Jakub Dawidek
pjd at FreeBSD.org
Sun Jan 22 11:01:37 UTC 2012
Author: pjd
Date: Sun Jan 22 11:01:36 2012
New Revision: 230455
URL: http://svn.freebsd.org/changeset/base/230455
Log:
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
Modified:
head/sys/arm/arm/machdep.c
head/sys/kern/init_main.c
Modified: head/sys/arm/arm/machdep.c
==============================================================================
--- head/sys/arm/arm/machdep.c Sun Jan 22 10:58:17 2012 (r230454)
+++ head/sys/arm/arm/machdep.c Sun Jan 22 11:01:36 2012 (r230455)
@@ -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);
Modified: head/sys/kern/init_main.c
==============================================================================
--- head/sys/kern/init_main.c Sun Jan 22 10:58:17 2012 (r230454)
+++ head/sys/kern/init_main.c Sun Jan 22 11:01:36 2012 (r230455)
@@ -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;
More information about the svn-src-head
mailing list