]> Devi Nivas Git - cs3210-lab0.git/commitdiff
8ae0 instead of 8e00, thanks yandong
authorFrans Kaashoek <kaashoek@30-93-167.dynamic.csail.mit.edu>
Tue, 1 Dec 2009 19:07:12 +0000 (14:07 -0500)
committerFrans Kaashoek <kaashoek@30-93-167.dynamic.csail.mit.edu>
Tue, 1 Dec 2009 19:07:12 +0000 (14:07 -0500)
bio.c
bootasm.S
bootother.S
file.c

diff --git a/bio.c b/bio.c
index 6a3968b49dc4b54d0c2aa480e359c6cf022fd846..c7464780cd691b9677ae88e84d7e357d1e667533 100644 (file)
--- 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;
index 0d8f2a565695f78398dfc80702f90751a88748c9..059cc1b129c4f5281359736ae409631e5083154c 100644 (file)
--- 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
index 9005d4834647846b041b2d566839bd3428db74fc..11d32f131d24a284692711a9fed1a42acce5fc91 100644 (file)
@@ -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 e10b8249211046414a20c0f8b2a55eadf53a55fb..9b29d0891684b49c2867477b16b066c93e58d6e2 100644 (file)
--- 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);