SCCS-vsn: sys/vax/uba/uba.c 4.58
-/* uba.c 4.57 82/11/13 */
+/* uba.c 4.58 82/11/26 */
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/param.h"
#include "../h/systm.h"
return (0);
}
uh->uh_mrwant++;
return (0);
}
uh->uh_mrwant++;
- sleep((caddr_t)uh->uh_map, PSWP);
+ sleep((caddr_t)&uh->uh_mrwant, PSWP);
}
bdp = 0;
if (flags & UBA_NEEDBDP) {
}
bdp = 0;
if (flags & UBA_NEEDBDP) {
return (0);
}
uh->uh_bdpwant++;
return (0);
}
uh->uh_bdpwant++;
- sleep((caddr_t)uh->uh_map, PSWP);
+ sleep((caddr_t)&uh->uh_bdpwant, PSWP);
}
uh->uh_bdpfree &= ~(1 << (bdp-1));
} else if (flags & UBA_HAVEBDP)
}
uh->uh_bdpfree &= ~(1 << (bdp-1));
} else if (flags & UBA_HAVEBDP)
uh->uh_bdpfree |= 1 << (bdp-1); /* atomic */
if (uh->uh_bdpwant) {
uh->uh_bdpwant = 0;
uh->uh_bdpfree |= 1 << (bdp-1); /* atomic */
if (uh->uh_bdpwant) {
uh->uh_bdpwant = 0;
- wakeup((caddr_t)uh->uh_map);
+ wakeup((caddr_t)&uh->uh_bdpwant);
*/
if (uh->uh_mrwant) {
uh->uh_mrwant = 0;
*/
if (uh->uh_mrwant) {
uh->uh_mrwant = 0;
- wakeup((caddr_t)uh->uh_map);
+ wakeup((caddr_t)&uh->uh_mrwant);
}
while (uh->uh_actf && ubago(uh->uh_actf))
;
}
while (uh->uh_actf && ubago(uh->uh_actf))
;