mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
hw: ignore stale data in fresh signal
When a new signal arrives, which means a formerly non-pending one, we should ignore old signal numbers of that context, but only evaluate newly received data by the last kernel-call. Fix #5193
This commit is contained in:
committed by
Christian Helmuth
parent
6dd87a6ce0
commit
68de550090
@@ -146,7 +146,7 @@ void Signal_receiver::block_for_signal()
|
||||
if (!context->_pending) {
|
||||
/* update signal context */
|
||||
Mutex::Guard context_guard(context->_mutex);
|
||||
unsigned const num = context->_curr_signal.num + data->num;
|
||||
unsigned const num = data->num;
|
||||
context->_pending = true;
|
||||
context->_curr_signal = Signal::Data(context, num);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user