Make cross reference with text work
This commit is contained in:
parent
6f2327580f
commit
8a9b6dbd44
1 changed files with 2 additions and 2 deletions
4
ide.c
4
ide.c
|
@ -134,11 +134,11 @@ iderw(struct buf *b)
|
||||||
if(b->dev != 0 && !havedisk1)
|
if(b->dev != 0 && !havedisk1)
|
||||||
panic("iderw: ide disk 1 not present");
|
panic("iderw: ide disk 1 not present");
|
||||||
|
|
||||||
acquire(&idelock);
|
acquire(&idelock); // DOC:acquire-lock
|
||||||
|
|
||||||
// Append b to idequeue.
|
// Append b to idequeue.
|
||||||
b->qnext = 0;
|
b->qnext = 0;
|
||||||
for(pp=&idequeue; *pp; pp=&(*pp)->qnext)
|
for(pp=&idequeue; *pp; pp=&(*pp)->qnext) // DOC:insert-queue
|
||||||
;
|
;
|
||||||
*pp = b;
|
*pp = b;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue