From 54f05b6fc1ec4b9570f791cc700d8d81dc6838b2 Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Tue, 18 Oct 2016 10:06:51 +0200 Subject: [PATCH] ksupport: kernel_run lookup with dyld (closes #590) adapt to misoc change --- artiq/runtime/ksupport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/runtime/ksupport.c b/artiq/runtime/ksupport.c index 4bc8abec8..8236166d2 100644 --- a/artiq/runtime/ksupport.c +++ b/artiq/runtime/ksupport.c @@ -409,7 +409,7 @@ int main(void) } if(request->run_kernel) { - void (*kernel_run)() = request->library_info->init; + void (*kernel_run)() = dyld_lookup("__modinit__", request->library_info); void *typeinfo = dyld_lookup("typeinfo", request->library_info); mailbox_send_and_wait(&load_reply);