Thu Jan 9 20:13:54 2014 UTC ()
Coding style fixes (whitespace) - no functional changes


(palle)
diff -r1.107 -r1.108 src/sys/arch/sparc64/sparc64/cpu.c
diff -r1.285 -r1.286 src/sys/arch/sparc64/sparc64/pmap.c

cvs diff -r1.107 -r1.108 src/sys/arch/sparc64/sparc64/cpu.c (expand / switch to unified diff)

--- src/sys/arch/sparc64/sparc64/cpu.c 2014/01/07 20:11:35 1.107
+++ src/sys/arch/sparc64/sparc64/cpu.c 2014/01/09 20:13:54 1.108
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: cpu.c,v 1.107 2014/01/07 20:11:35 palle Exp $ */ 1/* $NetBSD: cpu.c,v 1.108 2014/01/09 20:13:54 palle Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1996 4 * Copyright (c) 1996
5 * The President and Fellows of Harvard College. All rights reserved. 5 * The President and Fellows of Harvard College. All rights reserved.
6 * Copyright (c) 1992, 1993 6 * Copyright (c) 1992, 1993
7 * The Regents of the University of California. All rights reserved. 7 * The Regents of the University of California. All rights reserved.
8 * 8 *
9 * This software was developed by the Computer Systems Engineering group 9 * This software was developed by the Computer Systems Engineering group
10 * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and 10 * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
11 * contributed to Berkeley. 11 * contributed to Berkeley.
12 * 12 *
13 * All advertising materials mentioning features or use of this software 13 * All advertising materials mentioning features or use of this software
14 * must display the following acknowledgement: 14 * must display the following acknowledgement:
@@ -42,27 +42,27 @@ @@ -42,27 +42,27 @@
42 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 42 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
43 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 43 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
44 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 44 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
45 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 45 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
46 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 46 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
47 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 47 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
48 * SUCH DAMAGE. 48 * SUCH DAMAGE.
49 * 49 *
50 * @(#)cpu.c 8.5 (Berkeley) 11/23/93 50 * @(#)cpu.c 8.5 (Berkeley) 11/23/93
51 * 51 *
52 */ 52 */
53 53
54#include <sys/cdefs.h> 54#include <sys/cdefs.h>
55__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.107 2014/01/07 20:11:35 palle Exp $"); 55__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.108 2014/01/09 20:13:54 palle Exp $");
56 56
57#include "opt_multiprocessor.h" 57#include "opt_multiprocessor.h"
58 58
59#include <sys/param.h> 59#include <sys/param.h>
60#include <sys/systm.h> 60#include <sys/systm.h>
61#include <sys/device.h> 61#include <sys/device.h>
62#include <sys/kernel.h> 62#include <sys/kernel.h>
63#include <sys/reboot.h> 63#include <sys/reboot.h>
64 64
65#include <uvm/uvm.h> 65#include <uvm/uvm.h>
66 66
67#include <machine/autoconf.h> 67#include <machine/autoconf.h>
68#include <machine/cpu.h> 68#include <machine/cpu.h>
@@ -170,27 +170,27 @@ alloc_cpuinfo(u_int cpu_node) @@ -170,27 +170,27 @@ alloc_cpuinfo(u_int cpu_node)
170 * 170 *
171 * Arrange pcb, idle stack and interrupt stack in the same 171 * Arrange pcb, idle stack and interrupt stack in the same
172 * way as is done for the boot CPU in pmap.c. 172 * way as is done for the boot CPU in pmap.c.
173 */ 173 */
174 cpi->ci_next = NULL; 174 cpi->ci_next = NULL;
175 cpi->ci_curlwp = NULL; 175 cpi->ci_curlwp = NULL;
176 cpi->ci_cpuid = portid; 176 cpi->ci_cpuid = portid;
177 cpi->ci_fplwp = NULL; 177 cpi->ci_fplwp = NULL;
178 cpi->ci_eintstack = NULL; 178 cpi->ci_eintstack = NULL;
179 cpi->ci_spinup = NULL; 179 cpi->ci_spinup = NULL;
180 cpi->ci_paddr = pa0; 180 cpi->ci_paddr = pa0;
181 cpi->ci_self = cpi; 181 cpi->ci_self = cpi;
182#ifdef SUN4V 182#ifdef SUN4V
183 if ( CPU_ISSUN4V ) 183 if (CPU_ISSUN4V)
184 cpi->ci_mmfsa = pa0; 184 cpi->ci_mmfsa = pa0;
185#endif 185#endif
186 cpi->ci_node = cpu_node; 186 cpi->ci_node = cpu_node;
187 cpi->ci_idepth = -1; 187 cpi->ci_idepth = -1;
188 memset(cpi->ci_intrpending, -1, sizeof(cpi->ci_intrpending)); 188 memset(cpi->ci_intrpending, -1, sizeof(cpi->ci_intrpending));
189 189
190 /* 190 /*
191 * Finally, add itself to the list of active cpus. 191 * Finally, add itself to the list of active cpus.
192 */ 192 */
193 for (ci = cpus; ci->ci_next != NULL; ci = ci->ci_next) 193 for (ci = cpus; ci->ci_next != NULL; ci = ci->ci_next)
194 ; 194 ;
195#ifdef MULTIPROCESSOR 195#ifdef MULTIPROCESSOR
196 ci->ci_next = cpi; 196 ci->ci_next = cpi;

