* Copyright (c) 1988 University of Utah.
* Copyright (c) 1982, 1986, 1991 The Regents of the University of California.
* %sccs.include.proprietary.c%
* from: Utah $Hdr: hil_subr.c 1.1 91/11/19$
* @(#)hil_subr.c 7.3 (Berkeley) %G%
#include <hp/dev/hilreg.h>
* XXX this file only exists to separate out the AT&T tainted code.
* This is just a copy of the virgin q_to_b routine with minor
* optimizations for HIL use. It is used because we don't have
* to raise the priority to spltty() for most of the clist manipulations.
register struct clist
*q
;
register struct cblock
*bp
;
q
->c_cf
= q
->c_cl
= NULL
;
nc
= sizeof (struct cblock
) - ((int)q
->c_cf
& CROUND
);
(void) bcopy(q
->c_cf
, cp
, (unsigned)nc
);
bp
= (struct cblock
*)(q
->c_cf
- 1);
bp
= (struct cblock
*)((int)bp
& ~CROUND
);
q
->c_cf
= q
->c_cl
= NULL
;
if (((int)q
->c_cf
& CROUND
) == 0) {
bp
= (struct cblock
*)(q
->c_cf
);
q
->c_cf
= bp
->c_next
->c_info
;