From 98da2f9c504d7f8e2ea3836f9b697b40ea271f9d Mon Sep 17 00:00:00 2001 From: drochner Date: Tue, 15 Jan 2008 00:24:47 +0000 Subject: fix some unaligned PCI config space accesses in suspend/resume functions --- sys/dev/pci/piixide.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/pci/piixide.c b/sys/dev/pci/piixide.c index 4e04ddb7ae6..d8a6c2449c4 100644 --- a/sys/dev/pci/piixide.c +++ b/sys/dev/pci/piixide.c @@ -1,4 +1,4 @@ -/* $NetBSD: piixide.c,v 1.43 2008/01/04 00:27:27 joerg Exp $ */ +/* $NetBSD: piixide.c,v 1.44 2008/01/15 00:24:47 drochner Exp $ */ /* * Copyright (c) 1999, 2000, 2001 Manuel Bouyer. @@ -30,7 +30,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: piixide.c,v 1.43 2008/01/04 00:27:27 joerg Exp $"); +__KERNEL_RCSID(0, "$NetBSD: piixide.c,v 1.44 2008/01/15 00:24:47 drochner Exp $"); #include #include @@ -289,7 +289,7 @@ piixide_resume(device_t dv) pci_conf_write(sc->sc_pc, sc->sc_tag, PIIX_IDETIM, sc->sc_pm_reg[0]); - pci_conf_write(sc->sc_pc, sc->sc_tag, PIIX_UDMATIM, + pci_conf_write(sc->sc_pc, sc->sc_tag, PIIX_UDMAREG, sc->sc_pm_reg[1]); return true; @@ -303,7 +303,7 @@ piixide_suspend(device_t dv) sc->sc_pm_reg[0] = pci_conf_read(sc->sc_pc, sc->sc_tag, PIIX_IDETIM); sc->sc_pm_reg[1] = pci_conf_read(sc->sc_pc, sc->sc_tag, - PIIX_UDMATIM); + PIIX_UDMAREG); return true; } -- cgit