From owner-freebsd-bugs Sun Jun 3 2:20: 6 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id C6A1E37B401 for ; Sun, 3 Jun 2001 02:20:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f539K3m84933; Sun, 3 Jun 2001 02:20:03 -0700 (PDT) (envelope-from gnats) Date: Sun, 3 Jun 2001 02:20:03 -0700 (PDT) Message-Id: <200106030920.f539K3m84933@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Philipp Mergenthaler Subject: Re: kern/9408: parameter reversed to a pci_cfgwrite in pcisupport.c Reply-To: Philipp Mergenthaler Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR kern/9408; it has been noted by GNATS. From: Philipp Mergenthaler To: freebsd-gnats-submit@FreeBSD.org, sbauer@silver.sdsmt.edu Cc: Subject: Re: kern/9408: parameter reversed to a pci_cfgwrite in pcisupport.c Date: Sun, 3 Jun 2001 11:14:10 +0200 pcisupport.c is in the attic; this code is now in sys/dev/pci/fixup_pci.c. Here's an updated patch. Bye, Philipp Index: fixup_pci.c =================================================================== RCS file: /ncvs/src/sys/dev/pci/fixup_pci.c,v retrieving revision 1.2 diff -u -r1.2 fixup_pci.c --- fixup_pci.c 2000/12/12 13:11:42 1.2 +++ fixup_pci.c 2001/06/03 08:48:40 @@ -88,13 +88,13 @@ if (pmccfg & 0x8000) { printf("Correcting Natoma config for SMP\n"); pmccfg &= ~0x8000; - pci_write_config(dev, 0x50, 2, pmccfg); + pci_write_config(dev, 0x50, pmccfg, 2); } #else if ((pmccfg & 0x8000) == 0) { printf("Correcting Natoma config for non-SMP\n"); pmccfg |= 0x8000; - pci_write_config(dev, 0x50, 2, pmccfg); + pci_write_config(dev, 0x50, pmccfg, 2); } #endif } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message