hw: don't use assert in Kernel::update_region

ref #1101
This commit is contained in:
Martin Stein 2014-03-17 01:06:44 +01:00 committed by Norman Feske
parent ea156e18ec
commit 4f19d4869f

View File

@ -615,9 +615,16 @@ void Thread::_call_update_pd()
void Thread::_call_update_region()
{
assert(_core());
/* FIXME we don't handle instruction caches by now */
/* check permissions */
if (!_core()) {
PWRN("not entitled to update region");
return;
}
/*
* Flush hardware caches
*
* FIXME we don't handle instruction caches by now
*/
Processor::flush_data_cache_by_virt_region((addr_t)user_arg_1(),
(size_t)user_arg_2());
}