libc: add 'wakeup_remote_peers' to 'with_libc'

Libc components using 'with_libc' should wakeup peers in case a libc function
makes I/O progress.

issue #4820
This commit is contained in:
Sebastian Sumpf 2023-04-20 14:22:46 +02:00 committed by Christian Helmuth
parent 8893b800e0
commit c7c9542262

View File

@ -419,6 +419,7 @@ void Libc::execute_in_application_context(Application_code &app_code)
*/
if (!Kernel::kernel().main_context()) {
app_code.execute();
Kernel::kernel().wakeup_remote_peers();
return;
}
@ -437,6 +438,8 @@ void Libc::execute_in_application_context(Application_code &app_code)
nested = true;
Kernel::kernel().run(app_code);
nested = false;
Kernel::kernel().wakeup_remote_peers();
}