diff options
| author | Frans Kaashoek <kaashoek@mit.edu> | 2019-08-18 14:35:11 -0400 |
|---|---|---|
| committer | Frans Kaashoek <kaashoek@mit.edu> | 2019-08-18 14:35:11 -0400 |
| commit | 2501560cd691fcdb9c310dccc14ac4e7486c99d9 (patch) | |
| tree | 2bbda111baaeda8c4b8363422b8e9f39910177e6 /kernel/main.c | |
| parent | a9953236cc9f1befb625575671bc39f1ab254bf0 (diff) | |
| download | xv6-labs-2022-2501560cd691fcdb9c310dccc14ac4e7486c99d9.tar.xz xv6-labs-2022-2501560cd691fcdb9c310dccc14ac4e7486c99d9.zip | |
Cosmetic cleanup: fsinit reads sb and calls loginit. initialize icache
in main.c and don't make it disk specific; the icache is shared. This
doesn't matter since we have only one disk, but conceptually cleaner
and maybe helpful to students for mount lab.
Diffstat (limited to 'kernel/main.c')
| -rw-r--r-- | kernel/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/main.c b/kernel/main.c index 077f645..a936fd3 100644 --- a/kernel/main.c +++ b/kernel/main.c @@ -23,6 +23,7 @@ main() plicinit(); // set up interrupt controller plicinithart(); // ask PLIC for device interrupts binit(); // buffer cache + iinit(); // inode cache fileinit(); // file table virtio_disk_init(); // emulated hard disk userinit(); // first user process |
