diff options
Diffstat (limited to 'bio.c')
-rw-r--r-- | bio.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -90,13 +90,13 @@ bread(uint dev, uint sector) } void -bwrite(uint dev, struct buf *b, uint sector) +bwrite(struct buf *b, uint sector) { void *c; extern struct spinlock ide_lock; acquire(&ide_lock); - c = ide_start_rw(dev & 0xff, sector, b->data, 1, 0); + c = ide_start_rw(b->dev & 0xff, sector, b->data, 1, 0); sleep (c, &ide_lock); ide_finish(c); b->flags |= B_VALID; |