mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-17 06:38:28 +00:00
Loader: reflect faults to client
With this patch, the loader installs an optional client-provided fault handler as default CPU exception handler and RM fault handler for all CPU and RM sessions of the loaded subsystem. This way, loader clients become able to respond to failures occuring within the subsystem. The new feature is provided via the added 'Loader::fault_handler' RPC function. The 'run/failsafe' test covers two cases related to the loader, which are faults produced by the immediate child of the loader and faults produced by indirect children.
This commit is contained in:
@ -41,6 +41,9 @@ namespace Loader {
|
||||
void view_ready_sigh(Signal_context_capability sigh) {
|
||||
call<Rpc_view_ready_sigh>(sigh); }
|
||||
|
||||
void fault_sigh(Signal_context_capability sigh) {
|
||||
call<Rpc_fault_sigh>(sigh); }
|
||||
|
||||
void start(Name const &binary, Name const &label = "",
|
||||
Native_pd_args const &pd_args = Native_pd_args()) {
|
||||
call<Rpc_start>(binary, label, pd_args); }
|
||||
|
Reference in New Issue
Block a user