Skip to content

Commit 8894f42

Browse files
committed
fix
1 parent 498f121 commit 8894f42

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.lock

Whitespace-only changes.

lib/aos/aos_rpc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
errval_t aos_rpc_init(struct aos_rpc *rpc)
2020
{
21-
21+
return LIB_ERR_NOT_IMPLEMENTED;
2222
}
2323

2424
void aos_rpc_handler_print(char* string, uintptr_t* val, struct capref* cap)

lib/aos/aos_rpc_lmp.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ static errval_t lmp_send_message(struct lmp_chan *c, struct rpc_message *msg, lm
5050

5151
errval_t aos_rpc_lmp_init(struct aos_rpc *rpc)
5252
{
53-
53+
return LIB_ERR_NOT_IMPLEMENTED;
5454
}
5555

5656
errval_t
@@ -94,8 +94,8 @@ aos_rpc_lmp_get_ram_cap(struct aos_rpc *rpc, size_t bytes, size_t alignment,
9494
msg->method = Method_Request_Ram_Cap;
9595
msg->payload_length = payload_length;
9696
msg->cap = &NULL_CAP;
97-
memcpy(msg->payload, bytes, sizeof(bytes));
98-
memcpy(msg->payload + sizeof(bytes), alignment, sizeof(alignment));
97+
memcpy(msg->payload, &bytes, sizeof(bytes));
98+
memcpy(msg->payload + sizeof(bytes), &alignment, sizeof(alignment));
9999

100100
// TODO: implement functionality to request a RAM capability over the
101101
// given channel and wait until it is delivered.

0 commit comments

Comments
 (0)