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 */
|
/* XXX do not allocate page0 */
|
||||||
if (addr == 0) {
|
if (addr == 0) {
|
||||||
Fiasco::l4_task_unmap(Fiasco::L4_BASE_TASK_CAP,
|
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);
|
Fiasco::L4_FP_ALL_SPACES);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue