Print this page
3625 we only need one thread_create_intr


   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  */
  26 
  27 /*
  28  * FILE NOTICE BEGIN
  29  *
  30  * This file should not be modified.  If you wish to modify it or have it
  31  * modified, please contact Sun Microsystems at <LFI149367@-sun-.-com->
  32  * (without anti-spam dashes)
  33  *
  34  * FILE NOTICE END
  35  */
  36 
  37 #pragma ident   "%Z%%M% %I%     %E% SMI"
  38 
  39 #include <sys/cpuvar.h>
  40 #include <sys/stack.h>
  41 #include <vm/seg_kp.h>
  42 #include <sys/proc.h>
  43 #include <sys/pset.h>
  44 #include <sys/sysmacros.h>
  45 
  46 /*
  47  * Create and initialize an interrupt thread.
  48  */
  49 static void
  50 thread_create_intr(cpu_t *cp)
  51 {
  52         kthread_t *tp;
  53 
  54         tp = thread_create(NULL, 0,
  55             (void (*)())thread_create_intr, NULL, 0, &p0, TS_ONPROC, 0);
  56 
  57         /*
  58          * Set the thread in the TS_FREE state.  The state will change




   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  */
  26 












  27 #include <sys/cpuvar.h>
  28 #include <sys/stack.h>
  29 #include <vm/seg_kp.h>
  30 #include <sys/proc.h>
  31 #include <sys/pset.h>
  32 #include <sys/sysmacros.h>
  33 
  34 /*
  35  * Create and initialize an interrupt thread.
  36  */
  37 static void
  38 thread_create_intr(cpu_t *cp)
  39 {
  40         kthread_t *tp;
  41 
  42         tp = thread_create(NULL, 0,
  43             (void (*)())thread_create_intr, NULL, 0, &p0, TS_ONPROC, 0);
  44 
  45         /*
  46          * Set the thread in the TS_FREE state.  The state will change