From da91a3a408d3f26de8d46cb73474207b5d7c802a Mon Sep 17 00:00:00 2001 From: Frans Kaashoek Date: Wed, 14 Sep 2016 08:43:57 -0400 Subject: [PATCH 1/3] Add sleeplock.[ch] to listing --- runoff.list | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runoff.list b/runoff.list index 73d39f7..3db7072 100644 --- a/runoff.list +++ b/runoff.list @@ -35,12 +35,14 @@ sysproc.c # file system buf.h +sleeplock.h fcntl.h stat.h fs.h file.h ide.c bio.c +sleeplock.c log.c fs.c file.c From 6cec0211d8978d21d4206631549812877ae26f1a Mon Sep 17 00:00:00 2001 From: Frans Kaashoek Date: Wed, 14 Sep 2016 13:01:53 -0400 Subject: [PATCH 2/3] Update comment a bit. --- spinlock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spinlock.c b/spinlock.c index 7b372ef..64bb64a 100644 --- a/spinlock.c +++ b/spinlock.c @@ -61,7 +61,7 @@ release(struct spinlock *lk) // Release the lock, equivalent to lk->locked = 0. // This code can't use a C assignment, since it might - // not be atomic. + // not be atomic. A real OS would use C atomics here. asm volatile("movl $0, %0" : "+m" (lk->locked) : ); popcli(); From 33188666da819c3f8e58f6ab5bc993f490644d4a Mon Sep 17 00:00:00 2001 From: Frans Kaashoek Date: Wed, 14 Sep 2016 21:13:09 -0400 Subject: [PATCH 3/3] Delete two left-over print statements --- exec.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/exec.c b/exec.c index e968d2f..6be6af1 100644 --- a/exec.c +++ b/exec.c @@ -20,7 +20,6 @@ exec(char *path, char **argv) begin_op(); - cprintf("exec %s\n", path); if((ip = namei(path)) == 0){ end_op(); return -1; @@ -100,7 +99,6 @@ exec(char *path, char **argv) proc->tf->esp = sp; switchuvm(proc); freevm(oldpgdir); - cprintf("exec succeeded\n"); return 0; bad: