Skip to content

Instantly share code, notes, and snippets.

@Rondom
Created May 16, 2016 10:33
Show Gist options
  • Save Rondom/2fac4b437002e0d74ea10cf92c63ed73 to your computer and use it in GitHub Desktop.
Save Rondom/2fac4b437002e0d74ea10cf92c63ed73 to your computer and use it in GitHub Desktop.
#ifdef _WIN32
#include <windows.h>
#else
#include <fcntl.h>
#endif
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <lkl.h>
#include <lkl_host.h>
int main(int argc, char **argv)
{
fprintf(stderr, "Starting kernel...");
lkl_start_kernel(&lkl_host_ops, 10 * 1024 * 1024, "");
// do something useful
out:
fprintf(stderr, "Shutting down kernel...\n");
lkl_sys_halt();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment