File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ exec(char *path, char **argv)
2020
2121 begin_op ();
2222
23- cprintf ("exec %s\n" , path );
2423 if ((ip = namei (path )) == 0 ){
2524 end_op ();
2625 return -1 ;
@@ -100,7 +99,6 @@ exec(char *path, char **argv)
10099 proc -> tf -> esp = sp ;
101100 switchuvm (proc );
102101 freevm (oldpgdir );
103- cprintf ("exec succeeded\n" );
104102 return 0 ;
105103
106104 bad :
Original file line number Diff line number Diff line change @@ -35,12 +35,14 @@ sysproc.c
3535
3636# file system
3737buf.h
38+ sleeplock.h
3839fcntl.h
3940stat.h
4041fs.h
4142file.h
4243ide.c
4344bio.c
45+ sleeplock.c
4446log.c
4547fs.c
4648file.c
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ release(struct spinlock *lk)
6161
6262 // Release the lock, equivalent to lk->locked = 0.
6363 // This code can't use a C assignment, since it might
64- // not be atomic.
64+ // not be atomic. A real OS would use C atomics here.
6565 asm volatile ("movl $0, %0" : "+m" (lk -> locked ) : );
6666
6767 popcli ();
You can’t perform that action at this time.
0 commit comments