projects
/
pintos-anon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05a5604
)
Standard disk assignments.
author
Ben Pfaff
<blp@cs.stanford.edu>
Tue, 10 May 2005 23:09:34 +0000
(23:09 +0000)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Tue, 10 May 2005 23:09:34 +0000
(23:09 +0000)
src/devices/disk.c
patch
|
blob
|
history
diff --git
a/src/devices/disk.c
b/src/devices/disk.c
index 971f3af537288f38523d92e0807e2489870e33f6..1810fc4b1c474961d618a4002cb75ac4299d93a4 100644
(file)
--- a/
src/devices/disk.c
+++ b/
src/devices/disk.c
@@
-179,7
+179,14
@@
disk_print_stats (void)
}
/* Returns the disk numbered DEV_NO--either 0 or 1 for master or
- slave, respectively--within the channel numbered CHAN_NO. */
+ slave, respectively--within the channel numbered CHAN_NO.
+
+ Pintos uses disks this way:
+ 0:0 - operating system kernel
+ 0:1 - file system
+ 1:0 - scratch
+ 1:1 - swap
+*/
struct disk *
disk_get (int chan_no, int dev_no)
{