Commit eaea7b30 authored by Charles Jacobsen's avatar Charles Jacobsen Committed by Vikram Narayanan

Modified api test passing. Fixed dealer/customer to use synch.

parent bf572ca3
......@@ -117,6 +117,12 @@ fail:
int customer_start(void)
{
int ret;
/*
* Wait until dealer is ready
*/
ret = wait_for_completion_interruptible(&dealer_ready);
if (ret)
return ret;
/*
* Call customer init (will buy car)
*/
......
......@@ -23,6 +23,11 @@ extern void __dealer_exit(void);
#include "../include/api-internal.h"
#include "../include/utcb.h"
/* SYNCHRONIZATION HACK ---------------------------------------- */
struct completion dealer_ready;
EXPORT_SYMBOL(dealer_ready);
/* INTERFACE WRAPPERS -------------------------------------------------- */
cptr_t manufacturer_interface_cap;
......@@ -64,6 +69,8 @@ static int dealer_register_manufacturer_callee(void)
goto fail1;
}
complete(dealer_ready);
return ret;
fail1:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment