opt_multiprocessor.h policediff -r1.13 -r1.14 src/sys/arch/mips/mips/mips3_clock.c
(skrll)
--- src/sys/arch/mips/mips/mips3_clock.c 2011/07/10 23:13:22 1.13
+++ src/sys/arch/mips/mips/mips3_clock.c 2017/05/07 05:45:07 1.14
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: mips3_clock.c,v 1.13 2011/07/10 23:13:22 matt Exp $ */ | 1 | /* $NetBSD: mips3_clock.c,v 1.14 2017/05/07 05:45:07 skrll Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright (c) 1988 University of Utah. | 4 | * Copyright (c) 1988 University of Utah. | |
5 | * Copyright (c) 1992, 1993 | 5 | * Copyright (c) 1992, 1993 | |
6 | * The Regents of the University of California. All rights reserved. | 6 | * The Regents of the University of California. All rights reserved. | |
7 | * | 7 | * | |
8 | * This code is derived from software contributed to Berkeley by | 8 | * This code is derived from software contributed to Berkeley by | |
9 | * the Systems Programming Group of the University of Utah Computer | 9 | * the Systems Programming Group of the University of Utah Computer | |
10 | * Science Department and Ralph Campbell. | 10 | * Science Department and Ralph Campbell. | |
11 | * | 11 | * | |
12 | * Redistribution and use in source and binary forms, with or without | 12 | * Redistribution and use in source and binary forms, with or without | |
13 | * modification, are permitted provided that the following conditions | 13 | * modification, are permitted provided that the following conditions | |
14 | * are met: | 14 | * are met: | |
@@ -30,27 +30,29 @@ | @@ -30,27 +30,29 @@ | |||
30 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | 30 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
31 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | 31 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | |
32 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 32 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | |
33 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 33 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |
34 | * SUCH DAMAGE. | 34 | * SUCH DAMAGE. | |
35 | * | 35 | * | |
36 | * from: Utah Hdr: clock.c 1.18 91/01/21 | 36 | * from: Utah Hdr: clock.c 1.18 91/01/21 | |
37 | * | 37 | * | |
38 | * @(#)clock.c 8.1 (Berkeley) 6/10/93 | 38 | * @(#)clock.c 8.1 (Berkeley) 6/10/93 | |
39 | */ | 39 | */ | |
40 | 40 | |||
41 | #include <sys/cdefs.h> /* RCS ID & Copyright macro defns */ | 41 | #include <sys/cdefs.h> /* RCS ID & Copyright macro defns */ | |
42 | 42 | |||
43 | __KERNEL_RCSID(0, "$NetBSD: mips3_clock.c,v 1.13 2011/07/10 23:13:22 matt Exp $"); | 43 | #include "opt_multiprocessor.h" | |
44 | ||||
45 | __KERNEL_RCSID(0, "$NetBSD: mips3_clock.c,v 1.14 2017/05/07 05:45:07 skrll Exp $"); | |||
44 | 46 | |||
45 | #include <sys/param.h> | 47 | #include <sys/param.h> | |
46 | #include <sys/cpu.h> | 48 | #include <sys/cpu.h> | |
47 | #include <sys/intr.h> | 49 | #include <sys/intr.h> | |
48 | #include <sys/kernel.h> | 50 | #include <sys/kernel.h> | |
49 | #include <sys/timetc.h> | 51 | #include <sys/timetc.h> | |
50 | 52 | |||
51 | #include <mips/mips3_clock.h> | 53 | #include <mips/mips3_clock.h> | |
52 | 54 | |||
53 | #include <mips/locore.h> | 55 | #include <mips/locore.h> | |
54 | 56 | |||
55 | /* | 57 | /* | |
56 | * Wait for at least "n" microseconds. | 58 | * Wait for at least "n" microseconds. |
--- src/sys/arch/mips/mips/mips_dsp.c 2017/03/16 16:13:20 1.5
+++ src/sys/arch/mips/mips/mips_dsp.c 2017/05/07 05:45:07 1.6
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: mips_dsp.c,v 1.5 2017/03/16 16:13:20 chs Exp $ */ | 1 | /* $NetBSD: mips_dsp.c,v 1.6 2017/05/07 05:45:07 skrll Exp $ */ | |
2 | 2 | |||
3 | /*- | 3 | /*- | |
4 | * Copyright (c) 2011 The NetBSD Foundation, Inc. | 4 | * Copyright (c) 2011 The NetBSD Foundation, Inc. | |
5 | * All rights reserved. | 5 | * All rights reserved. | |
6 | * | 6 | * | |
7 | * This code is derived from software contributed to The NetBSD Foundation | 7 | * This code is derived from software contributed to The NetBSD Foundation | |
8 | * by Matt Thomas of 3am Software Foundry. | 8 | * by Matt Thomas of 3am Software Foundry. | |
9 | * | 9 | * | |
10 | * Redistribution and use in source and binary forms, with or without | 10 | * Redistribution and use in source and binary forms, with or without | |
11 | * modification, are permitted provided that the following conditions | 11 | * modification, are permitted provided that the following conditions | |
12 | * are met: | 12 | * are met: | |
13 | * 1. Redistributions of source code must retain the above copyright | 13 | * 1. Redistributions of source code must retain the above copyright | |
14 | * notice, this list of conditions and the following disclaimer. | 14 | * notice, this list of conditions and the following disclaimer. | |
@@ -20,29 +20,27 @@ | @@ -20,29 +20,27 @@ | |||
20 | * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED | 20 | * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED | |
21 | * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | 21 | * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | |
22 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS | 22 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS | |
23 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | 23 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | |
24 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | 24 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | |
25 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | 25 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | |
26 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | 26 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | |
27 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | 27 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | |
28 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | 28 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | |
29 | * POSSIBILITY OF SUCH DAMAGE. | 29 | * POSSIBILITY OF SUCH DAMAGE. | |
30 | */ | 30 | */ | |
31 | 31 | |||
32 | #include <sys/cdefs.h> | 32 | #include <sys/cdefs.h> | |
33 | __KERNEL_RCSID(0, "$NetBSD: mips_dsp.c,v 1.5 2017/03/16 16:13:20 chs Exp $"); | 33 | __KERNEL_RCSID(0, "$NetBSD: mips_dsp.c,v 1.6 2017/05/07 05:45:07 skrll Exp $"); | |
34 | ||||
35 | #include "opt_multiprocessor.h" | |||
36 | 34 | |||
37 | #include <sys/param.h> | 35 | #include <sys/param.h> | |
38 | #include <sys/mutex.h> | 36 | #include <sys/mutex.h> | |
39 | #include <sys/condvar.h> | 37 | #include <sys/condvar.h> | |
40 | #include <sys/cpu.h> | 38 | #include <sys/cpu.h> | |
41 | #include <sys/proc.h> | 39 | #include <sys/proc.h> | |
42 | #include <sys/lwp.h> | 40 | #include <sys/lwp.h> | |
43 | #include <sys/pcu.h> | 41 | #include <sys/pcu.h> | |
44 | 42 | |||
45 | #include <mips/locore.h> | 43 | #include <mips/locore.h> | |
46 | #include <mips/regnum.h> | 44 | #include <mips/regnum.h> | |
47 | #include <mips/pcb.h> | 45 | #include <mips/pcb.h> | |
48 | 46 |
--- src/sys/arch/mips/mips/mips_fpu.c 2017/03/16 16:13:20 1.14
+++ src/sys/arch/mips/mips/mips_fpu.c 2017/05/07 05:45:07 1.15
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: mips_fpu.c,v 1.14 2017/03/16 16:13:20 chs Exp $ */ | 1 | /* $NetBSD: mips_fpu.c,v 1.15 2017/05/07 05:45:07 skrll Exp $ */ | |
2 | 2 | |||
3 | /*- | 3 | /*- | |
4 | * Copyright (c) 2010 The NetBSD Foundation, Inc. | 4 | * Copyright (c) 2010 The NetBSD Foundation, Inc. | |
5 | * All rights reserved. | 5 | * All rights reserved. | |
6 | * | 6 | * | |
7 | * This code is derived from software contributed to The NetBSD Foundation | 7 | * This code is derived from software contributed to The NetBSD Foundation | |
8 | * by Matt Thomas of 3am Software Foundry. | 8 | * by Matt Thomas of 3am Software Foundry. | |
9 | * | 9 | * | |
10 | * Redistribution and use in source and binary forms, with or without | 10 | * Redistribution and use in source and binary forms, with or without | |
11 | * modification, are permitted provided that the following conditions | 11 | * modification, are permitted provided that the following conditions | |
12 | * are met: | 12 | * are met: | |
13 | * 1. Redistributions of source code must retain the above copyright | 13 | * 1. Redistributions of source code must retain the above copyright | |
14 | * notice, this list of conditions and the following disclaimer. | 14 | * notice, this list of conditions and the following disclaimer. | |
@@ -20,29 +20,27 @@ | @@ -20,29 +20,27 @@ | |||
20 | * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED | 20 | * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED | |
21 | * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | 21 | * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | |
22 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS | 22 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS | |
23 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | 23 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | |
24 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | 24 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | |
25 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | 25 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | |
26 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | 26 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | |
27 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | 27 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | |
28 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | 28 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | |
29 | * POSSIBILITY OF SUCH DAMAGE. | 29 | * POSSIBILITY OF SUCH DAMAGE. | |
30 | */ | 30 | */ | |
31 | 31 | |||
32 | #include <sys/cdefs.h> | 32 | #include <sys/cdefs.h> | |
33 | __KERNEL_RCSID(0, "$NetBSD: mips_fpu.c,v 1.14 2017/03/16 16:13:20 chs Exp $"); | 33 | __KERNEL_RCSID(0, "$NetBSD: mips_fpu.c,v 1.15 2017/05/07 05:45:07 skrll Exp $"); | |
34 | ||||
35 | #include "opt_multiprocessor.h" | |||
36 | 34 | |||
37 | #include <sys/param.h> | 35 | #include <sys/param.h> | |
38 | #include <sys/mutex.h> | 36 | #include <sys/mutex.h> | |
39 | #include <sys/condvar.h> | 37 | #include <sys/condvar.h> | |
40 | #include <sys/cpu.h> | 38 | #include <sys/cpu.h> | |
41 | #include <sys/proc.h> | 39 | #include <sys/proc.h> | |
42 | #include <sys/lwp.h> | 40 | #include <sys/lwp.h> | |
43 | #include <sys/pcu.h> | 41 | #include <sys/pcu.h> | |
44 | 42 | |||
45 | #include <mips/locore.h> | 43 | #include <mips/locore.h> | |
46 | #include <mips/regnum.h> | 44 | #include <mips/regnum.h> | |
47 | #include <mips/pcb.h> | 45 | #include <mips/pcb.h> | |
48 | 46 |
--- src/sys/arch/mips/mips/mips_machdep.c 2016/12/23 07:15:27 1.276
+++ src/sys/arch/mips/mips/mips_machdep.c 2017/05/07 05:45:07 1.277
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: mips_machdep.c,v 1.276 2016/12/23 07:15:27 cherry Exp $ */ | 1 | /* $NetBSD: mips_machdep.c,v 1.277 2017/05/07 05:45:07 skrll Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright 2002 Wasabi Systems, Inc. | 4 | * Copyright 2002 Wasabi Systems, Inc. | |
5 | * All rights reserved. | 5 | * All rights reserved. | |
6 | * | 6 | * | |
7 | * Written by Simon Burge for Wasabi Systems, Inc. | 7 | * Written by Simon Burge for Wasabi Systems, Inc. | |
8 | * | 8 | * | |
9 | * Redistribution and use in source and binary forms, with or without | 9 | * Redistribution and use in source and binary forms, with or without | |
10 | * modification, are permitted provided that the following conditions | 10 | * modification, are permitted provided that the following conditions | |
11 | * are met: | 11 | * are met: | |
12 | * 1. Redistributions of source code must retain the above copyright | 12 | * 1. Redistributions of source code must retain the above copyright | |
13 | * notice, this list of conditions and the following disclaimer. | 13 | * notice, this list of conditions and the following disclaimer. | |
14 | * 2. Redistributions in binary form must reproduce the above copyright | 14 | * 2. Redistributions in binary form must reproduce the above copyright | |
@@ -101,31 +101,32 @@ | @@ -101,31 +101,32 @@ | |||
101 | * Copyright 1996 The Board of Trustees of The Leland Stanford | 101 | * Copyright 1996 The Board of Trustees of The Leland Stanford | |
102 | * Junior University. All Rights Reserved. | 102 | * Junior University. All Rights Reserved. | |
103 | * | 103 | * | |
104 | * Permission to use, copy, modify, and distribute this | 104 | * Permission to use, copy, modify, and distribute this | |
105 | * software and its documentation for any purpose and without | 105 | * software and its documentation for any purpose and without | |
106 | * fee is hereby granted, provided that the above copyright | 106 | * fee is hereby granted, provided that the above copyright | |
107 | * notice appear in all copies. Stanford University | 107 | * notice appear in all copies. Stanford University | |
108 | * makes no representations about the suitability of this | 108 | * makes no representations about the suitability of this | |
109 | * software for any purpose. It is provided "as is" without | 109 | * software for any purpose. It is provided "as is" without | |
110 | * express or implied warranty. | 110 | * express or implied warranty. | |
111 | */ | 111 | */ | |
112 | 112 | |||
113 | #include <sys/cdefs.h> /* RCS ID & Copyright macro defns */ | 113 | #include <sys/cdefs.h> /* RCS ID & Copyright macro defns */ | |
114 | __KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.276 2016/12/23 07:15:27 cherry Exp $"); | 114 | __KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.277 2017/05/07 05:45:07 skrll Exp $"); | |
115 | 115 | |||
116 | #define __INTR_PRIVATE | 116 | #define __INTR_PRIVATE | |
117 | #include "opt_cputype.h" | 117 | #include "opt_cputype.h" | |
118 | #include "opt_compat_netbsd32.h" | 118 | #include "opt_compat_netbsd32.h" | |
119 | #include "opt_multiprocessor.h" | |||
119 | 120 | |||
120 | #include <sys/param.h> | 121 | #include <sys/param.h> | |
121 | #include <sys/systm.h> | 122 | #include <sys/systm.h> | |
122 | #include <sys/proc.h> | 123 | #include <sys/proc.h> | |
123 | #include <sys/intr.h> | 124 | #include <sys/intr.h> | |
124 | #include <sys/exec.h> | 125 | #include <sys/exec.h> | |
125 | #include <sys/reboot.h> | 126 | #include <sys/reboot.h> | |
126 | #include <sys/mount.h> /* fsid_t for syscallargs */ | 127 | #include <sys/mount.h> /* fsid_t for syscallargs */ | |
127 | #include <sys/lwp.h> | 128 | #include <sys/lwp.h> | |
128 | #include <sys/sysctl.h> | 129 | #include <sys/sysctl.h> | |
129 | #include <sys/msgbuf.h> | 130 | #include <sys/msgbuf.h> | |
130 | #include <sys/conf.h> | 131 | #include <sys/conf.h> | |
131 | #include <sys/core.h> | 132 | #include <sys/core.h> |