Skip to content

Commit d6dc5bc

Browse files
author
Robert Morris
committed
Merge branch 'master' of g.csail.mit.edu:xv6-dev
2 parents aeaa308 + 3318866 commit d6dc5bc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

exec.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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:

runoff.list

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,14 @@ sysproc.c
3535

3636
# file system
3737
buf.h
38+
sleeplock.h
3839
fcntl.h
3940
stat.h
4041
fs.h
4142
file.h
4243
ide.c
4344
bio.c
45+
sleeplock.c
4446
log.c
4547
fs.c
4648
file.c

spinlock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)