ref: 41c7b8cc5ebc3000271bc6b5d9931cc959a8d663
dir: /pc/kern.c/
#include <u.h> #include <libc.h> #include <mem.h> #include <cons.h> #include <user.h> #include "../cmd/rc.h" void kernel_main(void) { /* set up memory map */ memset(memap, FREE, MEM_MAX * (1024 / BLOCKSIZE)); cons_init(pccons); cons_write(bitcons, "Teppich"); users_init(); cuser = adam; rc_main(); }