Wed Oct 6 05:33:15 2021 UTC ()
More trailing whitespace


(skrll)
diff -r1.5 -r1.6 src/sys/arch/arm/include/aeabi.h
diff -r1.5 -r1.6 src/sys/arch/arm/include/fenv.h
diff -r1.2 -r1.3 src/sys/arch/arm/include/blockio.h
diff -r1.2 -r1.3 src/sys/arch/arm/include/netbsd32_machdep.h
diff -r1.4 -r1.5 src/sys/arch/arm/include/ieeefp.h
diff -r1.11 -r1.12 src/sys/arch/arm/include/int_limits.h
diff -r1.22 -r1.23 src/sys/arch/arm/include/mcontext.h
diff -r1.15 -r1.16 src/sys/arch/arm/include/signal.h
diff -r1.14 -r1.15 src/sys/arch/arm/include/sysarch.h

cvs diff -r1.5 -r1.6 src/sys/arch/arm/include/aeabi.h (expand / switch to unified diff)

--- src/sys/arch/arm/include/aeabi.h 2013/08/01 22:20:40 1.5
+++ src/sys/arch/arm/include/aeabi.h 2021/10/06 05:33:15 1.6
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: aeabi.h,v 1.5 2013/08/01 22:20:40 matt Exp $ */ 1/* $NetBSD: aeabi.h,v 1.6 2021/10/06 05:33:15 skrll Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 2012 The NetBSD Foundation, Inc. 4 * Copyright (c) 2012 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.
@@ -117,27 +117,27 @@ double __aeabi_l2d(long long) __aapcs; / @@ -117,27 +117,27 @@ double __aeabi_l2d(long long) __aapcs; /
117double __aeabi_ul2d(unsigned long long) __aapcs; // unsigned long long to double conversion 117double __aeabi_ul2d(unsigned long long) __aapcs; // unsigned long long to double conversion
118float __aeabi_i2f(int) __aapcs; // integer to float (single precision) conversion 118float __aeabi_i2f(int) __aapcs; // integer to float (single precision) conversion
119float __aeabi_ui2f(unsigned) __aapcs; // unsigned to float (single precision) conversion 119float __aeabi_ui2f(unsigned) __aapcs; // unsigned to float (single precision) conversion
120float __aeabi_l2f(long long) __aapcs; // long long to float (single precision) conversion 120float __aeabi_l2f(long long) __aapcs; // long long to float (single precision) conversion
121float __aeabi_ul2f(unsigned long long) __aapcs; // unsigned long long to float (single precision) conversion 121float __aeabi_ul2f(unsigned long long) __aapcs; // unsigned long long to float (single precision) conversion
122 122
123/* 123/*
124 * Long long functions 124 * Long long functions
125 */ 125 */
126long long __aeabi_lmul(long long, long long); // multiplication 126long long __aeabi_lmul(long long, long long); // multiplication
127 127
128/* 128/*
129 * A pair of (unsigned) long longs is returned in {{r0, r1}, {r2, r3}}, 129 * A pair of (unsigned) long longs is returned in {{r0, r1}, {r2, r3}},
130 * the quotient in {r0, r1}, and the remainder in {r2, r3}.  130 * the quotient in {r0, r1}, and the remainder in {r2, r3}.
131 */ 131 */
132typedef struct { long long quot; long long rem; } lldiv_t; 132typedef struct { long long quot; long long rem; } lldiv_t;
133__value_in_regs lldiv_t __aeabi_ldivmod(long long n, long long d); // signed long long division and remainder, {q, r} = n / d [2] 133__value_in_regs lldiv_t __aeabi_ldivmod(long long n, long long d); // signed long long division and remainder, {q, r} = n / d [2]
134 134
135typedef struct { unsigned long long quot; unsigned long long rem; } ulldiv_t; 135typedef struct { unsigned long long quot; unsigned long long rem; } ulldiv_t;
136__value_in_regs ulldiv_t __aeabi_uldivmod(unsigned long long n, unsigned long long d); // unsigned signed ll division, remainder, {q, r} = n / d [2] 136__value_in_regs ulldiv_t __aeabi_uldivmod(unsigned long long n, unsigned long long d); // unsigned signed ll division, remainder, {q, r} = n / d [2]
137 137
138/* 138/*
139 * Because of 2's complement number representation, these functions work 139 * Because of 2's complement number representation, these functions work
140 * identically with long long replaced uniformly by unsigned long long. 140 * identically with long long replaced uniformly by unsigned long long.
141 * Each returns its result in {r0, r1}, as specified by the [AAPCS]. 141 * Each returns its result in {r0, r1}, as specified by the [AAPCS].
142 */ 142 */
143long long __aeabi_llsl(long long, int); // logical shift left [1] 143long long __aeabi_llsl(long long, int); // logical shift left [1]

