| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: compat_16_machdep.c,v 1.10 2008/04/24 18:39:20 ad Exp $ */ | | 1 | /* $NetBSD: compat_16_machdep.c,v 1.11 2008/11/21 14:03:41 ad Exp $ */ |
2 | | | 2 | |
3 | /* | | 3 | /* |
4 | * Copyright (c) 1994-1998 Mark Brinicombe. | | 4 | * Copyright (c) 1994-1998 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. |
| @@ -30,33 +30,36 @@ | | | @@ -30,33 +30,36 @@ |
30 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | | 30 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
31 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | | 31 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
32 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | | 32 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
33 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | | 33 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
34 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | | 34 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
35 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | | 35 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
36 | * SUCH DAMAGE. | | 36 | * SUCH DAMAGE. |
37 | * | | 37 | * |
38 | * Machine dependant functions for kernel setup | | 38 | * Machine dependant functions for kernel setup |
39 | * | | 39 | * |
40 | * Created : 17/09/94 | | 40 | * Created : 17/09/94 |
41 | */ | | 41 | */ |
42 | | | 42 | |
| | | 43 | |
| | | 44 | #include <sys/cdefs.h> |
| | | 45 | __KERNEL_RCSID(0, "$NetBSD: compat_16_machdep.c,v 1.11 2008/11/21 14:03:41 ad Exp $"); |
| | | 46 | |
| | | 47 | #ifdef _KERNEL_OPT |
43 | #include "opt_compat_netbsd.h" | | 48 | #include "opt_compat_netbsd.h" |
44 | #include "opt_armfpe.h" | | 49 | #include "opt_armfpe.h" |
| | | 50 | #endif |
45 | | | 51 | |
46 | #include <sys/param.h> | | 52 | #include <sys/param.h> |
47 | | | | |
48 | __KERNEL_RCSID(0, "$NetBSD: compat_16_machdep.c,v 1.10 2008/04/24 18:39:20 ad Exp $"); | | | |
49 | | | | |
50 | #include <sys/mount.h> /* XXX only needed by syscallargs.h */ | | 53 | #include <sys/mount.h> /* XXX only needed by syscallargs.h */ |
51 | #include <sys/proc.h> | | 54 | #include <sys/proc.h> |
52 | #include <sys/signal.h> | | 55 | #include <sys/signal.h> |
53 | #include <sys/syscallargs.h> | | 56 | #include <sys/syscallargs.h> |
54 | #include <sys/systm.h> | | 57 | #include <sys/systm.h> |
55 | #include <sys/user.h> | | 58 | #include <sys/user.h> |
56 | #include <sys/ras.h> | | 59 | #include <sys/ras.h> |
57 | #include <sys/ucontext.h> | | 60 | #include <sys/ucontext.h> |
58 | | | 61 | |
59 | #include <arm/armreg.h> | | 62 | #include <arm/armreg.h> |
60 | | | 63 | |
61 | #include <machine/cpu.h> | | 64 | #include <machine/cpu.h> |
62 | #include <machine/frame.h> | | 65 | #include <machine/frame.h> |