summaryrefslogtreecommitdiff
path: root/bio.c
diff options
context:
space:
mode:
Diffstat (limited to 'bio.c')
-rw-r--r--bio.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/bio.c b/bio.c
index a45ff3e..90f9af9 100644
--- a/bio.c
+++ b/bio.c
@@ -19,10 +19,11 @@
// and needs to be written to disk.
#include "types.h"
-#include "defs.h"
#include "param.h"
#include "spinlock.h"
#include "sleeplock.h"
+#include "riscv.h"
+#include "defs.h"
#include "fs.h"
#include "buf.h"
@@ -100,7 +101,7 @@ bread(uint dev, uint blockno)
b = bget(dev, blockno);
if((b->flags & B_VALID) == 0) {
- iderw(b);
+ ramdiskrw(b);
}
return b;
}
@@ -112,7 +113,7 @@ bwrite(struct buf *b)
if(!holdingsleep(&b->lock))
panic("bwrite");
b->flags |= B_DIRTY;
- iderw(b);
+ ramdiskrw(b);
}
// Release a locked buffer.