1 /* 2 * IMPORTANT! DO NOT ADD LIBRARY CALLS TO THIS FILE. 3 * The entire text image must fit on one page. 4 */ 5 6 #include <u.h> 7 #include <libc.h> 8 9 char cons[] = "#c/cons"; 10 char boot[] = "/boot/boot"; 11 char dev[] = "/dev"; 12 char c[] = "#c"; 13 char e[] = "#e"; 14 char ec[] = "#ec"; 15 char s[] = "#s"; 16 char srv[] = "/srv"; 17 char env[] = "/env"; 18 19 void 20 startboot(char *argv0, char **argv) 21 { 22 open(cons, OREAD); 23 open(cons, OWRITE); 24 open(cons, OWRITE); 25 bind(c, dev, MAFTER); 26 bind(ec, env, MAFTER); 27 bind(e, env, MCREATE|MAFTER); 28 bind(s, srv, MREPL|MCREATE); 29 exec(boot, argv); 30 for(;;); 31 } 32