cvs diff -r1.5 -r1.6 src/sys/arch/arm/include/fenv.h (expand / switch to unified diff)

--- src/sys/arch/arm/include/fenv.h 2017/04/09 15:15:34 1.5
+++ src/sys/arch/arm/include/fenv.h 2021/10/06 05:33:15 1.6
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1/* $NetBSD: fenv.h,v 1.5 2017/04/09 15:15:34 christos Exp $ */ 1/* $NetBSD: fenv.h,v 1.6 2021/10/06 05:33:15 skrll Exp $ */
2 2
3/*  3/*
4 * Based on ieeefp.h written by J.T. Conklin, Apr 28, 1995 4 * Based on ieeefp.h written by J.T. Conklin, Apr 28, 1995
5 * Public domain. 5 * Public domain.
6 */ 6 */
7 7
8#ifndef _ARM_FENV_H_ 8#ifndef _ARM_FENV_H_
9#define _ARM_FENV_H_ 9#define _ARM_FENV_H_
10 10
11#include <sys/cdefs.h> 11#include <sys/cdefs.h>
12 12
13#ifdef __ARM_PCS_AAPCS64 13#ifdef __ARM_PCS_AAPCS64
14/* AArch64 split FPSCR into two registers FPCR and FPSR */ 14/* AArch64 split FPSCR into two registers FPCR and FPSR */
15typedef struct { 15typedef struct {
16 unsigned int __fpcr; 16 unsigned int __fpcr;

cvs diff -r1.2 -r1.3 src/sys/arch/arm/include/blockio.h (expand / switch to unified diff)

--- src/sys/arch/arm/include/blockio.h 2001/06/02 10:44:56 1.2
+++ src/sys/arch/arm/include/blockio.h 2021/10/06 05:33:15 1.3
@@ -1,30 +1,30 @@ @@ -1,30 +1,30 @@
1/* $NetBSD: blockio.h,v 1.2 2001/06/02 10:44:56 bjh21 Exp $ */ 1/* $NetBSD: blockio.h,v 1.3 2021/10/06 05:33:15 skrll Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 2001 Ben Harris 4 * Copyright (c) 2001 Ben Harris
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.
15 * 3. The name of the author may not be used to endorse or promote products 15 * 3. The name of the author may not be used to endorse or promote products
16 * derived from this software without specific prior written permission. 16 * derived from this software without specific prior written permission.
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 BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
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 * blockio.h - low level functions for bulk PIO data transfer 30 * blockio.h - low level functions for bulk PIO data transfer

cvs diff -r1.2 -r1.3 src/sys/arch/arm/include/netbsd32_machdep.h (expand / switch to unified diff)

--- src/sys/arch/arm/include/netbsd32_machdep.h 2017/10/31 12:37:23 1.2
+++ src/sys/arch/arm/include/netbsd32_machdep.h 2021/10/06 05:33:15 1.3
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: netbsd32_machdep.h,v 1.2 2017/10/31 12:37:23 martin Exp $ */ 1/* $NetBSD: netbsd32_machdep.h,v 1.3 2021/10/06 05:33:15 skrll Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 2012 The NetBSD Foundation, Inc. 4 * Copyright (c) 2012 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 <matt@3am-software.com>. 8 * by Matt Thomas <matt@3am-software.com>.
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.
@@ -54,19 +54,19 @@ typedef netbsd32_pointer_t netbsd32_si @@ -54,19 +54,19 @@ typedef netbsd32_pointer_t netbsd32_si
54#define netbsd32_sigcode sigcode 54#define netbsd32_sigcode sigcode
55#define netbsd32_esigcode esigcode 55#define netbsd32_esigcode esigcode
56 56
57/* 57/*
58 * Note: syscall_intern and setregs do not care about COMPAT_NETBSD32. 58 * Note: syscall_intern and setregs do not care about COMPAT_NETBSD32.
59 */ 59 */
60#define netbsd32_syscall_intern syscall_intern 60#define netbsd32_syscall_intern syscall_intern
61#define netbsd32_setregs setregs 61#define netbsd32_setregs setregs
62 62
63#define VM_MAXUSER_ADDRESS32 VM_MAXUSER_ADDRESS 63#define VM_MAXUSER_ADDRESS32 VM_MAXUSER_ADDRESS
64#define NETBSD32_MID_MACHINE MID_MACHINE 64#define NETBSD32_MID_MACHINE MID_MACHINE
65#define USRSTACK32 USRSTACK 65#define USRSTACK32 USRSTACK
66#define MAXTSIZ32 MAXTSIZ 66#define MAXTSIZ32 MAXTSIZ
67#define DFLDSIZ32 DFLDSIZ  67#define DFLDSIZ32 DFLDSIZ
68#define MAXDSIZ32 MAXDSIZ  68#define MAXDSIZ32 MAXDSIZ
69#define DFLSSIZ32 DFLSSIZ  69#define DFLSSIZ32 DFLSSIZ
70#define MAXSSIZ32 MAXSSIZ  70#define MAXSSIZ32 MAXSSIZ
71 71
72#endif /* _ARM_NETBSD32_H_ */ 72#endif /* _ARM_NETBSD32_H_ */

cvs diff -r1.4 -r1.5 src/sys/arch/arm/include/ieeefp.h (expand / switch to unified diff)

--- src/sys/arch/arm/include/ieeefp.h 2017/03/22 23:11:09 1.4
+++ src/sys/arch/arm/include/ieeefp.h 2021/10/06 05:33:15 1.5
@@ -1,36 +1,36 @@ @@ -1,36 +1,36 @@
1/* $NetBSD: ieeefp.h,v 1.4 2017/03/22 23:11:09 chs Exp $ */ 1/* $NetBSD: ieeefp.h,v 1.5 2021/10/06 05:33:15 skrll Exp $ */
2 2
3/*  3/*
4 * Based on ieeefp.h written by J.T. Conklin, Apr 28, 1995 4 * Based on ieeefp.h written by J.T. Conklin, Apr 28, 1995
5 * Public domain. 5 * Public domain.
6 */ 6 */
7 7
8#ifndef _ARM_IEEEFP_H_ 8#ifndef _ARM_IEEEFP_H_
9#define _ARM_IEEEFP_H_ 9#define _ARM_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#include <arm/fenv.h> 15#include <arm/fenv.h>
16 16
17#if !defined(_ISOC99_SOURCE) 17#if !defined(_ISOC99_SOURCE)
18 18
19/* Exception type (used by fpsetmask() et al.) */ 19/* Exception type (used by fpsetmask() et al.) */
20 20
21typedef int fp_except; 21typedef int fp_except;
22 22
23/* adjust for FP_* and FE_* value differences */  23/* adjust for FP_* and FE_* value differences */
24#define __FPE(x) (x) 24#define __FPE(x) (x)
25#define __FEE(x) (x) 25#define __FEE(x) (x)
26#define __FPR(x) (x) 26#define __FPR(x) (x)
27#define __FER(x) (x) 27#define __FER(x) (x)
28 28
29/* Bit defines for fp_except */ 29/* Bit defines for fp_except */
30 30
31#define FP_X_INV FE_INVALID /* invalid operation exception */ 31#define FP_X_INV FE_INVALID /* invalid operation exception */
32#define FP_X_DZ FE_DIVBYZERO /* divide-by-zero exception */ 32#define FP_X_DZ FE_DIVBYZERO /* divide-by-zero exception */
33#define FP_X_OFL FE_OVERFLOW /* overflow exception */ 33#define FP_X_OFL FE_OVERFLOW /* overflow exception */
34#define FP_X_UFL FE_UNDERFLOW /* underflow exception */ 34#define FP_X_UFL FE_UNDERFLOW /* underflow exception */
35#define FP_X_IMP FE_INEXACT /* imprecise (prec. loss; "inexact") */ 35#define FP_X_IMP FE_INEXACT /* imprecise (prec. loss; "inexact") */
36 36

cvs diff -r1.11 -r1.12 src/sys/arch/arm/include/int_limits.h (expand / switch to unified diff)

--- src/sys/arch/arm/include/int_limits.h 2014/07/25 21:43:13 1.11
+++ src/sys/arch/arm/include/int_limits.h 2021/10/06 05:33:15 1.12
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: int_limits.h,v 1.11 2014/07/25 21:43:13 joerg Exp $ */ 1/* $NetBSD: int_limits.h,v 1.12 2021/10/06 05:33:15 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.
@@ -70,27 +70,27 @@ @@ -70,27 +70,27 @@
70/* maximum values of minimum-width signed integer types */ 70/* maximum values of minimum-width signed integer types */
71#define INT_LEAST8_MAX 0x7f /* int_least8_t */ 71#define INT_LEAST8_MAX 0x7f /* int_least8_t */
72#define INT_LEAST16_MAX 0x7fff /* int_least16_t */ 72#define INT_LEAST16_MAX 0x7fff /* int_least16_t */
73#define INT_LEAST32_MAX 0x7fffffff /* int_least32_t */ 73#define INT_LEAST32_MAX 0x7fffffff /* int_least32_t */
74#define INT_LEAST64_MAX 0x7fffffffffffffffLL /* int_least64_t */ 74#define INT_LEAST64_MAX 0x7fffffffffffffffLL /* int_least64_t */
75 75
76/* maximum values of minimum-width unsigned integer types */ 76/* maximum values of minimum-width unsigned integer types */
77#define UINT_LEAST8_MAX 0xff /* uint_least8_t */ 77#define UINT_LEAST8_MAX 0xff /* uint_least8_t */
78#define UINT_LEAST16_MAX 0xffff /* uint_least16_t */ 78#define UINT_LEAST16_MAX 0xffff /* uint_least16_t */
79#define UINT_LEAST32_MAX 0xffffffffU /* uint_least32_t */ 79#define UINT_LEAST32_MAX 0xffffffffU /* uint_least32_t */
80#define UINT_LEAST64_MAX 0xffffffffffffffffULL /* uint_least64_t */ 80#define UINT_LEAST64_MAX 0xffffffffffffffffULL /* uint_least64_t */
81 81
82/* 7.18.2.3 Limits of fastest minimum-width integer types */ 82/* 7.18.2.3 Limits of fastest minimum-width integer types */
83  83
84/* minimum values of fastest minimum-width signed integer types */ 84/* minimum values of fastest minimum-width signed integer types */
85#define INT_FAST8_MIN (-0x7fffffff-1) /* int_fast8_t */ 85#define INT_FAST8_MIN (-0x7fffffff-1) /* int_fast8_t */
86#define INT_FAST16_MIN (-0x7fffffff-1) /* int_fast16_t */ 86#define INT_FAST16_MIN (-0x7fffffff-1) /* int_fast16_t */
87#define INT_FAST32_MIN (-0x7fffffff-1) /* int_fast32_t */ 87#define INT_FAST32_MIN (-0x7fffffff-1) /* int_fast32_t */
88#define INT_FAST64_MIN (-0x7fffffffffffffffLL-1) /* int_fast64_t */ 88#define INT_FAST64_MIN (-0x7fffffffffffffffLL-1) /* int_fast64_t */
89 89
90/* maximum values of fastest minimum-width signed integer types */ 90/* maximum values of fastest minimum-width signed integer types */
91#define INT_FAST8_MAX 0x7fffffff /* int_fast8_t */ 91#define INT_FAST8_MAX 0x7fffffff /* int_fast8_t */
92#define INT_FAST16_MAX 0x7fffffff /* int_fast16_t */ 92#define INT_FAST16_MAX 0x7fffffff /* int_fast16_t */
93#define INT_FAST32_MAX 0x7fffffff /* int_fast32_t */ 93#define INT_FAST32_MAX 0x7fffffff /* int_fast32_t */
94#define INT_FAST64_MAX 0x7fffffffffffffffLL /* int_fast64_t */ 94#define INT_FAST64_MAX 0x7fffffffffffffffLL /* int_fast64_t */
95 95
96/* maximum values of fastest minimum-width unsigned integer types */ 96/* maximum values of fastest minimum-width unsigned integer types */

cvs diff -r1.22 -r1.23 src/sys/arch/arm/include/mcontext.h (expand / switch to unified diff)

--- src/sys/arch/arm/include/mcontext.h 2021/09/22 11:33:54 1.22
+++ src/sys/arch/arm/include/mcontext.h 2021/10/06 05:33:15 1.23
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: mcontext.h,v 1.22 2021/09/22 11:33:54 ryo Exp $ */ 1/* $NetBSD: mcontext.h,v 1.23 2021/10/06 05:33:15 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 Klaus Klein and by Jason R. Thorpe of Wasabi Systems, Inc. 8 * by Klaus Klein and by Jason R. Thorpe of Wasabi Systems, Inc.
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.
@@ -267,18 +267,18 @@ __END_DECLS @@ -267,18 +267,18 @@ __END_DECLS
267#define _UC_CLRSTACK 0x00040000 267#define _UC_CLRSTACK 0x00040000
268 268
269#define _UC_MACHINE_SP(uc) ((uc)->uc_mcontext.__gregs[_REG_SP]) 269#define _UC_MACHINE_SP(uc) ((uc)->uc_mcontext.__gregs[_REG_SP])
270#define _UC_MACHINE_FP(uc) ((uc)->uc_mcontext.__gregs[_REG_FP]) 270#define _UC_MACHINE_FP(uc) ((uc)->uc_mcontext.__gregs[_REG_FP])
271#define _UC_MACHINE_PC(uc) ((uc)->uc_mcontext.__gregs[_REG_PC]) 271#define _UC_MACHINE_PC(uc) ((uc)->uc_mcontext.__gregs[_REG_PC])
272#define _UC_MACHINE_INTRV(uc) ((uc)->uc_mcontext.__gregs[_REG_RV]) 272#define _UC_MACHINE_INTRV(uc) ((uc)->uc_mcontext.__gregs[_REG_RV])
273 273
274#define _UC_MACHINE_SET_PC(uc, pc) \ 274#define _UC_MACHINE_SET_PC(uc, pc) \
275 _UC_MACHINE_PC(uc) = (pc) 275 _UC_MACHINE_PC(uc) = (pc)
276 276
277#if defined(_KERNEL) 277#if defined(_KERNEL)
278__BEGIN_DECLS 278__BEGIN_DECLS
279void vfp_getcontext(struct lwp *, mcontext_t *, int *); 279void vfp_getcontext(struct lwp *, mcontext_t *, int *);
280void vfp_setcontext(struct lwp *, const mcontext_t *);  280void vfp_setcontext(struct lwp *, const mcontext_t *);
281__END_DECLS 281__END_DECLS
282#endif 282#endif
283 283
284#endif /* !_ARM_MCONTEXT_H_ */ 284#endif /* !_ARM_MCONTEXT_H_ */

cvs diff -r1.15 -r1.16 src/sys/arch/arm/include/signal.h (expand / switch to unified diff)

--- src/sys/arch/arm/include/signal.h 2018/04/01 04:35:04 1.15
+++ src/sys/arch/arm/include/signal.h 2021/10/06 05:33:15 1.16
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: signal.h,v 1.15 2018/04/01 04:35:04 ryo Exp $ */ 1/* $NetBSD: signal.h,v 1.16 2021/10/06 05:33:15 skrll Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1994-1996 Mark Brinicombe. 4 * Copyright (c) 1994-1996 Mark Brinicombe.
5 * Copyright (c) 1994 Brini. 5 * Copyright (c) 1994 Brini.
6 * All rights reserved. 6 * All rights reserved.
7 * 7 *
8 * This code is derived from software written for Brini by Mark Brinicombe 8 * This code is derived from software written for Brini by Mark Brinicombe
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.
@@ -104,27 +104,27 @@ struct sigcontext { @@ -104,27 +104,27 @@ struct sigcontext {
104 unsigned int sc_r4; 104 unsigned int sc_r4;
105 unsigned int sc_r5; 105 unsigned int sc_r5;
106 unsigned int sc_r6; 106 unsigned int sc_r6;
107 unsigned int sc_r7; 107 unsigned int sc_r7;
108 unsigned int sc_r8; 108 unsigned int sc_r8;
109 unsigned int sc_r9; 109 unsigned int sc_r9;
110 unsigned int sc_r10; 110 unsigned int sc_r10;
111 unsigned int sc_r11; 111 unsigned int sc_r11;
112 unsigned int sc_r12; 112 unsigned int sc_r12;
113 unsigned int sc_usr_sp; 113 unsigned int sc_usr_sp;
114 unsigned int sc_usr_lr; 114 unsigned int sc_usr_lr;
115 unsigned int sc_svc_lr; 115 unsigned int sc_svc_lr;
116 unsigned int sc_pc; 116 unsigned int sc_pc;
117  117
118 sigset_t sc_mask; /* signal mask to restore (new style) */ 118 sigset_t sc_mask; /* signal mask to restore (new style) */
119}; 119};
120 120
121#endif /* !_LOCORE */ 121#endif /* !_LOCORE */
122 122
123/* Signals codes */ 123/* Signals codes */
124 124
125/* 125/*
126 * SIGFPE codes 126 * SIGFPE codes
127 * 127 *
128 * see ieeefp.h for definition of FP exception codes 128 * see ieeefp.h for definition of FP exception codes
129 */ 129 */
130 130

