Skip to content

Commit

Permalink
8ae0 instead of 8e00, thanks yandong
Browse files Browse the repository at this point in the history
  • Loading branch information
Frans Kaashoek committed Dec 1, 2009
1 parent 5e710e6 commit 7d7465a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions bio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion bootasm.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bootother.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7d7465a

Please sign in to comment.