summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorrtm <rtm>2006-08-13 02:12:44 +0000
committerrtm <rtm>2006-08-13 02:12:44 +0000
commit9e5970d596d7b1634200d50e96130886f593cede (patch)
tree994e11ccb4a3a33c1963a8f1fb3f7464d3d9e363 /main.c
parent05e975511bcf7f33955208319655dbfc687a7b0c (diff)
downloadxv6-labs-9e5970d596d7b1634200d50e96130886f593cede.tar.gz
xv6-labs-9e5970d596d7b1634200d50e96130886f593cede.tar.bz2
xv6-labs-9e5970d596d7b1634200d50e96130886f593cede.zip
link()
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/main.c b/main.c
index c164c48..a2ee845 100644
--- a/main.c
+++ b/main.c
@@ -87,8 +87,6 @@ main0(void)
lapic_enableintr();
// Enable interrupts on this processor.
- cprintf("cpu%d: nlock %d before -- and sti\n",
- cpu(), cpus[0].nlock);
cpus[cpu()].nlock--;
sti();
@@ -98,7 +96,6 @@ main0(void)
//load_icode(p, _binary_userfs_start, (uint) _binary_userfs_size);
load_icode(p, _binary_init_start, (uint) _binary_init_size);
p->state = RUNNABLE;
- cprintf("loaded init\n");
scheduler();
}
@@ -123,7 +120,6 @@ mpmain(void)
cpus[cpu()].booted = 1;
// Enable interrupts on this processor.
- cprintf("cpu%d: initial nlock %d\n", cpu(), cpus[cpu()].nlock);
cpus[cpu()].nlock--;
sti();
@@ -139,7 +135,6 @@ load_icode(struct proc *p, uchar *binary, uint size)
// Check magic number on binary
elf = (struct elfhdr*) binary;
- cprintf("elf %x magic %x\n", elf, elf->magic);
if (elf->magic != ELF_MAGIC)
panic("load_icode: not an ELF binary");
@@ -151,7 +146,6 @@ load_icode(struct proc *p, uchar *binary, uint size)
for (i = 0; i < elf->phnum; i++, ph++) {
if (ph->type != ELF_PROG_LOAD)
continue;
- cprintf("va %x memsz %d\n", ph->va, ph->memsz);
if (ph->va + ph->memsz < ph->va)
panic("load_icode: overflow in elf header segment");
if (ph->va + ph->memsz >= p->sz)