cvs diff -r1.14 -r1.15 src/sys/arch/arm/include/sysarch.h (expand / switch to unified diff)

--- src/sys/arch/arm/include/sysarch.h 2017/01/13 19:53:10 1.14
+++ src/sys/arch/arm/include/sysarch.h 2021/10/06 05:33:15 1.15
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: sysarch.h,v 1.14 2017/01/13 19:53:10 christos Exp $ */ 1/* $NetBSD: sysarch.h,v 1.15 2021/10/06 05:33:15 skrll Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1996-1997 Mark Brinicombe. 4 * Copyright (c) 1996-1997 Mark Brinicombe.
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.
@@ -61,25 +61,25 @@ typedef _BSD_SIZE_T_ size_t; @@ -61,25 +61,25 @@ typedef _BSD_SIZE_T_ size_t;
61#define ARM_FPU_USED 3 61#define ARM_FPU_USED 3
62 62
63struct arm_sync_icache_args { 63struct arm_sync_icache_args {
64 uintptr_t addr; /* Virtual start address */ 64 uintptr_t addr; /* Virtual start address */
65 size_t len; /* Region size */ 65 size_t len; /* Region size */
66}; 66};
67 67
68struct arm_vfp_fpscr_args { 68struct arm_vfp_fpscr_args {
69 uint32_t fpscr_clear; /* bits to clear */ 69 uint32_t fpscr_clear; /* bits to clear */
70 uint32_t fpscr_set; /* bits to set */ 70 uint32_t fpscr_set; /* bits to set */
71}; 71};
72 72
73struct arm_unaligned_faults_args { 73struct arm_unaligned_faults_args {
74 bool enabled; /* unaligned faults are enabled */  74 bool enabled; /* unaligned faults are enabled */
75}; 75};
76 76
77#ifndef _KERNEL 77#ifndef _KERNEL
78__BEGIN_DECLS 78__BEGIN_DECLS
79int arm_sync_icache(uintptr_t, size_t); 79int arm_sync_icache(uintptr_t, size_t);
80int arm_drain_writebuf(void); 80int arm_drain_writebuf(void);
81int sysarch(int, void *); 81int sysarch(int, void *);
82__END_DECLS 82__END_DECLS
83#endif 83#endif
84 84
85#endif /* !_ARM_SYSARCH_H_ */ 85#endif /* !_ARM_SYSARCH_H_ */