printf("biomask 0x%x netmask 0x%x ttymask 0x%x\n",
printf("biomask 0x%lx netmask 0x%lx ttymask 0x%lx\n",
cpu_intr_init(void){	u_long mask = cpu_mask | SOFTINT_MASK;	struct hppa_iv *iv;	int level, bit;	/* map the shared ints */	while (intr_list) {		iv = intr_list;		intr_list = iv->next;		bit = ffs(imask[(int)iv->pri]);		if (!bit--) {			bit = ffs(~mask);			if (!bit--)				panic("cpu_intr_init: out of bits");			iv->bit = 31 - bit;			iv->next = NULL;			intr_table[bit] = *iv;			mask |= (1 << bit);			imask[(int)iv->pri] |= (1 << bit);		} else {			iv->bit = 31 - bit;			iv->next = intr_table[bit].next;			intr_table[bit].next = iv;		}	}	for (level = 0; level < NIPL - 1; level++)		imask[level + 1] |= imask[level];	printf("biomask 0x%x netmask 0x%x ttymask 0x%x\n",	    imask[IPL_BIO], imask[IPL_NET], imask[IPL_TTY]);	/* XXX the whacky trick is to prevent hardclock from happenning */	mfctl(CR_ITMR, mask);	mtctl(mask - 1, CR_ITMR);	mtctl(cpu_mask, CR_EIEM);	/* ack the unwanted interrupts */	mfctl(CR_EIRR, mask);	mtctl(mask & (1 << 31), CR_EIRR);	/* in spl*() we trust, clock is started in initclocks() */	kpsw |= PSL_I;	ssm(PSL_I, mask);}