mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-09 04:15:52 +00:00
Fiasco.OC: Don't map page 0 in core (fix #223)
When core requests all RAM from sigma0 it normally unmaps page 0 so that null-pointer dereferences are detected by a pagefault. The unmap syscall in the Fiasco.OC base platform was used insufficiently in this particular case.
This commit is contained in:
parent
b54bdea2aa
commit
04969dcf69
@ -301,7 +301,8 @@ void Platform::_setup_mem_alloc()
|
||||
/* XXX do not allocate page0 */
|
||||
if (addr == 0) {
|
||||
Fiasco::l4_task_unmap(Fiasco::L4_BASE_TASK_CAP,
|
||||
Fiasco::l4_fpage(0, log2_size, 0),
|
||||
Fiasco::l4_fpage(0, log2_size,
|
||||
Fiasco::L4_FPAGE_RW),
|
||||
Fiasco::L4_FP_ALL_SPACES);
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user