diff options
| author | Frans Kaashoek <kaashoek@30-93-167.dynamic.csail.mit.edu> | 2009-12-01 14:07:12 -0500 | 
|---|---|---|
| committer | Frans Kaashoek <kaashoek@30-93-167.dynamic.csail.mit.edu> | 2009-12-01 14:07:12 -0500 | 
| commit | 7d7465a8581e672b073b3cbf83f1460cb86aed16 (patch) | |
| tree | acabf9293b3580c4dcf6b87afbf8673bcd18550c | |
| parent | 5e710e688ee946ba2557bb0c924063105ff7a99b (diff) | |
| download | xv6-labs-7d7465a8581e672b073b3cbf83f1460cb86aed16.tar.gz xv6-labs-7d7465a8581e672b073b3cbf83f1460cb86aed16.tar.bz2 xv6-labs-7d7465a8581e672b073b3cbf83f1460cb86aed16.zip | |
8ae0 instead of 8e00, thanks yandong
| -rw-r--r-- | bio.c | 1 | ||||
| -rw-r--r-- | bootasm.S | 2 | ||||
| -rw-r--r-- | bootother.S | 2 | ||||
| -rw-r--r-- | file.c | 1 | 
4 files changed, 4 insertions, 2 deletions
| @@ -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; @@ -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 @@ -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); | 
