From b6e2613f7723114f7f3dfbed207bd953ff2ca31b Mon Sep 17 00:00:00 2001 From: whitequark Date: Fri, 7 Aug 2015 11:03:36 +0300 Subject: [PATCH] runtime: avoid spurious error messages. --- soc/runtime/kloader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/soc/runtime/kloader.c b/soc/runtime/kloader.c index 547907728..5d1cb0a32 100644 --- a/soc/runtime/kloader.c +++ b/soc/runtime/kloader.c @@ -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; @@ -51,8 +53,6 @@ static int load_or_start_kernel(void *library, int run_kernel) return 0; } - mailbox_acknowledge(); - return 1; }