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:
Stefan Kalkowski 2012-05-30 10:54:22 +02:00 committed by Norman Feske
parent b54bdea2aa
commit 04969dcf69
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}