mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-22 02:16:44 +00:00
hw: do not map boot modules in bootstrap
This commit safes virtual address space.
This commit is contained in:
parent
7ecabb25eb
commit
1902d1a06b
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user