diff --git a/src/sys/init/main.c b/src/sys/init/main.c index 8c15029..4740ba6 100644 --- a/src/sys/init/main.c +++ b/src/sys/init/main.c @@ -115,8 +115,8 @@ //execThread(systemTask,(uInt32)kmalloc(0x2000)+0x2000,0x0); execFile("sys:/init",0x0,0x0,0x0); /* OS Initializer */ - execFile("sys:/stat",0x0,0x0,0x1); /* OS Status Monitor */ - + //execFile("sys:/stat",0x0,0x0,0x1); /* OS Status Monitor */ + irqEnable(0x0); while (0x1) diff --git a/src/sys/kernel/exec.c b/src/sys/kernel/exec.c index 20209e7..254ec38 100644 --- a/src/sys/kernel/exec.c +++ b/src/sys/kernel/exec.c @@ -144,7 +144,7 @@ _current->term = tty_find(console); if (_current->term == 0x0) kpanic("Error: invalid console\n"); - + /* Set tty ownership */ _current->term->owner = _current->id; diff --git a/src/sys/lib/kmalloc.c b/src/sys/lib/kmalloc.c index f659a05..0319bcd 100644 --- a/src/sys/lib/kmalloc.c +++ b/src/sys/lib/kmalloc.c @@ -347,7 +347,7 @@ void kfree(void *baseAddr) { struct memDescriptor *tmpDesc = 0x0; - + if (baseAddr == 0x0) return; assert(baseAddr); assert(usedKernDesc); @@ -388,6 +388,12 @@ /*** $Log$ + Revision 1.33 2005/08/04 17:11:11 fsdfs + + ---------------------------------------- + + ------------------- + Revision 1.32 2004/09/28 21:50:04 reddawg kmalloc: now when we kfree memory is filled with 0xBE so it is easy to debug if we continue to use free'd memory