diff --git a/base-hw/src/core/kernel/thread.cc b/base-hw/src/core/kernel/thread.cc index 218688774b..e5c513e90e 100644 --- a/base-hw/src/core/kernel/thread.cc +++ b/base-hw/src/core/kernel/thread.cc @@ -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()); }