Commit fa54601
pmm: simpler and bugfix process_memory_range loop
This simplifies the adding of frames during boot. It also fixes a bug for
configurations with > 1GB memory. After the initial 4K frames, the current
(`cur`) is aligned to 2MB. Trying to add a 1GB frame at this point will
lead to page faults further down the line as we end up with misaligned page
frame mfns.
Signed-off-by: Johannes Wikner <[email protected]>1 parent c1ab591 commit fa54601
3 files changed
+21
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| 196 | + | |
196 | 197 | | |
197 | 198 | | |
198 | 199 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
| 161 | + | |
160 | 162 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
297 | 296 | | |
298 | 297 | | |
299 | 298 | | |
| |||
310 | 309 | | |
311 | 310 | | |
312 | 311 | | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
319 | 315 | | |
320 | 316 | | |
321 | 317 | | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
329 | 325 | | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
335 | 331 | | |
336 | | - | |
337 | | - | |
338 | 332 | | |
339 | 333 | | |
340 | 334 | | |
341 | 335 | | |
342 | 336 | | |
343 | | - | |
344 | | - | |
345 | | - | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
346 | 340 | | |
347 | 341 | | |
348 | 342 | | |
| |||
0 commit comments