34 lines
572 B
C
34 lines
572 B
C
#include <stdint.h>
|
|
#include <socks/init.h>
|
|
#include <socks/test.h>
|
|
#include <socks/printk.h>
|
|
#include <socks/kext.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);
|
|
|
|
scan_internal_kexts();
|
|
|
|
printk("kernel_init() running on processor %u", this_cpu());
|
|
|
|
run_all_tests();
|
|
|
|
while (1) {
|
|
ml_cpu_pause();
|
|
}
|
|
}
|