mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 13:47:56 +00:00
parent
7dbc9129db
commit
ed2d9fef47
@ -60,6 +60,13 @@ bool Hw::Address_space::insert_translation(addr_t virt, addr_t phys,
|
|||||||
_tt.insert_translation(virt, phys, size, flags, _tt_alloc);
|
_tt.insert_translation(virt, phys, size, flags, _tt_alloc);
|
||||||
return true;
|
return true;
|
||||||
} catch(Hw::Out_of_tables &) {
|
} catch(Hw::Out_of_tables &) {
|
||||||
|
|
||||||
|
/* core/kernel's page-tables should never get flushed */
|
||||||
|
if (_tt_phys == Platform::core_page_table()) {
|
||||||
|
error("core's page-table allocator is empty!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
flush(platform().vm_start(), platform().vm_size());
|
flush(platform().vm_start(), platform().vm_size());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user