-/* $OpenBSD: intr.c,v 1.21 2008/06/26 05:42:10 ray Exp $ */
+/* $OpenBSD: intr.c,v 1.22 2008/07/18 21:39:14 miod Exp $ */
/* $NetBSD: intr.c,v 1.5 1998/02/16 20:58:30 thorpej Exp $ */
/*-
/*
* Default interrupt priorities.
- * IPL_BIO, IPL_NET, IPL_TTY and IPL_VM will be adjusted when devices attach.
+ * IPL_BIO, IPL_NET and IPL_TTY will be adjusted when devices attach.
*/
u_short hp300_varpsl[NISR] = {
PSL_S | PSL_IPL0, /* IPL_NONE */
PSL_S | PSL_IPL3, /* IPL_BIO */
PSL_S | PSL_IPL3, /* IPL_NET */
PSL_S | PSL_IPL3, /* IPL_TTY */
- PSL_S | PSL_IPL3, /* IPL_VM */
+ PSL_S | PSL_IPL5, /* IPL_VM */
PSL_S | PSL_IPL6, /* IPL_CLOCK */
PSL_S | PSL_IPL7 /* IPL_HIGH */
};
/* Start with low values. */
hp300_varpsl[IPL_BIO] = hp300_varpsl[IPL_NET] =
- hp300_varpsl[IPL_TTY] = hp300_varpsl[IPL_VM] = PSL_S | PSL_IPL3;
+ hp300_varpsl[IPL_TTY] = PSL_S | PSL_IPL3;
for (ipl = 0; ipl < NISR; ipl++) {
LIST_FOREACH(isr, &isr_list[ipl], isr_link) {
if (hp300_varpsl[IPL_TTY] < hp300_varpsl[IPL_NET])
hp300_varpsl[IPL_TTY] = hp300_varpsl[IPL_NET];
-
- if (hp300_varpsl[IPL_VM] < hp300_varpsl[IPL_TTY])
- hp300_varpsl[IPL_VM] = hp300_varpsl[IPL_TTY];
}
void
{
#ifdef DEBUG
- printf("psl: bio = 0x%x, net = 0x%x, tty = 0x%x, vm = 0x%x\n",
+ printf("psl: bio = 0x%x, net = 0x%x, tty = 0x%x\n",
hp300_varpsl[IPL_BIO], hp300_varpsl[IPL_NET],
- hp300_varpsl[IPL_TTY], hp300_varpsl[IPL_VM]);
+ hp300_varpsl[IPL_TTY]);
#endif
printf("interrupt levels: bio = %d, net = %d, tty = %d\n",
-/* $OpenBSD: intr.h,v 1.23 2008/06/26 05:42:10 ray Exp $ */
+/* $OpenBSD: intr.h,v 1.24 2008/07/18 21:39:16 miod Exp $ */
/* $NetBSD: intr.h,v 1.2 1997/07/24 05:43:08 scottr Exp $ */
/*-
#define spltty() _splraise(hp300_varpsl[IPL_TTY])
#define splclock() _splraise(PSL_S | PSL_IPL6)
#define splstatclock() _splraise(PSL_S | PSL_IPL6)
-#define splvm() _splraise(hp300_varpsl[IPL_VM])
+#define splvm() _splraise(PSL_S | PSL_IPL5)
#define splhigh() _spl(PSL_S | PSL_IPL7)
#define splsched() splhigh()