Skip to content

Commit

Permalink
runtime: avoid spurious error messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed Aug 7, 2015
1 parent b5cf1e3 commit b6e2613
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions soc/runtime/kloader.c
Expand Up @@ -41,6 +41,8 @@ static int load_or_start_kernel(void *library, int run_kernel)
start_kernel_cpu(&request);

struct msg_load_reply *reply = mailbox_wait_and_receive();
mailbox_acknowledge();

if(reply->type != MESSAGE_TYPE_LOAD_REPLY) {
log("BUG: unexpected reply to load/run request");
return 0;
Expand All @@ -51,8 +53,6 @@ static int load_or_start_kernel(void *library, int run_kernel)
return 0;
}

mailbox_acknowledge();

return 1;
}

Expand Down

0 comments on commit b6e2613

Please sign in to comment.