mp_machdep.c (216803) | mp_machdep.c (222531) |
---|---|
1/*- 2 * Copyright (c) 1997 Berkeley Software Design, Inc. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 41 unchanged lines hidden (view full) --- 50 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 51 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 52 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 53 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 54 * SUCH DAMAGE. 55 */ 56 57#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1997 Berkeley Software Design, Inc. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 41 unchanged lines hidden (view full) --- 50 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 51 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 52 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 53 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 54 * SUCH DAMAGE. 55 */ 56 57#include <sys/cdefs.h> |
58__FBSDID("$FreeBSD: head/sys/sparc64/sparc64/mp_machdep.c 216803 2010-12-29 16:59:33Z marius $"); | 58__FBSDID("$FreeBSD: head/sys/sparc64/sparc64/mp_machdep.c 222531 2011-05-31 15:11:43Z nwhitehorn $"); |
59 60#include <sys/param.h> 61#include <sys/systm.h> 62#include <sys/lock.h> 63#include <sys/kdb.h> 64#include <sys/kernel.h> 65#include <sys/ktr.h> 66#include <sys/mutex.h> --- 311 unchanged lines hidden (view full) --- 378 u_int ctx_inc; 379 u_int ctx_min; 380 int i; 381 382 ctx_min = TLB_CTX_USER_MIN; 383 ctx_inc = (TLB_CTX_USER_MAX - 1) / mp_ncpus; 384 csa = &cpu_start_args; 385 csa->csa_count = mp_ncpus; | 59 60#include <sys/param.h> 61#include <sys/systm.h> 62#include <sys/lock.h> 63#include <sys/kdb.h> 64#include <sys/kernel.h> 65#include <sys/ktr.h> 66#include <sys/mutex.h> --- 311 unchanged lines hidden (view full) --- 378 u_int ctx_inc; 379 u_int ctx_min; 380 int i; 381 382 ctx_min = TLB_CTX_USER_MIN; 383 ctx_inc = (TLB_CTX_USER_MAX - 1) / mp_ncpus; 384 csa = &cpu_start_args; 385 csa->csa_count = mp_ncpus; |
386 SLIST_FOREACH(pc, &cpuhead, pc_allcpu) { | 386 STAILQ_FOREACH(pc, &cpuhead, pc_allcpu) { |
387 pc->pc_tlb_ctx = ctx_min; 388 pc->pc_tlb_ctx_min = ctx_min; 389 pc->pc_tlb_ctx_max = ctx_min + ctx_inc; 390 ctx_min += ctx_inc; 391 392 if (pc->pc_cpuid == curcpu) 393 continue; 394 KASSERT(pc->pc_idlethread != NULL, --- 434 unchanged lines hidden --- | 387 pc->pc_tlb_ctx = ctx_min; 388 pc->pc_tlb_ctx_min = ctx_min; 389 pc->pc_tlb_ctx_max = ctx_min + ctx_inc; 390 ctx_min += ctx_inc; 391 392 if (pc->pc_cpuid == curcpu) 393 continue; 394 KASSERT(pc->pc_idlethread != NULL, --- 434 unchanged lines hidden --- |