implement invoke_dispatcher_stop

This commit is contained in:
Aurel Feer 2022-03-23 14:50:04 +01:00
parent 47c7038002
commit 2a4e34ed8d
2 changed files with 6 additions and 1 deletions

View File

@ -354,6 +354,11 @@ invoke_dispatcher(struct capref dispatcher, struct capref domdispatcher,
dd_caddr).error; dd_caddr).error;
} }
static inline errval_t invoke_dispatcher_stop(struct capref dispatcher)
{
return cap_invoke1(dispatcher, DispatcherCmd_Stop).error;
}
static inline errval_t static inline errval_t
invoke_dispatcher_properties(struct capref dispatcher, invoke_dispatcher_properties(struct capref dispatcher,

View File

@ -351,7 +351,7 @@ errval_t spawn_load_argv(int argc, char *argv[], struct spawninfo *si,
domain_params->argv[argc] = NULL; domain_params->argv[argc] = NULL;
domain_params->envp[0] = NULL; domain_params->envp[0] = NULL;
// afeer: script page 104: set the first register using registers_set_param(arch_registers_state_t) // afeer: script page 104: set the first register
registers_set_param(enabled_area, (uint64_t) arguments_page_in_child); registers_set_param(enabled_area, (uint64_t) arguments_page_in_child);
// - Make the new dispatcher runnable // - Make the new dispatcher runnable