Revert "mmu: pin the whole kernel"
This reverts commit a45486e1d5
.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
cf34c9174a
commit
75ebe4c7bd
1 changed files with 2 additions and 14 deletions
16
kernel/mmu.c
16
kernel/mmu.c
|
@ -527,20 +527,8 @@ void z_mem_manage_init(void)
|
|||
*/
|
||||
VIRT_FOREACH(Z_KERNEL_VIRT_START, Z_KERNEL_VIRT_SIZE, addr)
|
||||
{
|
||||
pf = z_phys_to_page_frame(BOOT_VIRT_TO_PHYS(addr));
|
||||
frame_mapped_set(pf, addr);
|
||||
|
||||
/* TODO: for now we pin the whole Zephyr image. Demand paging
|
||||
* currently tested with anonymously-mapped pages which are not
|
||||
* pinned.
|
||||
*
|
||||
* We will need to setup linker regions for a subset of kernel
|
||||
* code/data pages which are pinned in memory and
|
||||
* may not be evicted. This will contain critical CPU data
|
||||
* structures, and any code used to perform page fault
|
||||
* handling, page-ins, etc.
|
||||
*/
|
||||
pf->flags |= Z_PAGE_FRAME_PINNED;
|
||||
frame_mapped_set(z_phys_to_page_frame(BOOT_VIRT_TO_PHYS(addr)),
|
||||
addr);
|
||||
}
|
||||
|
||||
/* Any remaining pages that aren't mapped, reserved, or pinned get
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue