From 7d7465a8581e672b073b3cbf83f1460cb86aed16 Mon Sep 17 00:00:00 2001 From: Frans Kaashoek Date: Tue, 1 Dec 2009 14:07:12 -0500 Subject: [PATCH] 8ae0 instead of 8e00, thanks yandong --- bio.c | 1 + bootasm.S | 2 +- bootother.S | 2 +- file.c | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bio.c b/bio.c index 6a3968b..c746478 100644 --- a/bio.c +++ b/bio.c @@ -109,6 +109,7 @@ bread(uint dev, uint sector) void bwrite(struct buf *b) { + cprintf("bwrite sector %d\n", b->sector); if((b->flags & B_BUSY) == 0) panic("bwrite"); b->flags |= B_DIRTY; diff --git a/bootasm.S b/bootasm.S index 0d8f2a5..059cc1b 100644 --- a/bootasm.S +++ b/bootasm.S @@ -75,7 +75,7 @@ start32: movw $0x8a00, %ax # 0x8a00 -> port 0x8a00 movw %ax, %dx outw %ax, %dx - movw $0x8e00, %ax # 0x8e00 -> port 0x8a00 + movw $0x8ae0, %ax # 0x8ae0 -> port 0x8a00 outw %ax, %dx spin: jmp spin diff --git a/bootother.S b/bootother.S index 9005d48..11d32f1 100644 --- a/bootother.S +++ b/bootother.S @@ -69,7 +69,7 @@ start32: movw $0x8a00, %ax # 0x8a00 -> port 0x8a00 movw %ax, %dx outw %ax, %dx - movw $0x8e00, %ax # 0x8e00 -> port 0x8a00 + movw $0x8ae0, %ax # 0x8ae0 -> port 0x8a00 outw %ax, %dx spin: jmp spin diff --git a/file.c b/file.c index e10b824..9b29d08 100644 --- a/file.c +++ b/file.c @@ -116,6 +116,7 @@ filewrite(struct file *f, char *addr, int n) return pipewrite(f->pipe, addr, n); if(f->type == FD_INODE){ ilock(f->ip); + cprintf("filewrite: %d\n", n); if((r = writei(f->ip, addr, f->off, n)) > 0) f->off += r; iunlock(f->ip);