32 lines
542 B
C
32 lines
542 B
C
#include <stdint.h>
|
|
#include <socks/init.h>
|
|
#include <socks/test.h>
|
|
#include <socks/printk.h>
|
|
#include <socks/object.h>
|
|
#include <socks/sched.h>
|
|
#include <socks/machine/init.h>
|
|
#include <socks/cpu.h>
|
|
|
|
extern unsigned long get_rflags(void);
|
|
|
|
extern char __pstart[], __pend[];
|
|
|
|
void print_kernel_banner(void)
|
|
{
|
|
printk("Socks kernel version " BUILD_ID);
|
|
}
|
|
|
|
void kernel_init(uintptr_t arg)
|
|
{
|
|
ml_init(arg);
|
|
|
|
object_bootstrap();
|
|
sched_init();
|
|
|
|
printk("kernel_init() running on processor %u", this_cpu());
|
|
|
|
run_all_tests();
|
|
|
|
ml_halt_cpu();
|
|
}
|