summaryrefslogtreecommitdiff
path: root/src/kernel/main.c
blob: 03ff177f8652b38a4c7a2a1fb03dedb81ac1364b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <kernel/arch/generic.h>
#include <kernel/main.h>
#include <kernel/mem/alloc.h>
#include <kernel/proc.h>
#include <kernel/util.h>
#include <stdint.h>

void kmain(struct kmain_info info) {
	kprintf("loading init...\n");
	process_seed(&info);

	kprintf("switching...\n");
	process_switch_any();
}

void shutdown(void) {
	kprintf("shutting off\n");
	mem_debugprint();
	cpu_shutdown();
}