summaryrefslogtreecommitdiff
path: root/src/sys/os/os_init.c
blob: ca4d0a9141f4ebeb5b2decdca503cb2ea29b90db (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
26
27
28
#include <sys/cdefs.h>
#include <sys/panic.h>
#include <sys/syslog.h>
#include <sys/cpuvar.h>
#include <acpi/acpi.h>
#include <io/cons/cons.h>
#include <vm/vm.h>

struct pcore g_bsp;

/*
 * Kernel entrypoint
 */
__dead void
main(void)
{
    printf("booting l5 lunos v0.0.1...\n");
    acpi_early_init();
    cpu_conf(&g_bsp);

    cons_init();
    syslog_toggle(true);

    vm_init();

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