From aea63d1e76e7c3e4b8eee596a22e305243c847b7 Mon Sep 17 00:00:00 2001 From: yokota Date: Sun, 9 May 1999 04:58:35 +0000 Subject: Revive APM hooking code for i386 arch now that the same source file is used for both i386 and alpha (the code was in sys/i386/isa/psm.c, but was disabled when ported to alpha.) --- sys/isa/psm.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'sys/isa/psm.c') diff --git a/sys/isa/psm.c b/sys/isa/psm.c index c6f69a7..58550b8 100644 --- a/sys/isa/psm.c +++ b/sys/isa/psm.c @@ -20,7 +20,7 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: psm.c,v 1.6 1999/05/07 10:10:40 phk Exp $ + * $Id: psm.c,v 1.7 1999/05/08 21:59:29 dfr Exp $ */ /* @@ -62,7 +62,9 @@ */ #include "psm.h" -/* #include "apm.h" */ +#ifdef __i386__ +#include "apm.h" +#endif #include "opt_devfs.h" #include "opt_psm.h" @@ -85,6 +87,9 @@ #include #include +#ifdef __i386__ +#include +#endif #include #include #include @@ -2176,7 +2181,7 @@ enable_msintelli(struct psm_softc *sc) static int psmresume(void *dummy) { - struct psm_softc *sc = psm_softc[(int)dummy]; + struct psm_softc *sc = PSM_SOFTC((int)dummy); int unit = (int)dummy; int err = 0; int s; -- cgit v1.1