diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-05-19 19:11:43 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-05-19 19:11:43 +0000 |
commit | f7db40e81e5e63bdd1596046e4813bbc45a75d79 (patch) | |
tree | df8a383bb6f87d10d463b9214dcdc283c3db74cc /sys/arch/socppc/dev | |
parent | 8d7ba68abb3d8e361a7ea948d0e60d45a7fcdd0c (diff) |
Add support for TSEC interrupts.
Diffstat (limited to 'sys/arch/socppc/dev')
-rw-r--r-- | sys/arch/socppc/dev/ipic.c | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/sys/arch/socppc/dev/ipic.c b/sys/arch/socppc/dev/ipic.c index ed6706289fe..82d8f91dc12 100644 --- a/sys/arch/socppc/dev/ipic.c +++ b/sys/arch/socppc/dev/ipic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipic.c,v 1.2 2008/05/13 21:53:32 miod Exp $ */ +/* $OpenBSD: ipic.c,v 1.3 2008/05/19 19:11:42 kettenis Exp $ */ /* * Copyright (c) 2008 Mark Kettenis @@ -128,6 +128,18 @@ ipic_simsr_h(int ivec) return 0x00000080; case 10: return 0x00000040; + case 32: + return 0x80000000; + case 33: + return 0x40000000; + case 34: + return 0x20000000; + case 35: + return 0x10000000; + case 36: + return 0x0800000; + case 37: + return 0x04000000; case 39: return 0x01000000; } @@ -194,20 +206,20 @@ intr_calculatemasks(void) sc->sc_simsr_h[IPL_NET] |= sc->sc_simsr_h[IPL_BIO]; sc->sc_simsr_h[IPL_TTY] |= sc->sc_simsr_h[IPL_NET]; sc->sc_simsr_h[IPL_VM] |= sc->sc_simsr_h[IPL_TTY]; - sc->sc_simsr_h[IPL_NET] |= sc->sc_simsr_h[IPL_VM]; - sc->sc_simsr_h[IPL_HIGH] |= sc->sc_simsr_h[IPL_NET]; + sc->sc_simsr_h[IPL_CLOCK] |= sc->sc_simsr_h[IPL_VM]; + sc->sc_simsr_h[IPL_HIGH] |= sc->sc_simsr_h[IPL_CLOCK]; sc->sc_simsr_l[IPL_NET] |= sc->sc_simsr_l[IPL_BIO]; sc->sc_simsr_l[IPL_TTY] |= sc->sc_simsr_l[IPL_NET]; sc->sc_simsr_l[IPL_VM] |= sc->sc_simsr_l[IPL_TTY]; - sc->sc_simsr_l[IPL_NET] |= sc->sc_simsr_l[IPL_VM]; - sc->sc_simsr_l[IPL_HIGH] |= sc->sc_simsr_l[IPL_NET]; + sc->sc_simsr_l[IPL_CLOCK] |= sc->sc_simsr_l[IPL_VM]; + sc->sc_simsr_l[IPL_HIGH] |= sc->sc_simsr_l[IPL_CLOCK]; sc->sc_semsr[IPL_NET] |= sc->sc_semsr[IPL_BIO]; sc->sc_semsr[IPL_TTY] |= sc->sc_semsr[IPL_NET]; sc->sc_semsr[IPL_VM] |= sc->sc_semsr[IPL_TTY]; - sc->sc_semsr[IPL_NET] |= sc->sc_semsr[IPL_VM]; - sc->sc_semsr[IPL_HIGH] |= sc->sc_semsr[IPL_NET]; + sc->sc_semsr[IPL_CLOCK] |= sc->sc_semsr[IPL_VM]; + sc->sc_semsr[IPL_HIGH] |= sc->sc_semsr[IPL_CLOCK]; } void * |