Created
May 16, 2016 10:33
-
-
Save Rondom/2fac4b437002e0d74ea10cf92c63ed73 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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