diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2009-09-12 21:38:02 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2009-09-12 21:38:02 +0000 |
commit | dd25a7e9d354e3b96572c0944f27017ae0b4cd23 (patch) | |
tree | 3d7e47dba9b474da78f7e05f7dc1ce885ead27d7 /sys/arch | |
parent | 4ff8478e2f348d5ecc652e1fe87f1192d0454cc8 (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')
-rw-r--r-- | sys/arch/socppc/dev/ipic.c | 5 |
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"); } |