machdep.c (69586) | machdep.c (71228) |
---|---|
1/*- 2 * Copyright (c) 2000 Doug Rabson 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2000 Doug Rabson 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/ia64/ia64/machdep.c 69586 2000-12-05 00:36:00Z jake $ | 26 * $FreeBSD: head/sys/ia64/ia64/machdep.c 71228 2001-01-19 01:59:14Z bmilekic $ |
27 */ 28 29#include "opt_compat.h" 30#include "opt_ddb.h" 31#include "opt_simos.h" 32#include "opt_msgbuf.h" 33 34#include <sys/param.h> --- 279 unchanged lines hidden (view full) --- 314 callout[i].c_flags = CALLOUT_LOCAL_ALLOC; 315 SLIST_INSERT_HEAD(&callfree, &callout[i], c_links.sle); 316 } 317 318 for (i = 0; i < callwheelsize; i++) { 319 TAILQ_INIT(&callwheel[i]); 320 } 321 | 27 */ 28 29#include "opt_compat.h" 30#include "opt_ddb.h" 31#include "opt_simos.h" 32#include "opt_msgbuf.h" 33 34#include <sys/param.h> --- 279 unchanged lines hidden (view full) --- 314 callout[i].c_flags = CALLOUT_LOCAL_ALLOC; 315 SLIST_INSERT_HEAD(&callfree, &callout[i], c_links.sle); 316 } 317 318 for (i = 0; i < callwheelsize; i++) { 319 TAILQ_INIT(&callwheel[i]); 320 } 321 |
322 mtx_init(&callout_lock, "callout", MTX_SPIN); | 322 mtx_init(&callout_lock, "callout", MTX_SPIN | MTX_RECURSE); |
323 324#if defined(USERCONFIG) 325#if defined(USERCONFIG_BOOT) 326 if (1) 327#else 328 if (boothowto & RB_CONFIG) 329#endif 330 { --- 254 unchanged lines hidden (view full) --- 585 * Record all cpus in a list. 586 */ 587 SLIST_INIT(&cpuhead); 588 SLIST_INSERT_HEAD(&cpuhead, GLOBALP, gd_allcpu); 589 590 /* 591 * Initialise mutexes. 592 */ | 323 324#if defined(USERCONFIG) 325#if defined(USERCONFIG_BOOT) 326 if (1) 327#else 328 if (boothowto & RB_CONFIG) 329#endif 330 { --- 254 unchanged lines hidden (view full) --- 585 * Record all cpus in a list. 586 */ 587 SLIST_INIT(&cpuhead); 588 SLIST_INSERT_HEAD(&cpuhead, GLOBALP, gd_allcpu); 589 590 /* 591 * Initialise mutexes. 592 */ |
593 mtx_init(&Giant, "Giant", MTX_DEF | MTX_COLD); 594 mtx_init(&sched_lock, "sched lock", MTX_SPIN | MTX_COLD); | 593 mtx_init(&Giant, "Giant", MTX_DEF | MTX_COLD | MTX_RECURSE); 594 mtx_init(&sched_lock, "sched lock", MTX_SPIN | MTX_COLD | MTX_RECURSE); |
595 596#if 0 597 /* 598 * Enable interrupts on first release (in switch_trampoline). 599 */ 600 sched_lock.mtx_saveipl = ALPHA_PSL_IPL_0; 601#endif 602 --- 754 unchanged lines hidden --- | 595 596#if 0 597 /* 598 * Enable interrupts on first release (in switch_trampoline). 599 */ 600 sched_lock.mtx_saveipl = ALPHA_PSL_IPL_0; 601#endif 602 --- 754 unchanged lines hidden --- |