| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: machdep.c,v 1.34 2011/12/12 19:57:12 reinoud Exp $ */ | | 1 | /* $NetBSD: machdep.c,v 1.35 2011/12/13 20:59:20 reinoud Exp $ */ |
2 | | | 2 | |
3 | /*- | | 3 | /*- |
4 | * Copyright (c) 2011 Reinoud Zandijk <reinoud@netbsd.org> | | 4 | * Copyright (c) 2011 Reinoud Zandijk <reinoud@netbsd.org> |
5 | * Copyright (c) 2007 Jared D. McNeill <jmcneill@invisible.ca> | | 5 | * Copyright (c) 2007 Jared D. McNeill <jmcneill@invisible.ca> |
6 | * All rights reserved. | | 6 | * All rights reserved. |
7 | * | | 7 | * |
8 | * Redistribution and use in source and binary forms, with or without | | 8 | * Redistribution and use in source and binary forms, with or without |
9 | * modification, are permitted provided that the following conditions | | 9 | * modification, are permitted provided that the following conditions |
10 | * are met: | | 10 | * are met: |
11 | * 1. Redistributions of source code must retain the above copyright | | 11 | * 1. Redistributions of source code must retain the above copyright |
12 | * notice, this list of conditions and the following disclaimer. | | 12 | * notice, this list of conditions and the following disclaimer. |
13 | * 2. Redistributions in binary form must reproduce the above copyright | | 13 | * 2. Redistributions in binary form must reproduce the above copyright |
14 | * notice, this list of conditions and the following disclaimer in the | | 14 | * notice, this list of conditions and the following disclaimer in the |
| @@ -22,27 +22,27 @@ | | | @@ -22,27 +22,27 @@ |
22 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | | 22 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | | 23 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | | 24 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | | 25 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | | 26 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
27 | * POSSIBILITY OF SUCH DAMAGE. | | 27 | * POSSIBILITY OF SUCH DAMAGE. |
28 | */ | | 28 | */ |
29 | | | 29 | |
30 | #include "opt_memsize.h" | | 30 | #include "opt_memsize.h" |
31 | #include "opt_sdl.h" | | 31 | #include "opt_sdl.h" |
32 | #include "opt_urkelvisor.h" | | 32 | #include "opt_urkelvisor.h" |
33 | | | 33 | |
34 | #include <sys/cdefs.h> | | 34 | #include <sys/cdefs.h> |
35 | __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.34 2011/12/12 19:57:12 reinoud Exp $"); | | 35 | __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.35 2011/12/13 20:59:20 reinoud Exp $"); |
36 | | | 36 | |
37 | #include <sys/types.h> | | 37 | #include <sys/types.h> |
38 | #include <sys/param.h> | | 38 | #include <sys/param.h> |
39 | #include <sys/time.h> | | 39 | #include <sys/time.h> |
40 | #include <sys/exec.h> | | 40 | #include <sys/exec.h> |
41 | #include <sys/buf.h> | | 41 | #include <sys/buf.h> |
42 | #include <sys/boot_flag.h> | | 42 | #include <sys/boot_flag.h> |
43 | #include <sys/ucontext.h> | | 43 | #include <sys/ucontext.h> |
44 | #include <machine/pcb.h> | | 44 | #include <machine/pcb.h> |
45 | #include <machine/psl.h> | | 45 | #include <machine/psl.h> |
46 | | | 46 | |
47 | #include <uvm/uvm_extern.h> | | 47 | #include <uvm/uvm_extern.h> |
48 | #include <uvm/uvm_page.h> | | 48 | #include <uvm/uvm_page.h> |
| @@ -134,26 +134,36 @@ void | | | @@ -134,26 +134,36 @@ void |
134 | setstatclockrate(int arg) | | 134 | setstatclockrate(int arg) |
135 | { | | 135 | { |
136 | } | | 136 | } |
137 | | | 137 | |
138 | void | | 138 | void |
139 | consinit(void) | | 139 | consinit(void) |
140 | { | | 140 | { |
141 | printf("NetBSD/usermode startup\n"); | | 141 | printf("NetBSD/usermode startup\n"); |
142 | } | | 142 | } |
143 | | | 143 | |
144 | void | | 144 | void |
145 | sendsig_siginfo(const ksiginfo_t *ksi, const sigset_t *mask) | | 145 | sendsig_siginfo(const ksiginfo_t *ksi, const sigset_t *mask) |
146 | { | | 146 | { |
| | | 147 | #if 1 |
| | | 148 | printf("%s: ", __func__); |
| | | 149 | printf("flags %d, ", (int) ksi->ksi_flags); |
| | | 150 | printf("to lwp %d, signo %d, code %d, errno %d\n", |
| | | 151 | (int) ksi->ksi_lid, |
| | | 152 | ksi->ksi_signo, |
| | | 153 | ksi->ksi_code, |
| | | 154 | ksi->ksi_errno); |
| | | 155 | #endif |
| | | 156 | |
147 | panic("%s not implemented", __func__); | | 157 | panic("%s not implemented", __func__); |
148 | } | | 158 | } |
149 | | | 159 | |
150 | int | | 160 | int |
151 | mm_md_physacc(paddr_t pa, vm_prot_t prog) | | 161 | mm_md_physacc(paddr_t pa, vm_prot_t prog) |
152 | { | | 162 | { |
153 | return 0; | | 163 | return 0; |
154 | } | | 164 | } |
155 | | | 165 | |
156 | | | 166 | |
157 | #ifdef __i386__ | | 167 | #ifdef __i386__ |
158 | | | 168 | |
159 | #if 0 | | 169 | #if 0 |