Fixed oupsie in init chanel setup

This commit is contained in:
Sparchatus 2022-03-30 13:26:49 +00:00
parent d05b40fdc8
commit ac171a2851
2 changed files with 3 additions and 3 deletions

View File

@ -18,8 +18,8 @@
#include <aos/aos.h>
// 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. */

View File

@ -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);