Commit f203b65
committed
arch/xtensa: Clean up MMU initialization
We were trying to initialize the MMU extremely early (out of crt1.S),
which was forcing some odd gymnastics with splitting up the
initialization paths. Just don't do that.
The MMU boots with a pefectly good mapping for physical memory. Use
that until we're set up and about to launch the post-arch
initialization in z_cstart().
Just in general, trying to run compiled C code before z_cstart() calls
kernel_arch_init() is asking for trouble. We do it only in extreme
situations, and we don't need it here.
Signed-off-by: Andy Ross <[email protected]>1 parent f71b91a commit f203b65
3 files changed
+9
-36
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 28 | | |
34 | 29 | | |
35 | 30 | | |
| |||
193 | 188 | | |
194 | 189 | | |
195 | 190 | | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | 191 | | |
201 | 192 | | |
202 | 193 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
236 | 224 | | |
237 | 225 | | |
238 | 226 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | 54 | | |
65 | 55 | | |
66 | 56 | | |
67 | 57 | | |
68 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
69 | 63 | | |
70 | 64 | | |
71 | 65 | | |
| |||
0 commit comments