summaryrefslogtreecommitdiff
path: root/src/sys/os/os_init.c
blob: 616aa84c83cdd295b1a3f2fef6c2c4fcf9b9f5a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <sys/cdefs.h>
#include <sys/panic.h>
#include <sys/syslog.h>
#include <sys/cpuvar.h>
#include <io/cons/cons.h>
#include <vm/vm.h>

struct pcore g_bsp;

/*
 * Kernel entrypoint
 */
__dead void
main(void)
{
    cpu_conf(&g_bsp);
    cons_init();
    syslog_toggle(true);

    printf("booting l5 lunos v0.0.1...\n");
    vm_init();

    panic("end of kernel reached\n");
    for (;;);
}