kern_thread.c (114400) | kern_thread.c (115084) |
---|---|
1/* 2 * Copyright (C) 2001 Julian Elischer <julian@freebsd.org>. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 22 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 23 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 26 * DAMAGE. 27 * | 1/* 2 * Copyright (C) 2001 Julian Elischer <julian@freebsd.org>. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 22 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 23 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 26 * DAMAGE. 27 * |
28 * $FreeBSD: head/sys/kern/kern_thread.c 114400 2003-05-01 12:16:06Z davidxu $ | 28 * $FreeBSD: head/sys/kern/kern_thread.c 115084 2003-05-16 21:26:42Z marcel $ |
29 */ 30 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/kernel.h> 34#include <sys/lock.h> 35#include <sys/malloc.h> 36#include <sys/mutex.h> --- 1179 unchanged lines hidden (view full) --- 1216 td->td_ksegrp = NULL; 1217 td->td_last_kse = NULL; 1218 PCPU_SET(deadthread, td); 1219 } else { 1220 PROC_UNLOCK(p); 1221 } 1222 /* XXX Shouldn't cpu_throw() here. */ 1223 mtx_assert(&sched_lock, MA_OWNED); | 29 */ 30 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/kernel.h> 34#include <sys/lock.h> 35#include <sys/malloc.h> 36#include <sys/mutex.h> --- 1179 unchanged lines hidden (view full) --- 1216 td->td_ksegrp = NULL; 1217 td->td_last_kse = NULL; 1218 PCPU_SET(deadthread, td); 1219 } else { 1220 PROC_UNLOCK(p); 1221 } 1222 /* XXX Shouldn't cpu_throw() here. */ 1223 mtx_assert(&sched_lock, MA_OWNED); |
1224#if defined(__i386__) || defined(__sparc64__) || defined(__amd64__) | 1224#if !defined(__alpha__) && !defined(__powerpc__) |
1225 cpu_throw(td, choosethread()); 1226#else 1227 cpu_throw(); 1228#endif 1229 panic("I'm a teapot!"); 1230 /* NOTREACHED */ 1231} 1232 --- 823 unchanged lines hidden --- | 1225 cpu_throw(td, choosethread()); 1226#else 1227 cpu_throw(); 1228#endif 1229 panic("I'm a teapot!"); 1230 /* NOTREACHED */ 1231} 1232 --- 823 unchanged lines hidden --- |