Trailing whitespacediff -r1.2 -r1.3 src/sys/arch/hppa/include/aout_machdep.h
(skrll)
--- src/sys/arch/hppa/include/aout_machdep.h 2002/12/10 17:14:10 1.2
+++ src/sys/arch/hppa/include/aout_machdep.h 2019/04/16 12:25:17 1.3
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: aout_machdep.h,v 1.2 2002/12/10 17:14:10 thorpej Exp $ */ | 1 | /* $NetBSD: aout_machdep.h,v 1.3 2019/04/16 12:25:17 skrll Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright (c) 1993 Christopher G. Demetriou | 4 | * Copyright (c) 1993 Christopher G. Demetriou | |
5 | * All rights reserved. | 5 | * All rights reserved. | |
6 | * | 6 | * | |
7 | * Redistribution and use in source and binary forms, with or without | 7 | * Redistribution and use in source and binary forms, with or without | |
8 | * modification, are permitted provided that the following conditions | 8 | * modification, are permitted provided that the following conditions | |
9 | * are met: | 9 | * are met: | |
10 | * 1. Redistributions of source code must retain the above copyright | 10 | * 1. Redistributions of source code must retain the above copyright | |
11 | * notice, this list of conditions and the following disclaimer. | 11 | * notice, this list of conditions and the following disclaimer. | |
12 | * 2. Redistributions in binary form must reproduce the above copyright | 12 | * 2. Redistributions in binary form must reproduce the above copyright | |
13 | * notice, this list of conditions and the following disclaimer in the | 13 | * notice, this list of conditions and the following disclaimer in the | |
14 | * documentation and/or other materials provided with the distribution. | 14 | * documentation and/or other materials provided with the distribution. | |
@@ -24,34 +24,34 @@ | @@ -24,34 +24,34 @@ | |||
24 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 24 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | |
25 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | |
27 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
28 | */ | 28 | */ | |
29 | 29 | |||
30 | #ifndef _HPPA_AOUT_H_ | 30 | #ifndef _HPPA_AOUT_H_ | |
31 | #define _HPPA_AOUT_H_ | 31 | #define _HPPA_AOUT_H_ | |
32 | 32 | |||
33 | /* | 33 | /* | |
34 | * XXX fredette - the definitions in this file (with | 34 | * XXX fredette - the definitions in this file (with | |
35 | * the possible exception of AOUT_LDPGSZ) are bogus, | 35 | * the possible exception of AOUT_LDPGSZ) are bogus, | |
36 | * and they exist only to let certain userland programs | 36 | * and they exist only to let certain userland programs | |
37 | * compile. I don't think any SunOS-style a.out HPPA | 37 | * compile. I don't think any SunOS-style a.out HPPA | |
38 | * binaries exist. | 38 | * binaries exist. | |
39 | */ | 39 | */ | |
40 | 40 | |||
41 | #define AOUT_LDPGSZ 4096 | 41 | #define AOUT_LDPGSZ 4096 | |
42 | 42 | |||
43 | /* Relocation format. */ | 43 | /* Relocation format. */ | |
44 | struct relocation_info_hppa { | 44 | struct relocation_info_hppa { | |
45 | int r_address; /* offset in text or data segment */ | 45 | int r_address; /* offset in text or data segment */ | |
46 | unsigned int r_symbolnum : 24, /* ordinal number of add symbol */ | 46 | unsigned int r_symbolnum : 24, /* ordinal number of add symbol */ | |
47 | r_pcrel : 1, /* 1 if value should be pc-relative */ | 47 | r_pcrel : 1, /* 1 if value should be pc-relative */ | |
48 | r_length : 2, /* log base 2 of value's width */ | 48 | r_length : 2, /* log base 2 of value's width */ | |
49 | r_extern : 1, /* 1 if need to add symbol to value */ | 49 | r_extern : 1, /* 1 if need to add symbol to value */ | |
50 | r_baserel : 1, /* linkage table relative */ | 50 | r_baserel : 1, /* linkage table relative */ | |
51 | r_jmptable : 1, /* relocate to jump table */ | 51 | r_jmptable : 1, /* relocate to jump table */ | |
52 | r_relative : 1, /* load address relative */ | 52 | r_relative : 1, /* load address relative */ | |
53 | r_copy : 1; /* run time copy */ | 53 | r_copy : 1; /* run time copy */ | |
54 | }; | 54 | }; | |
55 | #define relocation_info relocation_info_hppa | 55 | #define relocation_info relocation_info_hppa | |
56 | 56 | |||
57 | #endif /* _HPPA_AOUT_H_ */ | 57 | #endif /* _HPPA_AOUT_H_ */ |
--- src/sys/arch/hppa/include/exec.h 2002/12/10 17:14:10 1.2
+++ src/sys/arch/hppa/include/exec.h 2019/04/16 12:25:17 1.3
@@ -1,18 +1,18 @@ | @@ -1,18 +1,18 @@ | |||
1 | /* $NetBSD: exec.h,v 1.2 2002/12/10 17:14:10 thorpej Exp $ */ | 1 | /* $NetBSD: exec.h,v 1.3 2019/04/16 12:25:17 skrll Exp $ */ | |
2 | 2 | |||
3 | /* $OpenBSD: exec.h,v 1.6 2001/01/22 14:51:03 art Exp $ */ | 3 | /* $OpenBSD: exec.h,v 1.6 2001/01/22 14:51:03 art Exp $ */ | |
4 | 4 | |||
5 | /* | 5 | /* | |
6 | * Copyright (c) 1994, The University of Utah and | 6 | * Copyright (c) 1994, The University of Utah and | |
7 | * the Computer Systems Laboratory at the University of Utah (CSL). | 7 | * the Computer Systems Laboratory at the University of Utah (CSL). | |
8 | * All rights reserved. | 8 | * All rights reserved. | |
9 | * | 9 | * | |
10 | * Permission to use, copy, modify and distribute this software is hereby | 10 | * Permission to use, copy, modify and distribute this software is hereby | |
11 | * granted provided that (1) source code retains these copyright, permission, | 11 | * granted provided that (1) source code retains these copyright, permission, | |
12 | * and disclaimer notices, and (2) redistributions including binaries | 12 | * and disclaimer notices, and (2) redistributions including binaries | |
13 | * reproduce the notices in supporting documentation, and (3) all advertising | 13 | * reproduce the notices in supporting documentation, and (3) all advertising | |
14 | * materials mentioning features or use of this software display the following | 14 | * materials mentioning features or use of this software display the following | |
15 | * acknowledgement: ``This product includes software developed by the | 15 | * acknowledgement: ``This product includes software developed by the | |
16 | * Computer Systems Laboratory at the University of Utah.'' | 16 | * Computer Systems Laboratory at the University of Utah.'' | |
17 | * | 17 | * | |
18 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS | 18 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS | |
@@ -27,27 +27,27 @@ | @@ -27,27 +27,27 @@ | |||
27 | 27 | |||
28 | #ifndef _HPPA_EXEC_H_ | 28 | #ifndef _HPPA_EXEC_H_ | |
29 | #define _HPPA_EXEC_H_ | 29 | #define _HPPA_EXEC_H_ | |
30 | 30 | |||
31 | #define cpu_exec_aout_makecmds(p, epp) ENOEXEC | 31 | #define cpu_exec_aout_makecmds(p, epp) ENOEXEC | |
32 | 32 | |||
33 | /* Size of a page in an object file. */ | 33 | /* Size of a page in an object file. */ | |
34 | #define AOUT_LDPGSZ 4096 | 34 | #define AOUT_LDPGSZ 4096 | |
35 | 35 | |||
36 | #define ARCH_ELFSIZE 32 | 36 | #define ARCH_ELFSIZE 32 | |
37 | 37 | |||
38 | #define ELF_TARG_CLASS ELFCLASS32 | 38 | #define ELF_TARG_CLASS ELFCLASS32 | |
39 | #define ELF_TARG_DATA ELFDATA2MSB | 39 | #define ELF_TARG_DATA ELFDATA2MSB | |
40 | #define ELF_TARG_MACH EM_PARISC | 40 | #define ELF_TARG_MACH EM_PARISC | |
41 | 41 | |||
42 | /* #define _NLIST_DO_AOUT */ | 42 | /* #define _NLIST_DO_AOUT */ | |
43 | /* #define _NLIST_DO_ECOFF */ | 43 | /* #define _NLIST_DO_ECOFF */ | |
44 | #define _NLIST_DO_ELF | 44 | #define _NLIST_DO_ELF | |
45 | #define _NLIST_DO_SOM | 45 | #define _NLIST_DO_SOM | |
46 | 46 | |||
47 | /* #define _KERN_DO_AOUT */ | 47 | /* #define _KERN_DO_AOUT */ | |
48 | /* #define _KERN_DO_ECOFF */ | 48 | /* #define _KERN_DO_ECOFF */ | |
49 | #define _KERN_DO_ELF | 49 | #define _KERN_DO_ELF | |
50 | #define _KERN_DO_SOM | 50 | #define _KERN_DO_SOM | |
51 | 51 | |||
52 | /* | 52 | /* | |
53 | * the following MD ELF values defenitions are from the: | 53 | * the following MD ELF values defenitions are from the: |
--- src/sys/arch/hppa/include/asm.h 2013/09/12 15:36:17 1.15
+++ src/sys/arch/hppa/include/asm.h 2019/04/16 12:25:17 1.16
@@ -1,18 +1,18 @@ | @@ -1,18 +1,18 @@ | |||
1 | /* $NetBSD: asm.h,v 1.15 2013/09/12 15:36:17 joerg Exp $ */ | 1 | /* $NetBSD: asm.h,v 1.16 2019/04/16 12:25:17 skrll Exp $ */ | |
2 | 2 | |||
3 | /* $OpenBSD: asm.h,v 1.12 2001/03/29 02:15:57 mickey Exp $ */ | 3 | /* $OpenBSD: asm.h,v 1.12 2001/03/29 02:15:57 mickey Exp $ */ | |
4 | 4 | |||
5 | /* | 5 | /* | |
6 | * Copyright (c) 1990,1991,1994 The University of Utah and | 6 | * Copyright (c) 1990,1991,1994 The University of Utah and | |
7 | * the Computer Systems Laboratory (CSL). All rights reserved. | 7 | * the Computer Systems Laboratory (CSL). All rights reserved. | |
8 | * | 8 | * | |
9 | * Permission to use, copy, modify and distribute this software is hereby | 9 | * Permission to use, copy, modify and distribute this software is hereby | |
10 | * granted provided that (1) source code retains these copyright, permission, | 10 | * granted provided that (1) source code retains these copyright, permission, | |
11 | * and disclaimer notices, and (2) redistributions including binaries | 11 | * and disclaimer notices, and (2) redistributions including binaries | |
12 | * reproduce the notices in supporting documentation, and (3) all advertising | 12 | * reproduce the notices in supporting documentation, and (3) all advertising | |
13 | * materials mentioning features or use of this software display the following | 13 | * materials mentioning features or use of this software display the following | |
14 | * acknowledgement: ``This product includes software developed by the | 14 | * acknowledgement: ``This product includes software developed by the | |
15 | * Computer Systems Laboratory at the University of Utah.'' | 15 | * Computer Systems Laboratory at the University of Utah.'' | |
16 | * | 16 | * | |
17 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS | 17 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS | |
18 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF | 18 | * IS" CONDITION. THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF |
--- src/sys/arch/hppa/include/cpu.h 2018/08/22 01:05:22 1.4
+++ src/sys/arch/hppa/include/cpu.h 2019/04/16 12:25:17 1.5
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: cpu.h,v 1.4 2018/08/22 01:05:22 msaitoh Exp $ */ | 1 | /* $NetBSD: cpu.h,v 1.5 2019/04/16 12:25:17 skrll Exp $ */ | |
2 | 2 | |||
3 | /* $OpenBSD: cpu.h,v 1.55 2008/07/23 17:39:35 kettenis Exp $ */ | 3 | /* $OpenBSD: cpu.h,v 1.55 2008/07/23 17:39:35 kettenis Exp $ */ | |
4 | 4 | |||
5 | /* | 5 | /* | |
6 | * Copyright (c) 2000-2004 Michael Shalayeff | 6 | * Copyright (c) 2000-2004 Michael Shalayeff | |
7 | * All rights reserved. | 7 | * All rights reserved. | |
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 | |
@@ -69,27 +69,27 @@ | @@ -69,27 +69,27 @@ | |||
69 | 69 | |||
70 | #ifndef _LOCORE | 70 | #ifndef _LOCORE | |
71 | 71 | |||
72 | /* types */ | 72 | /* types */ | |
73 | enum hppa_cpu_type { | 73 | enum hppa_cpu_type { | |
74 | hpc_unknown, | 74 | hpc_unknown, | |
75 | hpcx, /* PA7000 (x) PA 1.0 */ | 75 | hpcx, /* PA7000 (x) PA 1.0 */ | |
76 | hpcxs, /* PA7000 (s) PA 1.1a */ | 76 | hpcxs, /* PA7000 (s) PA 1.1a */ | |
77 | hpcxt, /* PA7100 (t) PA 1.1b */ | 77 | hpcxt, /* PA7100 (t) PA 1.1b */ | |
78 | hpcxl, /* PA7100LC (l) PA 1.1c */ | 78 | hpcxl, /* PA7100LC (l) PA 1.1c */ | |
79 | hpcxtp, /* PA7200 (t') PA 1.1d */ | 79 | hpcxtp, /* PA7200 (t') PA 1.1d */ | |
80 | hpcxl2, /* PA7300LC (l2) PA 1.1e */ | 80 | hpcxl2, /* PA7300LC (l2) PA 1.1e */ | |
81 | hpcxu, /* PA8000 (u) PA 2.0 */ | 81 | hpcxu, /* PA8000 (u) PA 2.0 */ | |
82 | hpcxup, /* PA8200 (u+) PA 2.0 */ | 82 | hpcxup, /* PA8200 (u+) PA 2.0 */ | |
83 | hpcxw, /* PA8500 (w) PA 2.0 */ | 83 | hpcxw, /* PA8500 (w) PA 2.0 */ | |
84 | hpcxwp, /* PA8600 (w+) PA 2.0 */ | 84 | hpcxwp, /* PA8600 (w+) PA 2.0 */ | |
85 | hpcxw2, /* PA8700 (piranha) PA 2.0 */ | 85 | hpcxw2, /* PA8700 (piranha) PA 2.0 */ | |
86 | mako /* PA8800 (mako) PA 2.0 */ | 86 | mako /* PA8800 (mako) PA 2.0 */ | |
87 | }; | 87 | }; | |
88 | 88 | |||
89 | #ifdef _KERNEL | 89 | #ifdef _KERNEL | |
90 | /* | 90 | /* | |
91 | * A CPU description. | 91 | * A CPU description. | |
92 | */ | 92 | */ | |
93 | struct hppa_cpu_info { | 93 | struct hppa_cpu_info { | |
94 | /* The official name of the chip. */ | 94 | /* The official name of the chip. */ | |
95 | const char *hci_chip_name; | 95 | const char *hci_chip_name; | |
@@ -277,27 +277,27 @@ struct cpu_info { | @@ -277,27 +277,27 @@ struct cpu_info { | |||
277 | int ci_mtx_oldspl; | 277 | int ci_mtx_oldspl; | |
278 | int ci_want_resched; | 278 | int ci_want_resched; | |
279 | 279 | |||
280 | volatile int ci_cpl; | 280 | volatile int ci_cpl; | |
281 | volatile int ci_ipending; /* The pending interrupts. */ | 281 | volatile int ci_ipending; /* The pending interrupts. */ | |
282 | u_int ci_intr_depth; /* Nonzero iff running an interrupt. */ | 282 | u_int ci_intr_depth; /* Nonzero iff running an interrupt. */ | |
283 | u_int ci_ishared; | 283 | u_int ci_ishared; | |
284 | u_int ci_eiem; | 284 | u_int ci_eiem; | |
285 | 285 | |||
286 | u_int ci_imask[NIPL]; | 286 | u_int ci_imask[NIPL]; | |
287 | 287 | |||
288 | struct hppa_interrupt_register ci_ir; | 288 | struct hppa_interrupt_register ci_ir; | |
289 | struct hppa_interrupt_bit ci_ib[HPPA_INTERRUPT_BITS]; | 289 | struct hppa_interrupt_bit ci_ib[HPPA_INTERRUPT_BITS]; | |
290 | 290 | |||
291 | #if defined(MULTIPROCESSOR) | 291 | #if defined(MULTIPROCESSOR) | |
292 | struct lwp *ci_curlwp; /* CPU owner */ | 292 | struct lwp *ci_curlwp; /* CPU owner */ | |
293 | paddr_t ci_stack; /* stack for spin up */ | 293 | paddr_t ci_stack; /* stack for spin up */ | |
294 | volatile int ci_flags; /* CPU status flags */ | 294 | volatile int ci_flags; /* CPU status flags */ | |
295 | #define CPUF_PRIMARY 0x0001 /* ... is monarch/primary */ | 295 | #define CPUF_PRIMARY 0x0001 /* ... is monarch/primary */ | |
296 | #define CPUF_RUNNING 0x0002 /* ... is running. */ | 296 | #define CPUF_RUNNING 0x0002 /* ... is running. */ | |
297 | 297 | |||
298 | volatile u_long ci_ipi; /* IPIs pending */ | 298 | volatile u_long ci_ipi; /* IPIs pending */ | |
299 | 299 | |||
300 | struct cpu_softc *ci_softc; | 300 | struct cpu_softc *ci_softc; | |
301 | #endif | 301 | #endif | |
302 | 302 | |||
303 | #endif /* !_KMEMUSER */ | 303 | #endif /* !_KMEMUSER */ |
--- src/sys/arch/hppa/include/pte.h 2010/01/16 13:59:42 1.4
+++ src/sys/arch/hppa/include/pte.h 2019/04/16 12:25:17 1.5
@@ -1,18 +1,18 @@ | @@ -1,18 +1,18 @@ | |||
1 | /* $NetBSD: pte.h,v 1.4 2010/01/16 13:59:42 skrll Exp $ */ | 1 | /* $NetBSD: pte.h,v 1.5 2019/04/16 12:25:17 skrll Exp $ */ | |
2 | 2 | |||
3 | /* $OpenBSD: pte.h,v 1.11 2002/09/05 18:41:19 mickey Exp $ */ | 3 | /* $OpenBSD: pte.h,v 1.11 2002/09/05 18:41:19 mickey Exp $ */ | |
4 | 4 | |||
5 | /* | 5 | /* | |
6 | * Copyright (c) 1990,1993,1994 The University of Utah and | 6 | * Copyright (c) 1990,1993,1994 The University of Utah and | |
7 | * the Computer Systems Laboratory at the University of Utah (CSL). | 7 | * the Computer Systems Laboratory at the University of Utah (CSL). | |
8 | * All rights reserved. | 8 | * All rights reserved. | |
9 | * | 9 | * | |
10 | * Permission to use, copy, modify and distribute this software is hereby | 10 | * Permission to use, copy, modify and distribute this software is hereby | |
11 | * granted provided that (1) source code retains these copyright, permission, | 11 | * granted provided that (1) source code retains these copyright, permission, | |
12 | * and disclaimer notices, and (2) redistributions including binaries | 12 | * and disclaimer notices, and (2) redistributions including binaries | |
13 | * reproduce the notices in supporting documentation, and (3) all advertising | 13 | * reproduce the notices in supporting documentation, and (3) all advertising | |
14 | * materials mentioning features or use of this software display the following | 14 | * materials mentioning features or use of this software display the following | |
15 | * acknowledgement: ``This product includes software developed by the | 15 | * acknowledgement: ``This product includes software developed by the | |
16 | * Computer Systems Laboratory at the University of Utah.'' | 16 | * Computer Systems Laboratory at the University of Utah.'' | |
17 | * | 17 | * | |
18 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS | 18 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS |
--- src/sys/arch/hppa/include/ieeefp.h 2015/01/13 11:15:29 1.7
+++ src/sys/arch/hppa/include/ieeefp.h 2019/04/16 12:25:17 1.8
@@ -1,16 +1,16 @@ | @@ -1,16 +1,16 @@ | |||
1 | /* $NetBSD: ieeefp.h,v 1.7 2015/01/13 11:15:29 martin Exp $ */ | 1 | /* $NetBSD: ieeefp.h,v 1.8 2019/04/16 12:25:17 skrll Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Written by J.T. Conklin, Apr 6, 1995 | 4 | * Written by J.T. Conklin, Apr 6, 1995 | |
5 | * Public domain. | 5 | * Public domain. | |
6 | */ | 6 | */ | |
7 | 7 | |||
8 | #ifndef _HPPA_IEEEFP_H_ | 8 | #ifndef _HPPA_IEEEFP_H_ | |
9 | #define _HPPA_IEEEFP_H_ | 9 | #define _HPPA_IEEEFP_H_ | |
10 | 10 | |||
11 | #include <sys/featuretest.h> | 11 | #include <sys/featuretest.h> | |
12 | 12 | |||
13 | #if defined(_NETBSD_SOURCE) || defined(_ISOC99_SOURCE) | 13 | #if defined(_NETBSD_SOURCE) || defined(_ISOC99_SOURCE) | |
14 | 14 | |||
15 | #if !defined(_ISOC99_SOURCE) | 15 | #if !defined(_ISOC99_SOURCE) | |
16 | 16 |
--- src/sys/arch/hppa/include/signal.h 2017/11/29 17:36:03 1.7
+++ src/sys/arch/hppa/include/signal.h 2019/04/16 12:25:17 1.8
@@ -1,18 +1,18 @@ | @@ -1,18 +1,18 @@ | |||
1 | /* $NetBSD: signal.h,v 1.7 2017/11/29 17:36:03 christos Exp $ */ | 1 | /* $NetBSD: signal.h,v 1.8 2019/04/16 12:25:17 skrll Exp $ */ | |
2 | 2 | |||
3 | /* $OpenBSD: signal.h,v 1.1 1998/06/23 19:45:27 mickey Exp $ */ | 3 | /* $OpenBSD: signal.h,v 1.1 1998/06/23 19:45:27 mickey Exp $ */ | |
4 | 4 | |||
5 | /* | 5 | /* | |
6 | * Copyright (c) 1994, The University of Utah and | 6 | * Copyright (c) 1994, The University of Utah and | |
7 | * the Computer Systems Laboratory at the University of Utah (CSL). | 7 | * the Computer Systems Laboratory at the University of Utah (CSL). | |
8 | * All rights reserved. | 8 | * All rights reserved. | |
9 | * | 9 | * | |
10 | * Permission to use, copy, modify and distribute this software is hereby | 10 | * Permission to use, copy, modify and distribute this software is hereby | |
11 | * granted provided that (1) source code retains these copyright, permission, | 11 | * granted provided that (1) source code retains these copyright, permission, | |
12 | * and disclaimer notices, and (2) redistributions including binaries | 12 | * and disclaimer notices, and (2) redistributions including binaries | |
13 | * reproduce the notices in supporting documentation, and (3) all advertising | 13 | * reproduce the notices in supporting documentation, and (3) all advertising | |
14 | * materials mentioning features or use of this software display the following | 14 | * materials mentioning features or use of this software display the following | |
15 | * acknowledgement: ``This product includes software developed by the | 15 | * acknowledgement: ``This product includes software developed by the | |
16 | * Computer Systems Laboratory at the University of Utah.'' | 16 | * Computer Systems Laboratory at the University of Utah.'' | |
17 | * | 17 | * | |
18 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS | 18 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS |
--- src/sys/arch/hppa/include/int_limits.h 2008/04/28 20:23:23 1.6
+++ src/sys/arch/hppa/include/int_limits.h 2019/04/16 12:25:17 1.7
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: int_limits.h,v 1.6 2008/04/28 20:23:23 martin Exp $ */ | 1 | /* $NetBSD: int_limits.h,v 1.7 2019/04/16 12:25:17 skrll Exp $ */ | |
2 | 2 | |||
3 | /*- | 3 | /*- | |
4 | * Copyright (c) 2001 The NetBSD Foundation, Inc. | 4 | * Copyright (c) 2001 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 Klaus Klein. | 8 | * by Klaus Klein. | |
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. | |
@@ -67,27 +67,27 @@ | @@ -67,27 +67,27 @@ | |||
67 | /* maximum values of minimum-width signed integer types */ | 67 | /* maximum values of minimum-width signed integer types */ | |
68 | #define INT_LEAST8_MAX 0x7f /* int_least8_t */ | 68 | #define INT_LEAST8_MAX 0x7f /* int_least8_t */ | |
69 | #define INT_LEAST16_MAX 0x7fff /* int_least16_t */ | 69 | #define INT_LEAST16_MAX 0x7fff /* int_least16_t */ | |
70 | #define INT_LEAST32_MAX 0x7fffffff /* int_least32_t */ | 70 | #define INT_LEAST32_MAX 0x7fffffff /* int_least32_t */ | |
71 | #define INT_LEAST64_MAX 0x7fffffffffffffffLL /* int_least64_t */ | 71 | #define INT_LEAST64_MAX 0x7fffffffffffffffLL /* int_least64_t */ | |
72 | 72 | |||
73 | /* maximum values of minimum-width unsigned integer types */ | 73 | /* maximum values of minimum-width unsigned integer types */ | |
74 | #define UINT_LEAST8_MAX 0xff /* uint_least8_t */ | 74 | #define UINT_LEAST8_MAX 0xff /* uint_least8_t */ | |
75 | #define UINT_LEAST16_MAX 0xffff /* uint_least16_t */ | 75 | #define UINT_LEAST16_MAX 0xffff /* uint_least16_t */ | |
76 | #define UINT_LEAST32_MAX 0xffffffffU /* uint_least32_t */ | 76 | #define UINT_LEAST32_MAX 0xffffffffU /* uint_least32_t */ | |
77 | #define UINT_LEAST64_MAX 0xffffffffffffffffULL /* uint_least64_t */ | 77 | #define UINT_LEAST64_MAX 0xffffffffffffffffULL /* uint_least64_t */ | |
78 | 78 | |||
79 | /* 7.18.2.3 Limits of fastest minimum-width integer types */ | 79 | /* 7.18.2.3 Limits of fastest minimum-width integer types */ | |
80 | 80 | |||
81 | /* minimum values of fastest minimum-width signed integer types */ | 81 | /* minimum values of fastest minimum-width signed integer types */ | |
82 | #define INT_FAST8_MIN (-0x7f-1) /* int_fast8_t */ | 82 | #define INT_FAST8_MIN (-0x7f-1) /* int_fast8_t */ | |
83 | #define INT_FAST16_MIN (-0x7fff-1) /* int_fast16_t */ | 83 | #define INT_FAST16_MIN (-0x7fff-1) /* int_fast16_t */ | |
84 | #define INT_FAST32_MIN (-0x7fffffff-1) /* int_fast32_t */ | 84 | #define INT_FAST32_MIN (-0x7fffffff-1) /* int_fast32_t */ | |
85 | #define INT_FAST64_MIN (-0x7fffffffffffffffLL-1) /* int_fast64_t */ | 85 | #define INT_FAST64_MIN (-0x7fffffffffffffffLL-1) /* int_fast64_t */ | |
86 | 86 | |||
87 | /* maximum values of fastest minimum-width signed integer types */ | 87 | /* maximum values of fastest minimum-width signed integer types */ | |
88 | #define INT_FAST8_MAX 0x7f /* int_fast8_t */ | 88 | #define INT_FAST8_MAX 0x7f /* int_fast8_t */ | |
89 | #define INT_FAST16_MAX 0x7fff /* int_fast16_t */ | 89 | #define INT_FAST16_MAX 0x7fff /* int_fast16_t */ | |
90 | #define INT_FAST32_MAX 0x7fffffff /* int_fast32_t */ | 90 | #define INT_FAST32_MAX 0x7fffffff /* int_fast32_t */ | |
91 | #define INT_FAST64_MAX 0x7fffffffffffffffLL /* int_fast64_t */ | 91 | #define INT_FAST64_MAX 0x7fffffffffffffffLL /* int_fast64_t */ | |
92 | 92 | |||
93 | /* maximum values of fastest minimum-width unsigned integer types */ | 93 | /* maximum values of fastest minimum-width unsigned integer types */ |
--- src/sys/arch/hppa/include/limits.h 2019/01/21 20:28:17 1.16
+++ src/sys/arch/hppa/include/limits.h 2019/04/16 12:25:17 1.17
@@ -1,18 +1,18 @@ | @@ -1,18 +1,18 @@ | |||
1 | /* $NetBSD: limits.h,v 1.16 2019/01/21 20:28:17 dholland Exp $ */ | 1 | /* $NetBSD: limits.h,v 1.17 2019/04/16 12:25:17 skrll Exp $ */ | |
2 | 2 | |||
3 | /* $OpenBSD: limits.h,v 1.2 2000/07/31 20:06:02 millert Exp $ */ | 3 | /* $OpenBSD: limits.h,v 1.2 2000/07/31 20:06:02 millert Exp $ */ | |
4 | 4 | |||
5 | /* | 5 | /* | |
6 | * Copyright (c) 1992-1994, The University of Utah and | 6 | * Copyright (c) 1992-1994, The University of Utah and | |
7 | * the Computer Systems Laboratory at the University of Utah (CSL). | 7 | * the Computer Systems Laboratory at the University of Utah (CSL). | |
8 | * All rights reserved. | 8 | * All rights reserved. | |
9 | * | 9 | * | |
10 | * Permission to use, copy, modify and distribute this software is hereby | 10 | * Permission to use, copy, modify and distribute this software is hereby | |
11 | * granted provided that (1) source code retains these copyright, permission, | 11 | * granted provided that (1) source code retains these copyright, permission, | |
12 | * and disclaimer notices, and (2) redistributions including binaries | 12 | * and disclaimer notices, and (2) redistributions including binaries | |
13 | * reproduce the notices in supporting documentation, and (3) all advertising | 13 | * reproduce the notices in supporting documentation, and (3) all advertising | |
14 | * materials mentioning features or use of this software display the following | 14 | * materials mentioning features or use of this software display the following | |
15 | * acknowledgement: ``This product includes software developed by the | 15 | * acknowledgement: ``This product includes software developed by the | |
16 | * Computer Systems Laboratory at the University of Utah.'' | 16 | * Computer Systems Laboratory at the University of Utah.'' | |
17 | * | 17 | * | |
18 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS | 18 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS | |
@@ -141,28 +141,28 @@ | @@ -141,28 +141,28 @@ | |||
141 | 141 | |||
142 | #ifndef FLT_DIG | 142 | #ifndef FLT_DIG | |
143 | #ifdef __FLT_DIG__ | 143 | #ifdef __FLT_DIG__ | |
144 | #define FLT_DIG __FLT_DIG__ | 144 | #define FLT_DIG __FLT_DIG__ | |
145 | #else | 145 | #else | |
146 | #define FLT_DIG 6 | 146 | #define FLT_DIG 6 | |
147 | #endif | 147 | #endif | |
148 | #endif | 148 | #endif | |
149 | 149 | |||
150 | #ifndef FLT_MAX | 150 | #ifndef FLT_MAX | |
151 | #ifdef __FLT_MAX__ | 151 | #ifdef __FLT_MAX__ | |
152 | #define FLT_MAX __FLT_MAX__ | 152 | #define FLT_MAX __FLT_MAX__ | |
153 | #else | 153 | #else | |
154 | #define FLT_MAX 3.40282347E+38F | 154 | #define FLT_MAX 3.40282347E+38F | |
155 | #endif | 155 | #endif | |
156 | #endif | 156 | #endif | |
157 | 157 | |||
158 | #ifndef FLT_MIN | 158 | #ifndef FLT_MIN | |
159 | #ifdef __FLT_MIN__ | 159 | #ifdef __FLT_MIN__ | |
160 | #define FLT_MIN __FLT_MIN__ | 160 | #define FLT_MIN __FLT_MIN__ | |
161 | #else | 161 | #else | |
162 | #define FLT_MIN 1.17549435E-38F | 162 | #define FLT_MIN 1.17549435E-38F | |
163 | #endif | 163 | #endif | |
164 | #endif | 164 | #endif | |
165 | 165 | |||
166 | #endif | 166 | #endif | |
167 | 167 | |||
168 | #endif /* _MACHINE_LIMITS_H_ */ | 168 | #endif /* _MACHINE_LIMITS_H_ */ |
--- src/sys/arch/hppa/include/lock.h 2017/09/17 00:01:07 1.20
+++ src/sys/arch/hppa/include/lock.h 2019/04/16 12:25:17 1.21
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: lock.h,v 1.20 2017/09/17 00:01:07 christos Exp $ */ | 1 | /* $NetBSD: lock.h,v 1.21 2019/04/16 12:25:17 skrll Exp $ */ | |
2 | 2 | |||
3 | /*- | 3 | /*- | |
4 | * Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc. | 4 | * Copyright (c) 1998, 1999, 2000, 2001 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 Jason R. Thorpe of the Numerical Aerospace Simulation Facility, | 8 | * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, | |
9 | * NASA Ames Research Center, and Matthew Fredette. | 9 | * NASA Ames Research Center, and Matthew Fredette. | |
10 | * | 10 | * | |
11 | * Redistribution and use in source and binary forms, with or without | 11 | * Redistribution and use in source and binary forms, with or without | |
12 | * modification, are permitted provided that the following conditions | 12 | * modification, are permitted provided that the following conditions | |
13 | * are met: | 13 | * are met: | |
14 | * 1. Redistributions of source code must retain the above copyright | 14 | * 1. Redistributions of source code must retain the above copyright | |
@@ -75,27 +75,27 @@ __ldcw(volatile unsigned long *__ptr) | @@ -75,27 +75,27 @@ __ldcw(volatile unsigned long *__ptr) | |||
75 | static __inline void | 75 | static __inline void | |
76 | __sync(void) | 76 | __sync(void) | |
77 | { | 77 | { | |
78 | 78 | |||
79 | __asm volatile("sync\n" | 79 | __asm volatile("sync\n" | |
80 | : /* no outputs */ | 80 | : /* no outputs */ | |
81 | : /* no inputs */ | 81 | : /* no inputs */ | |
82 | : "memory"); | 82 | : "memory"); | |
83 | } | 83 | } | |
84 | 84 | |||
85 | static __inline void | 85 | static __inline void | |
86 | __cpu_simple_lock_init(__cpu_simple_lock_t *alp) | 86 | __cpu_simple_lock_init(__cpu_simple_lock_t *alp) | |
87 | { | 87 | { | |
88 | alp->csl_lock[0] = alp->csl_lock[1] = | 88 | alp->csl_lock[0] = alp->csl_lock[1] = | |
89 | alp->csl_lock[2] = alp->csl_lock[3] = | 89 | alp->csl_lock[2] = alp->csl_lock[3] = | |
90 | __SIMPLELOCK_RAW_UNLOCKED; | 90 | __SIMPLELOCK_RAW_UNLOCKED; | |
91 | __sync(); | 91 | __sync(); | |
92 | } | 92 | } | |
93 | 93 | |||
94 | static __inline void | 94 | static __inline void | |
95 | __cpu_simple_lock(__cpu_simple_lock_t *alp) | 95 | __cpu_simple_lock(__cpu_simple_lock_t *alp) | |
96 | { | 96 | { | |
97 | volatile unsigned long *__aptr = __SIMPLELOCK_ALIGN(alp); | 97 | volatile unsigned long *__aptr = __SIMPLELOCK_ALIGN(alp); | |
98 | 98 | |||
99 | /* | 99 | /* | |
100 | * Note, if we detect that the lock is held when | 100 | * Note, if we detect that the lock is held when | |
101 | * we do the initial load-clear-word, we spin using | 101 | * we do the initial load-clear-word, we spin using |
--- src/sys/arch/hppa/include/vmparam.h 2013/01/07 16:57:28 1.20
+++ src/sys/arch/hppa/include/vmparam.h 2019/04/16 12:25:17 1.21
@@ -1,18 +1,18 @@ | @@ -1,18 +1,18 @@ | |||
1 | /* $NetBSD: vmparam.h,v 1.20 2013/01/07 16:57:28 chs Exp $ */ | 1 | /* $NetBSD: vmparam.h,v 1.21 2019/04/16 12:25:17 skrll Exp $ */ | |
2 | 2 | |||
3 | /* $OpenBSD: vmparam.h,v 1.33 2006/06/04 17:21:24 miod Exp $ */ | 3 | /* $OpenBSD: vmparam.h,v 1.33 2006/06/04 17:21:24 miod Exp $ */ | |
4 | 4 | |||
5 | /* | 5 | /* | |
6 | * Copyright (c) 1988-1994, The University of Utah and | 6 | * Copyright (c) 1988-1994, The University of Utah and | |
7 | * the Computer Systems Laboratory at the University of Utah (CSL). | 7 | * the Computer Systems Laboratory at the University of Utah (CSL). | |
8 | * All rights reserved. | 8 | * All rights reserved. | |
9 | * | 9 | * | |
10 | * Permission to use, copy, modify and distribute this software is hereby | 10 | * Permission to use, copy, modify and distribute this software is hereby | |
11 | * granted provided that (1) source code retains these copyright, permission, | 11 | * granted provided that (1) source code retains these copyright, permission, | |
12 | * and disclaimer notices, and (2) redistributions including binaries | 12 | * and disclaimer notices, and (2) redistributions including binaries | |
13 | * reproduce the notices in supporting documentation, and (3) all advertising | 13 | * reproduce the notices in supporting documentation, and (3) all advertising | |
14 | * materials mentioning features or use of this software display the following | 14 | * materials mentioning features or use of this software display the following | |
15 | * acknowledgement: ``This product includes software developed by the | 15 | * acknowledgement: ``This product includes software developed by the | |
16 | * Computer Systems Laboratory at the University of Utah.'' | 16 | * Computer Systems Laboratory at the University of Utah.'' | |
17 | * | 17 | * | |
18 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS | 18 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS |
--- src/sys/arch/hppa/include/param.h 2019/01/07 22:00:31 1.22
+++ src/sys/arch/hppa/include/param.h 2019/04/16 12:25:17 1.23
@@ -1,18 +1,18 @@ | @@ -1,18 +1,18 @@ | |||
1 | /* $NetBSD: param.h,v 1.22 2019/01/07 22:00:31 jdolecek Exp $ */ | 1 | /* $NetBSD: param.h,v 1.23 2019/04/16 12:25:17 skrll Exp $ */ | |
2 | 2 | |||
3 | /* $OpenBSD: param.h,v 1.12 2001/07/06 02:07:41 provos Exp $ */ | 3 | /* $OpenBSD: param.h,v 1.12 2001/07/06 02:07:41 provos Exp $ */ | |
4 | 4 | |||
5 | /* | 5 | /* | |
6 | * Copyright (c) 1988-1994, The University of Utah and | 6 | * Copyright (c) 1988-1994, The University of Utah and | |
7 | * the Computer Systems Laboratory at the University of Utah (CSL). | 7 | * the Computer Systems Laboratory at the University of Utah (CSL). | |
8 | * All rights reserved. | 8 | * All rights reserved. | |
9 | * | 9 | * | |
10 | * Permission to use, copy, modify and distribute this software is hereby | 10 | * Permission to use, copy, modify and distribute this software is hereby | |
11 | * granted provided that (1) source code retains these copyright, permission, | 11 | * granted provided that (1) source code retains these copyright, permission, | |
12 | * and disclaimer notices, and (2) redistributions including binaries | 12 | * and disclaimer notices, and (2) redistributions including binaries | |
13 | * reproduce the notices in supporting documentation, and (3) all advertising | 13 | * reproduce the notices in supporting documentation, and (3) all advertising | |
14 | * materials mentioning features or use of this software display the following | 14 | * materials mentioning features or use of this software display the following | |
15 | * acknowledgement: ``This product includes software developed by the | 15 | * acknowledgement: ``This product includes software developed by the | |
16 | * Computer Systems Laboratory at the University of Utah.'' | 16 | * Computer Systems Laboratory at the University of Utah.'' | |
17 | * | 17 | * | |
18 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS | 18 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS | |
@@ -70,21 +70,21 @@ | @@ -70,21 +70,21 @@ | |||
70 | * on machines that exchange pages of input or output buffers with mbuf | 70 | * on machines that exchange pages of input or output buffers with mbuf | |
71 | * clusters (MAPPED_MBUFS), MCLBYTES must also be an integral multiple | 71 | * clusters (MAPPED_MBUFS), MCLBYTES must also be an integral multiple | |
72 | * of the hardware page size. | 72 | * of the hardware page size. | |
73 | */ | 73 | */ | |
74 | #define MSIZE 256 /* size of an mbuf */ | 74 | #define MSIZE 256 /* size of an mbuf */ | |
75 | #define MCLSHIFT 11 | 75 | #define MCLSHIFT 11 | |
76 | #define MCLBYTES (1 << MCLSHIFT) /* large enough for ether MTU */ | 76 | #define MCLBYTES (1 << MCLSHIFT) /* large enough for ether MTU */ | |
77 | #define MCLOFSET (MCLBYTES - 1) | 77 | #define MCLOFSET (MCLBYTES - 1) | |
78 | 78 | |||
79 | /* | 79 | /* | |
80 | * Size of kernel malloc arena in logical pages | 80 | * Size of kernel malloc arena in logical pages | |
81 | */ | 81 | */ | |
82 | #define NKMEMPAGES_MIN_DEFAULT ((16 * 1024 * 1024) >> PAGE_SHIFT) | 82 | #define NKMEMPAGES_MIN_DEFAULT ((16 * 1024 * 1024) >> PAGE_SHIFT) | |
83 | #define NKMEMPAGES_MAX_DEFAULT ((256 * 1024 * 1024) >> PAGE_SHIFT) | 83 | #define NKMEMPAGES_MAX_DEFAULT ((256 * 1024 * 1024) >> PAGE_SHIFT) | |
84 | 84 | |||
85 | /* | 85 | /* | |
86 | * Mach derived conversion macros | 86 | * Mach derived conversion macros | |
87 | */ | 87 | */ | |
88 | 88 | |||
89 | #define btop(x) ((unsigned long)(x) >> PGSHIFT) | 89 | #define btop(x) ((unsigned long)(x) >> PGSHIFT) | |
90 | #define ptob(x) ((unsigned long)(x) << PGSHIFT) | 90 | #define ptob(x) ((unsigned long)(x) << PGSHIFT) |
--- src/sys/arch/hppa/include/pcb.h 2010/03/16 16:20:19 1.9
+++ src/sys/arch/hppa/include/pcb.h 2019/04/16 12:25:17 1.10
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: pcb.h,v 1.9 2010/03/16 16:20:19 skrll Exp $ */ | 1 | /* $NetBSD: pcb.h,v 1.10 2019/04/16 12:25:17 skrll Exp $ */ | |
2 | 2 | |||
3 | /* $OpenBSD: pcb.h,v 1.6 2000/01/12 07:24:35 mickey Exp $ */ | 3 | /* $OpenBSD: pcb.h,v 1.6 2000/01/12 07:24:35 mickey Exp $ */ | |
4 | 4 | |||
5 | /* | 5 | /* | |
6 | * Copyright (c) 1999-2004 Michael Shalayeff | 6 | * Copyright (c) 1999-2004 Michael Shalayeff | |
7 | * All rights reserved. | 7 | * All rights reserved. | |
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 | |
@@ -34,17 +34,17 @@ | @@ -34,17 +34,17 @@ | |||
34 | 34 | |||
35 | #include <machine/reg.h> | 35 | #include <machine/reg.h> | |
36 | 36 | |||
37 | struct pcb { | 37 | struct pcb { | |
38 | struct fpreg *pcb_fpregs; /* not in the trapframe */ | 38 | struct fpreg *pcb_fpregs; /* not in the trapframe */ | |
39 | u_int pcb_onfault; /* SW copy fault handler */ | 39 | u_int pcb_onfault; /* SW copy fault handler */ | |
40 | pa_space_t pcb_space; /* copy pmap_space, for asm's sake */ | 40 | pa_space_t pcb_space; /* copy pmap_space, for asm's sake */ | |
41 | u_int pcb_ksp; /* kernel sp for ctxsw */ | 41 | u_int pcb_ksp; /* kernel sp for ctxsw */ | |
42 | }; | 42 | }; | |
43 | 43 | |||
44 | struct md_coredump { | 44 | struct md_coredump { | |
45 | struct reg md_reg; | 45 | struct reg md_reg; | |
46 | struct fpreg md_fpreg; | 46 | struct fpreg md_fpreg; | |
47 | }; | 47 | }; | |
48 | 48 | |||
49 | 49 | |||
50 | #endif /* _HPPA_PCB_H_ */ | 50 | #endif /* _HPPA_PCB_H_ */ |
--- src/sys/arch/hppa/include/reg.h 2010/06/06 12:13:36 1.12
+++ src/sys/arch/hppa/include/reg.h 2019/04/16 12:25:17 1.13
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: reg.h,v 1.12 2010/06/06 12:13:36 skrll Exp $ */ | 1 | /* $NetBSD: reg.h,v 1.13 2019/04/16 12:25:17 skrll Exp $ */ | |
2 | 2 | |||
3 | /* $OpenBSD: reg.h,v 1.7 2000/06/15 17:00:37 mickey Exp $ */ | 3 | /* $OpenBSD: reg.h,v 1.7 2000/06/15 17:00:37 mickey Exp $ */ | |
4 | 4 | |||
5 | /* | 5 | /* | |
6 | * Copyright (c) 1998-2004 Michael Shalayeff | 6 | * Copyright (c) 1998-2004 Michael Shalayeff | |
7 | * All rights reserved. | 7 | * All rights reserved. | |
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 | |
@@ -17,27 +17,27 @@ | @@ -17,27 +17,27 @@ | |||
17 | * | 17 | * | |
18 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | 18 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | |
19 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | 19 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |
20 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | 20 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | |
21 | * IN NO EVENT SHALL THE AUTHOR OR HIS RELATIVES BE LIABLE FOR ANY DIRECT, | 21 | * IN NO EVENT SHALL THE AUTHOR OR HIS RELATIVES BE LIABLE FOR ANY DIRECT, | |
22 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | 22 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |
23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | 23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |
24 | * SERVICES; LOSS OF MIND, USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | 24 | * SERVICES; LOSS OF MIND, USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
25 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | 25 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |
26 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | 26 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | |
27 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF | 27 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF | |
28 | * THE POSSIBILITY OF SUCH DAMAGE. | 28 | * THE POSSIBILITY OF SUCH DAMAGE. | |
29 | */ | 29 | */ | |
30 | /* | 30 | /* | |
31 | * Copyright (c) 1990,1994 The University of Utah and | 31 | * Copyright (c) 1990,1994 The University of Utah and | |
32 | * the Computer Systems Laboratory at the University of Utah (CSL). | 32 | * the Computer Systems Laboratory at the University of Utah (CSL). | |
33 | * All rights reserved. | 33 | * All rights reserved. | |
34 | * | 34 | * | |
35 | * Permission to use, copy, modify and distribute this software is hereby | 35 | * Permission to use, copy, modify and distribute this software is hereby | |
36 | * granted provided that (1) source code retains these copyright, permission, | 36 | * granted provided that (1) source code retains these copyright, permission, | |
37 | * and disclaimer notices, and (2) redistributions including binaries | 37 | * and disclaimer notices, and (2) redistributions including binaries | |
38 | * reproduce the notices in supporting documentation, and (3) all advertising | 38 | * reproduce the notices in supporting documentation, and (3) all advertising | |
39 | * materials mentioning features or use of this software display the following | 39 | * materials mentioning features or use of this software display the following | |
40 | * acknowledgement: ``This product includes software developed by the | 40 | * acknowledgement: ``This product includes software developed by the | |
41 | * Computer Systems Laboratory at the University of Utah.'' | 41 | * Computer Systems Laboratory at the University of Utah.'' | |
42 | * | 42 | * | |
43 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS | 43 | * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS | |
@@ -46,27 +46,27 @@ | @@ -46,27 +46,27 @@ | |||
46 | * | 46 | * | |
47 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any | 47 | * CSL requests users of this software to return to csl-dist@cs.utah.edu any | |
48 | * improvements that they make and grant CSL redistribution rights. | 48 | * improvements that they make and grant CSL redistribution rights. | |
49 | * | 49 | * | |
50 | * Utah $Hdr: regs.h 1.6 94/12/14$ | 50 | * Utah $Hdr: regs.h 1.6 94/12/14$ | |
51 | * Author: Bob Wheeler, University of Utah CSL | 51 | * Author: Bob Wheeler, University of Utah CSL | |
52 | */ | 52 | */ | |
53 | 53 | |||
54 | #ifndef _HPPA_REG_H_ | 54 | #ifndef _HPPA_REG_H_ | |
55 | #define _HPPA_REG_H_ | 55 | #define _HPPA_REG_H_ | |
56 | 56 | |||
57 | /* | 57 | /* | |
58 | * constants for registers for use with the following routines: | 58 | * constants for registers for use with the following routines: | |
59 | * | 59 | * | |
60 | * void mtctl(reg, value) - move to control register | 60 | * void mtctl(reg, value) - move to control register | |
61 | * int mfctl(reg) - move from control register | 61 | * int mfctl(reg) - move from control register | |
62 | * int mtsp(sreg, value) - move to space register | 62 | * int mtsp(sreg, value) - move to space register | |
63 | * int mfsr(sreg) - move from space register | 63 | * int mfsr(sreg) - move from space register | |
64 | */ | 64 | */ | |
65 | 65 | |||
66 | #define CR_RCTR 0 | 66 | #define CR_RCTR 0 | |
67 | #define CR_PIDR1 8 | 67 | #define CR_PIDR1 8 | |
68 | #define CR_PIDR2 9 | 68 | #define CR_PIDR2 9 | |
69 | #define CR_CCR 10 | 69 | #define CR_CCR 10 | |
70 | #define CR_SAR 11 | 70 | #define CR_SAR 11 | |
71 | #define CR_PIDR3 12 | 71 | #define CR_PIDR3 12 | |
72 | #define CR_PIDR4 13 | 72 | #define CR_PIDR4 13 | |
@@ -185,27 +185,27 @@ | @@ -185,27 +185,27 @@ | |||
185 | #define HPPA_NFPREGS (33) /* 33rd is used for r0 in fpemul */ | 185 | #define HPPA_NFPREGS (33) /* 33rd is used for r0 in fpemul */ | |
186 | 186 | |||
187 | #ifndef __ASSEMBLER__ | 187 | #ifndef __ASSEMBLER__ | |
188 | 188 | |||
189 | struct reg { | 189 | struct reg { | |
190 | uint32_t r_regs[HPPA_NREGS]; /* r0 is psw */ | 190 | uint32_t r_regs[HPPA_NREGS]; /* r0 is psw */ | |
191 | 191 | |||
192 | uint32_t r_sar; | 192 | uint32_t r_sar; | |
193 | 193 | |||
194 | uint32_t r_pcsqh; | 194 | uint32_t r_pcsqh; | |
195 | uint32_t r_pcsqt; | 195 | uint32_t r_pcsqt; | |
196 | uint32_t r_pcoqh; | 196 | uint32_t r_pcoqh; | |
197 | uint32_t r_pcoqt; | 197 | uint32_t r_pcoqt; | |
198 | 198 | |||
199 | uint32_t r_sr0; | 199 | uint32_t r_sr0; | |
200 | uint32_t r_sr1; | 200 | uint32_t r_sr1; | |
201 | uint32_t r_sr2; | 201 | uint32_t r_sr2; | |
202 | uint32_t r_sr3; | 202 | uint32_t r_sr3; | |
203 | uint32_t r_sr4; | 203 | uint32_t r_sr4; | |
204 | uint32_t r_sr5; /* !mcontext */ | 204 | uint32_t r_sr5; /* !mcontext */ | |
205 | uint32_t r_sr6; /* !mcontext */ | 205 | uint32_t r_sr6; /* !mcontext */ | |
206 | uint32_t r_sr7; /* !mcontext */ | 206 | uint32_t r_sr7; /* !mcontext */ | |
207 | 207 | |||
208 | uint32_t r_cr26; | 208 | uint32_t r_cr26; | |
209 | uint32_t r_cr27; | 209 | uint32_t r_cr27; | |
210 | }; | 210 | }; | |
211 | 211 |