summaryrefslogtreecommitdiff
path: root/kc/core/kc_main.c
blob: 1eb07da536295a944b6e31d321e880c94ebb45eb (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
#include "cpu.h"
#include "serial.h"
#include "kprint.h"
#include "memory.h"
#include "panic.h"

#include <kernel/entry.h>

#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>

//TODO: initialize vm before cpu?
//      alternatively, split memory and/or cpu initialization steps

unsigned long kc_main(struct kc_boot_data *data)
{
    cpu_init();
    serial_init();
    kputs("<hacker voice> i'm in 3333\r\n");
    memory_init(data);
    halt();
}