Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jan 2012 11:01:36 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r230455 - in head/sys: arm/arm kern
Message-ID:  <201201221101.q0MB1aHC073046@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201221101.q0MB1aHC073046>