diff --git a/src/sys/kernel/fork.c b/src/sys/kernel/fork.c index ce5f114..d6aeeb6 100644 --- a/src/sys/kernel/fork.c +++ b/src/sys/kernel/fork.c @@ -99,8 +99,8 @@ newProcess->tss.eip = eip; /* Create A Copy Of The VM Space For New Task */ newProcess->tss.cr3 = (uInt32)vmmCopyVirtualSpace(newProcess->id); - newProcess->oInfo.curDir = _current->oInfo.curDir; - newProcess->oInfo.container = _current->oInfo.container; + //newProcess->oInfo.curDir = _current->oInfo.curDir; + //newProcess->oInfo.container = _current->oInfo.container; sprintf(newProcess->oInfo.cwd,_current->oInfo.cwd); newProcess->state = READY; /* Return Id of Proccess */ @@ -109,6 +109,9 @@ /*** $Log$ + Revision 1.12 2004/07/20 22:29:55 reddawg + assert: remade assert + Revision 1.11 2004/07/19 01:56:01 reddawg fork: no mem leaks here diff --git a/src/sys/kernel/spinlock.c b/src/sys/kernel/spinlock.c index 5aed409..339b544 100644 --- a/src/sys/kernel/spinlock.c +++ b/src/sys/kernel/spinlock.c @@ -34,11 +34,14 @@ } void spinUnlock(spinLock_t *lock) { + *lock = 0x0; + /* register int unlocked; asm volatile( "xchgl %0, %1" : "=&r" (unlocked), "=m" (*lock) : "0" (0) ); + */ } int spinTryLock(spinLock_t *lock) { @@ -61,6 +64,9 @@ /*** $Log$ + Revision 1.10 2004/07/20 21:17:05 reddawg + CFLAGS: I updated cflags so optimizations are consistant on all files different optimization levels maybe the source of some of our problems? + Revision 1.9 2004/07/20 20:25:57 reddawg Works perfectly here