cvs diff -r1.285 -r1.286 src/sys/arch/sparc64/sparc64/pmap.c (expand / switch to unified diff)

--- src/sys/arch/sparc64/sparc64/pmap.c 2014/01/07 20:11:35 1.285
+++ src/sys/arch/sparc64/sparc64/pmap.c 2014/01/09 20:13:54 1.286
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: pmap.c,v 1.285 2014/01/07 20:11:35 palle Exp $ */ 1/* $NetBSD: pmap.c,v 1.286 2014/01/09 20:13:54 palle Exp $ */
2/* 2/*
3 * 3 *
4 * Copyright (C) 1996-1999 Eduardo Horvath. 4 * Copyright (C) 1996-1999 Eduardo Horvath.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * 7 *
8 * Redistribution and use in source and binary forms, with or without 8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions 9 * modification, are permitted provided that the following conditions
10 * are met: 10 * are met:
11 * 1. Redistributions of source code must retain the above copyright 11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer. 12 * notice, this list of conditions and the following disclaimer.
13 * 13 *
14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND 14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND
@@ -16,27 +16,27 @@ @@ -16,27 +16,27 @@
16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE 17 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE
18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 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 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 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 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE. 24 * SUCH DAMAGE.
25 * 25 *
26 */ 26 */
27 27
28#include <sys/cdefs.h> 28#include <sys/cdefs.h>
29__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.285 2014/01/07 20:11:35 palle Exp $"); 29__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.286 2014/01/09 20:13:54 palle Exp $");
30 30
31#undef NO_VCACHE /* Don't forget the locked TLB in dostart */ 31#undef NO_VCACHE /* Don't forget the locked TLB in dostart */
32#define HWREF 32#define HWREF
33 33
34#include "opt_ddb.h" 34#include "opt_ddb.h"
35#include "opt_multiprocessor.h" 35#include "opt_multiprocessor.h"
36#include "opt_modular.h" 36#include "opt_modular.h"
37 37
38#include <sys/param.h> 38#include <sys/param.h>
39#include <sys/malloc.h> 39#include <sys/malloc.h>
40#include <sys/queue.h> 40#include <sys/queue.h>
41#include <sys/systm.h> 41#include <sys/systm.h>
42#include <sys/msgbuf.h> 42#include <sys/msgbuf.h>
@@ -1148,27 +1148,27 @@ pmap_bootstrap(u_long kernelstart, u_lon @@ -1148,27 +1148,27 @@ pmap_bootstrap(u_long kernelstart, u_lon
1148 1148
1149 /* Initialize our cpu_info structure */ 1149 /* Initialize our cpu_info structure */
1150 memset((void *)intstk, 0, 64 * KB); 1150 memset((void *)intstk, 0, 64 * KB);
1151 cpus->ci_self = cpus; 1151 cpus->ci_self = cpus;
1152 cpus->ci_next = NULL; 1152 cpus->ci_next = NULL;
1153 cpus->ci_curlwp = &lwp0; 1153 cpus->ci_curlwp = &lwp0;
1154 cpus->ci_flags = CPUF_PRIMARY; 1154 cpus->ci_flags = CPUF_PRIMARY;
1155 cpus->ci_cpuid = cpu_myid(); 1155 cpus->ci_cpuid = cpu_myid();
1156 cpus->ci_fplwp = NULL; 1156 cpus->ci_fplwp = NULL;
1157 cpus->ci_eintstack = NULL; 1157 cpus->ci_eintstack = NULL;
1158 cpus->ci_spinup = main; /* Call main when we're running. */ 1158 cpus->ci_spinup = main; /* Call main when we're running. */
1159 cpus->ci_paddr = cpu0paddr; 1159 cpus->ci_paddr = cpu0paddr;
1160#ifdef SUN4V 1160#ifdef SUN4V
1161 if ( CPU_ISSUN4V ) 1161 if (CPU_ISSUN4V)
1162 cpus->ci_mmfsa = cpu0paddr; 1162 cpus->ci_mmfsa = cpu0paddr;
1163#endif 1163#endif
1164 cpus->ci_cpcb = (struct pcb *)u0va; 1164 cpus->ci_cpcb = (struct pcb *)u0va;
1165 cpus->ci_idepth = -1; 1165 cpus->ci_idepth = -1;
1166 memset(cpus->ci_intrpending, -1, sizeof(cpus->ci_intrpending)); 1166 memset(cpus->ci_intrpending, -1, sizeof(cpus->ci_intrpending));
1167 1167
1168 uvm_lwp_setuarea(&lwp0, u0va); 1168 uvm_lwp_setuarea(&lwp0, u0va);
1169 lwp0.l_md.md_tf = (struct trapframe64*)(u0va + USPACE 1169 lwp0.l_md.md_tf = (struct trapframe64*)(u0va + USPACE
1170 - sizeof(struct trapframe64)); 1170 - sizeof(struct trapframe64));
1171 1171
1172 cpu0paddr += 64 * KB; 1172 cpu0paddr += 64 * KB;
1173 1173
1174 CPUSET_CLEAR(cpus_active); 1174 CPUSET_CLEAR(cpus_active);