12345678910111213141516171819202122232425262728293031 |
- /*
- * IMPORTANT! DO NOT ADD LIBRARY CALLS TO THIS FILE.
- * The entire text image must fit on one page.
- */
- #include <u.h>
- #include <libc.h>
- char cons[] = "#c/cons";
- char boot[] = "/boot/boot";
- char dev[] = "/dev";
- char c[] = "#c";
- char e[] = "#e";
- char ec[] = "#ec";
- char s[] = "#s";
- char srv[] = "/srv";
- char env[] = "/env";
- void
- startboot(char *argv0, char **argv)
- {
- open(cons, OREAD);
- open(cons, OWRITE);
- open(cons, OWRITE);
- bind(c, dev, MAFTER);
- bind(ec, env, MAFTER);
- bind(e, env, MCREATE|MAFTER);
- bind(s, srv, MREPL|MCREATE);
- exec(boot, argv);
- for(;;);
- }
|