Date: Sun, 3 Jun 2001 02:20:03 -0700 (PDT) From: Philipp Mergenthaler <philipp.mergenthaler@stud.uni-karlsruhe.de> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/9408: parameter reversed to a pci_cfgwrite in pcisupport.c Message-ID: <200106030920.f539K3m84933@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/9408; it has been noted by GNATS. From: Philipp Mergenthaler <philipp.mergenthaler@stud.uni-karlsruhe.de> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106030920.f539K3m84933>