hw: do not map boot modules in bootstrap

This commit safes virtual address space.
This commit is contained in:
Sebastian Sumpf 2020-01-08 15:27:47 +01:00 committed by Christian Helmuth
parent 7ecabb25eb
commit 1902d1a06b

View File

@ -19,6 +19,7 @@
using namespace Bootstrap; using namespace Bootstrap;
extern unsigned _bss_end;
/***************************** /*****************************
** Platform::Ram_allocator ** ** Platform::Ram_allocator **
@ -179,7 +180,7 @@ Platform::Platform()
/* temporarily map all bootstrap memory 1:1 for transition to core */ /* temporarily map all bootstrap memory 1:1 for transition to core */
// FIXME do not insert as mapping for core // FIXME do not insert as mapping for core
core_pd->map_insert(Mapping(bootstrap_region.base, bootstrap_region.base, core_pd->map_insert(Mapping(bootstrap_region.base, bootstrap_region.base,
bootstrap_region.size, Hw::PAGE_FLAGS_KERN_TEXT)); (addr_t)&_bss_end - (addr_t)&_prog_img_beg, Hw::PAGE_FLAGS_KERN_TEXT));
/* map memory-mapped I/O for core */ /* map memory-mapped I/O for core */
board.core_mmio.for_each_mapping([&] (Mapping const & m) { board.core_mmio.for_each_mapping([&] (Mapping const & m) {