Commit 7fe6862
committed
core: add boot_mem section for pager
With CFG_WITH_PAGER=y, a special section of memory is carved out by the
linker script to be used by the boot_mem*() functions during boot. The
amount of memory must cover the worst case, but the remaining unused
memory will be returned to be managed by the pager at end of boot in a
later patch. This enables boot configuration in the same way regardless
of CFG_DYN_CONFIG.
Add support in boot_mem_release_unused() and
boot_mem_release_tmp_alloc() to pass the unused memory to the pager.
This is needed in later patches with CFG_WITH_PAGER=y and
CFG_DYN_CONFIG=y.
Signed-off-by: Jens Wiklander <[email protected]>1 parent 11657db commit 7fe6862
File tree
6 files changed
+85
-63
lines changed- core
- arch/arm/kernel
- include/kernel
- mm
6 files changed
+85
-63
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
511 | 511 | | |
512 | 512 | | |
513 | 513 | | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | 514 | | |
521 | 515 | | |
522 | 516 | | |
| |||
966 | 960 | | |
967 | 961 | | |
968 | 962 | | |
969 | | - | |
970 | | - | |
971 | | - | |
972 | | - | |
973 | | - | |
974 | | - | |
975 | | - | |
976 | | - | |
977 | | - | |
978 | 963 | | |
979 | 964 | | |
980 | 965 | | |
| |||
999 | 984 | | |
1000 | 985 | | |
1001 | 986 | | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
1002 | 1004 | | |
1003 | 1005 | | |
1004 | 1006 | | |
| |||
1117 | 1119 | | |
1118 | 1120 | | |
1119 | 1121 | | |
1120 | | - | |
1121 | | - | |
1122 | | - | |
| 1122 | + | |
1123 | 1123 | | |
1124 | 1124 | | |
1125 | 1125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
534 | 534 | | |
535 | 535 | | |
536 | 536 | | |
| 537 | + | |
| 538 | + | |
537 | 539 | | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
| 540 | + | |
546 | 541 | | |
547 | | - | |
548 | 542 | | |
549 | 543 | | |
550 | 544 | | |
551 | 545 | | |
552 | 546 | | |
553 | | - | |
554 | 547 | | |
555 | 548 | | |
556 | 549 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
| 391 | + | |
| 392 | + | |
391 | 393 | | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
| 394 | + | |
399 | 395 | | |
400 | | - | |
401 | 396 | | |
402 | 397 | | |
403 | 398 | | |
404 | 399 | | |
405 | 400 | | |
406 | | - | |
407 | 401 | | |
408 | 402 | | |
409 | 403 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
| 247 | + | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
251 | 253 | | |
252 | 254 | | |
253 | 255 | | |
| |||
285 | 287 | | |
286 | 288 | | |
287 | 289 | | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
| 290 | + | |
292 | 291 | | |
293 | 292 | | |
294 | 293 | | |
| |||
300 | 299 | | |
301 | 300 | | |
302 | 301 | | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
303 | 323 | | |
304 | 324 | | |
305 | 325 | | |
| |||
386 | 406 | | |
387 | 407 | | |
388 | 408 | | |
389 | | - | |
390 | | - | |
391 | 409 | | |
392 | | - | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
393 | 414 | | |
394 | 415 | | |
395 | 416 | | |
| |||
483 | 504 | | |
484 | 505 | | |
485 | 506 | | |
486 | | - | |
487 | 507 | | |
488 | 508 | | |
489 | 509 | | |
490 | | - | |
491 | 510 | | |
492 | 511 | | |
493 | 512 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | 53 | | |
61 | 54 | | |
62 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
17 | 29 | | |
18 | 30 | | |
19 | 31 | | |
| |||
109 | 121 | | |
110 | 122 | | |
111 | 123 | | |
112 | | - | |
113 | 124 | | |
114 | 125 | | |
115 | 126 | | |
| |||
301 | 312 | | |
302 | 313 | | |
303 | 314 | | |
304 | | - | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
305 | 324 | | |
| 325 | + | |
306 | 326 | | |
307 | 327 | | |
308 | 328 | | |
309 | 329 | | |
310 | 330 | | |
311 | 331 | | |
312 | 332 | | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | 333 | | |
317 | 334 | | |
318 | 335 | | |
| |||
343 | 360 | | |
344 | 361 | | |
345 | 362 | | |
| 363 | + | |
346 | 364 | | |
347 | 365 | | |
348 | 366 | | |
| |||
353 | 371 | | |
354 | 372 | | |
355 | 373 | | |
356 | | - | |
357 | | - | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
358 | 382 | | |
359 | | - | |
360 | 383 | | |
361 | 384 | | |
362 | 385 | | |
| |||
0 commit comments