#include #include struct kjarna_entry_params *entry_params; extern int main(int argc, char **argv); int kjarna_entry() { uint64_t image_base; __asm__ ("leaq kc_image_base(%%rip), %0" : "=r"(image_base) :: ); bool wait = true; while(wait); int result = main(0, nullptr); _exit(result); }