blob: ce9ec544f8b5d423059203c9f713d4645ba9114a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include <kjarna/interface.h>
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);
return main(0, nullptr);
}
|