diff options
author | rsc <rsc> | 2007-08-27 23:26:33 +0000 |
---|---|---|
committer | rsc <rsc> | 2007-08-27 23:26:33 +0000 |
commit | 558ab49f13634d972e956020a12d14fdb1416b94 (patch) | |
tree | 02a4424e94f3401b8071dbfb2fe50212da17c35c /main.c | |
parent | 99b11b6c64c17b94288c659e9398261e69a0cf75 (diff) | |
download | xv6-labs-558ab49f13634d972e956020a12d14fdb1416b94.tar.gz xv6-labs-558ab49f13634d972e956020a12d14fdb1416b94.tar.bz2 xv6-labs-558ab49f13634d972e956020a12d14fdb1416b94.zip |
delete unnecessary #include lines
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 14 |
1 files changed, 3 insertions, 11 deletions
@@ -1,23 +1,15 @@ #include "types.h" +#include "defs.h" #include "param.h" #include "mmu.h" #include "proc.h" -#include "defs.h" #include "x86.h" -#include "traps.h" -#include "syscall.h" -#include "elf.h" -#include "param.h" -#include "spinlock.h" extern char edata[], end[]; void bootothers(void); // Bootstrap processor starts running C code here. -// This is called main0 not main so that it can have -// a void return type. Gcc can't handle functions named -// main that don't return int. Really. void main0(void) { @@ -39,7 +31,7 @@ main0(void) asm volatile("movl %0, %%ebp" : : "r" (cpus[bcpu].mpstack+MPSTACK)); lapic_init(bcpu); - cprintf("\\ncpu%d: starting xv6\\n\\n", cpu()); + cprintf("\ncpu%d: starting xv6\n\n", cpu()); pinit(); // process table binit(); // buffer cache @@ -69,7 +61,7 @@ main0(void) void mpmain(void) { - cprintf("cpu%d: starting\\n", cpu()); + cprintf("cpu%d: starting\n", cpu()); idtinit(); lapic_init(cpu()); setupsegs(0); |