Skip to content
Snippets Groups Projects
Commit 7d7465a8 authored by Frans Kaashoek's avatar Frans Kaashoek
Browse files

8ae0 instead of 8e00, thanks yandong

parent 5e710e68
No related branches found
No related tags found
No related merge requests found
...@@ -109,6 +109,7 @@ bread(uint dev, uint sector) ...@@ -109,6 +109,7 @@ bread(uint dev, uint sector)
void void
bwrite(struct buf *b) bwrite(struct buf *b)
{ {
cprintf("bwrite sector %d\n", b->sector);
if((b->flags & B_BUSY) == 0) if((b->flags & B_BUSY) == 0)
panic("bwrite"); panic("bwrite");
b->flags |= B_DIRTY; b->flags |= B_DIRTY;
......
...@@ -75,7 +75,7 @@ start32: ...@@ -75,7 +75,7 @@ start32:
movw $0x8a00, %ax # 0x8a00 -> port 0x8a00 movw $0x8a00, %ax # 0x8a00 -> port 0x8a00
movw %ax, %dx movw %ax, %dx
outw %ax, %dx outw %ax, %dx
movw $0x8e00, %ax # 0x8e00 -> port 0x8a00 movw $0x8ae0, %ax # 0x8ae0 -> port 0x8a00
outw %ax, %dx outw %ax, %dx
spin: spin:
jmp spin jmp spin
......
...@@ -69,7 +69,7 @@ start32: ...@@ -69,7 +69,7 @@ start32:
movw $0x8a00, %ax # 0x8a00 -> port 0x8a00 movw $0x8a00, %ax # 0x8a00 -> port 0x8a00
movw %ax, %dx movw %ax, %dx
outw %ax, %dx outw %ax, %dx
movw $0x8e00, %ax # 0x8e00 -> port 0x8a00 movw $0x8ae0, %ax # 0x8ae0 -> port 0x8a00
outw %ax, %dx outw %ax, %dx
spin: spin:
jmp spin jmp spin
......
...@@ -116,6 +116,7 @@ filewrite(struct file *f, char *addr, int n) ...@@ -116,6 +116,7 @@ filewrite(struct file *f, char *addr, int n)
return pipewrite(f->pipe, addr, n); return pipewrite(f->pipe, addr, n);
if(f->type == FD_INODE){ if(f->type == FD_INODE){
ilock(f->ip); ilock(f->ip);
cprintf("filewrite: %d\n", n);
if((r = writei(f->ip, addr, f->off, n)) > 0) if((r = writei(f->ip, addr, f->off, n)) > 0)
f->off += r; f->off += r;
iunlock(f->ip); iunlock(f->ip);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment