blob: b2928beaa7f3b996a52e6516812ffbe7c013e217 (
plain) (
blame)
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
29
|
#include <apos/mem_nodes.h>
#include <apos/timer.h>
#include <apos/attrs.h>
#include <apos/proc.h>
#include <apos/debug.h>
#include <apos/vmem.h>
#include <arch/arch.h>
#include <arch/irq.h>
#include <libfdt.h>
void __main main(void *fdt)
{
/* dbg uses direct mapping at this point */
init_dbg(fdt);
setup_dmap_dbg();
dbg_fdt(fdt);
setup_arch(fdt);
init_pmem(fdt);
struct vmem *b = init_vmem(fdt);
/* start up debugging in kernel IO */
setup_io_dbg(b);
init_irq(fdt);
init_timer(fdt);
init_proc(fdt, b);
}
|