| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: pmap.c,v 1.106 2020/04/15 08:14:22 skrll Exp $ */ | | 1 | /* $NetBSD: pmap.c,v 1.107 2020/04/15 09:41:09 skrll Exp $ */ |
2 | | | 2 | |
3 | /*- | | 3 | /*- |
4 | * Copyright (c) 2001, 2002 The NetBSD Foundation, Inc. | | 4 | * Copyright (c) 2001, 2002 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 Matthew Fredette. | | 8 | * by Matthew Fredette. |
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. |
| @@ -55,47 +55,47 @@ | | | @@ -55,47 +55,47 @@ |
55 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | | 55 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING |
56 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF | | 56 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF |
57 | * THE POSSIBILITY OF SUCH DAMAGE. | | 57 | * THE POSSIBILITY OF SUCH DAMAGE. |
58 | */ | | 58 | */ |
59 | /* | | 59 | /* |
60 | * References: | | 60 | * References: |
61 | * 1. PA7100LC ERS, Hewlett-Packard, March 30 1999, Public version 1.0 | | 61 | * 1. PA7100LC ERS, Hewlett-Packard, March 30 1999, Public version 1.0 |
62 | * 2. PA7300LC ERS, Hewlett-Packard, March 18 1996, Version 1.0 | | 62 | * 2. PA7300LC ERS, Hewlett-Packard, March 18 1996, Version 1.0 |
63 | * 3. PA-RISC 1.1 Architecture and Instruction Set Reference Manual, | | 63 | * 3. PA-RISC 1.1 Architecture and Instruction Set Reference Manual, |
64 | * Hewlett-Packard, February 1994, Third Edition | | 64 | * Hewlett-Packard, February 1994, Third Edition |
65 | */ | | 65 | */ |
66 | | | 66 | |
67 | #include <sys/cdefs.h> | | 67 | #include <sys/cdefs.h> |
68 | __KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.106 2020/04/15 08:14:22 skrll Exp $"); | | 68 | __KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.107 2020/04/15 09:41:09 skrll Exp $"); |
69 | | | 69 | |
70 | #include "opt_cputype.h" | | 70 | #include "opt_cputype.h" |
71 | | | 71 | |
72 | #include <sys/param.h> | | 72 | #include <sys/param.h> |
73 | #include <sys/systm.h> | | | |
74 | #include <sys/proc.h> | | | |
75 | #include <sys/mutex.h> | | 73 | #include <sys/mutex.h> |
| | | 74 | #include <sys/proc.h> |
76 | #include <sys/rwlock.h> | | 75 | #include <sys/rwlock.h> |
| | | 76 | #include <sys/systm.h> |
77 | | | 77 | |
78 | #include <uvm/uvm.h> | | 78 | #include <uvm/uvm.h> |
79 | #include <uvm/uvm_page_array.h> | | 79 | #include <uvm/uvm_page_array.h> |
80 | | | 80 | |
81 | #include <machine/reg.h> | | | |
82 | #include <machine/psl.h> | | | |
83 | #include <machine/cpu.h> | | 81 | #include <machine/cpu.h> |
| | | 82 | #include <machine/cpufunc.h> |
| | | 83 | #include <machine/iomod.h> |
84 | #include <machine/pcb.h> | | 84 | #include <machine/pcb.h> |
85 | #include <machine/pmap.h> | | 85 | #include <machine/pmap.h> |
86 | #include <machine/pte.h> | | 86 | #include <machine/pte.h> |
87 | #include <machine/cpufunc.h> | | 87 | #include <machine/psl.h> |
88 | #include <machine/iomod.h> | | 88 | #include <machine/reg.h> |
89 | | | 89 | |
90 | #include <hppa/hppa/hpt.h> | | 90 | #include <hppa/hppa/hpt.h> |
91 | #include <hppa/hppa/machdep.h> | | 91 | #include <hppa/hppa/machdep.h> |
92 | | | 92 | |
93 | #if defined(DDB) | | 93 | #if defined(DDB) |
94 | #include <ddb/db_output.h> | | 94 | #include <ddb/db_output.h> |
95 | #endif | | 95 | #endif |
96 | | | 96 | |
97 | #ifdef PMAPDEBUG | | 97 | #ifdef PMAPDEBUG |
98 | | | 98 | |
99 | #define static /**/ | | 99 | #define static /**/ |
100 | #define inline /**/ | | 100 | #define inline /**/ |
101 | | | 101 | |