diff --git a/include/aos/aos_rpc.h b/include/aos/aos_rpc.h index f2166d1..a12128d 100644 --- a/include/aos/aos_rpc.h +++ b/include/aos/aos_rpc.h @@ -18,8 +18,8 @@ #include // define some message types -#define RPC_MTYPE_CHILD_ENDPOINT 0UL -#define RPC_MTYPE_CHILD_ENDPOINT_OK 1UL +#define RPC_MTYPE_CHILD_ENDPOINT 1UL +#define RPC_MTYPE_CHILD_ENDPOINT_OK 2UL /* An RPC binding, which may be transported over LMP or UMP. */ diff --git a/lib/aos/init.c b/lib/aos/init.c index 129ff76..ac0e409 100644 --- a/lib/aos/init.c +++ b/lib/aos/init.c @@ -217,7 +217,7 @@ errval_t barrelfish_init_onthread(struct spawn_domain_params *params) init_chan_initialized = false; err = lmp_chan_register_recv(init_chan, get_default_waitset(), MKCLOSURE(handle_init_recv, init_chan)); /* send local ep to init */ - err = lmp_chan_send0(init_chan, LMP_FLAG_YIELD | LMP_FLAG_SYNC, init_chan->local_cap); + err = lmp_chan_send1(init_chan, LMP_FLAG_YIELD | LMP_FLAG_SYNC, init_chan->local_cap, RPC_MTYPE_CHILD_ENDPOINT); if (err_is_fail(err)) { // should never fail since init listens before invoking the dispatcher return err_push(err, LIB_ERR_LMP_CHAN_SEND);