diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-05-22 21:39:05 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-05-22 21:39:05 +0000 |
commit | 6b186260be9e3e552abec10bc6e1d309ed94e66e (patch) | |
tree | e36032836b8d18c8325346659849c5af3c4be9c1 /sys/arch/sparc64 | |
parent | a0de249ffa69895225b9834171edd07b191eafcb (diff) |
Restrict interrupt vectors to 11 bits. Needed to make sun4us work.
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r-- | sys/arch/sparc64/sparc64/clock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sparc64/sparc64/clock.c b/sys/arch/sparc64/sparc64/clock.c index 0e317bc8892..3117d5e11f2 100644 --- a/sys/arch/sparc64/sparc64/clock.c +++ b/sys/arch/sparc64/sparc64/clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clock.c,v 1.41 2008/04/17 19:52:27 kettenis Exp $ */ +/* $OpenBSD: clock.c,v 1.42 2008/05/22 21:39:04 kettenis Exp $ */ /* $NetBSD: clock.c,v 1.41 2001/07/24 19:29:25 eeh Exp $ */ /* @@ -469,13 +469,13 @@ timerattach(parent, self, aux) timerreg_4u.t_mapintr = (int64_t *)(u_long)va[2]; /* Install the appropriate interrupt vector here */ - level10.ih_number = ma->ma_interrupts[0]; + level10.ih_number = INTVEC(ma->ma_interrupts[0]); level10.ih_clr = (void *)&timerreg_4u.t_clrintr[0]; level10.ih_map = (void *)&timerreg_4u.t_mapintr[0]; strlcpy(level10.ih_name, "clock", sizeof(level10.ih_name)); intr_establish(10, &level10); - level14.ih_number = ma->ma_interrupts[1]; + level14.ih_number = INTVEC(ma->ma_interrupts[1]); level14.ih_clr = (void *)&timerreg_4u.t_clrintr[1]; level14.ih_map = (void *)&timerreg_4u.t_mapintr[1]; strlcpy(level14.ih_name, "prof", sizeof(level14.ih_name)); |