summaryrefslogtreecommitdiff
path: root/sys/arch/socppc/dev
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2009-09-12 21:38:02 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2009-09-12 21:38:02 +0000
commitdd25a7e9d354e3b96572c0944f27017ae0b4cd23 (patch)
tree3d7e47dba9b474da78f7e05f7dc1ce885ead27d7 /sys/arch/socppc/dev
parent4ff8478e2f348d5ecc652e1fe87f1192d0454cc8 (diff)
Initialize global pointer to interrupt controller softc earlier such that we
don't crash if we unmask a preconfigured interrupt.
Diffstat (limited to 'sys/arch/socppc/dev')
-rw-r--r--sys/arch/socppc/dev/ipic.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/socppc/dev/ipic.c b/sys/arch/socppc/dev/ipic.c
index 0bfec255649..5b0b59bfac6 100644
--- a/sys/arch/socppc/dev/ipic.c
+++ b/sys/arch/socppc/dev/ipic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipic.c,v 1.9 2009/09/06 20:09:34 kettenis Exp $ */
+/* $OpenBSD: ipic.c,v 1.10 2009/09/12 21:38:01 kettenis Exp $ */
/*
* Copyright (c) 2008 Mark Kettenis
@@ -115,6 +115,8 @@ ipic_attach(struct device *parent, struct device *self, void *aux)
return;
}
+ ipic_sc = sc;
+
/*
* Deal with pre-established interrupts.
*/
@@ -141,7 +143,6 @@ ipic_attach(struct device *parent, struct device *self, void *aux)
}
}
- ipic_sc = sc;
printf("\n");
}