Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Nov 2018 23:58:51 +0000 (UTC)
From:      Brooks Davis <brooks@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r340489 - head/sys/dev/pci
Message-ID:  <201811162358.wAGNwphJ024406@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brooks
Date: Fri Nov 16 23:58:51 2018
New Revision: 340489
URL: https://svnweb.freebsd.org/changeset/base/340489

Log:
  Fix freebsd32 support for PCIOCGETCONF.
  
  This fixes regresssions in pciconf -l and some ports as reported on
  freebsd-current:
  
  https://lists.freebsd.org/pipermail/freebsd-current/2018-November/072144.html
  
  Reported by:	jbeich
  Reviewed by:	kib (also proposed an idential patch)
  Tested by:	jbeich
  MFC after:	3 days
  Sponsored by:	DARPA, AFRL
  Differential Revision:	https://reviews.freebsd.org/D18011

Modified:
  head/sys/dev/pci/pci_user.c

Modified: head/sys/dev/pci/pci_user.c
==============================================================================
--- head/sys/dev/pci/pci_user.c	Fri Nov 16 23:39:39 2018	(r340488)
+++ head/sys/dev/pci/pci_user.c	Fri Nov 16 23:58:51 2018	(r340489)
@@ -945,6 +945,9 @@ pci_ioctl(struct cdev *dev, u_long cmd, caddr_t data, 
 	if (!(flag & FWRITE)) {
 		switch (cmd) {
 		case PCIOCGETCONF:
+#ifdef COMPAT_FREEBSD32
+		case PCIOCGETCONF32:
+#endif
 #ifdef PRE7_COMPAT
 		case PCIOCGETCONF_OLD:
 #ifdef COMPAT_FREEBSD32
@@ -962,6 +965,9 @@ pci_ioctl(struct cdev *dev, u_long cmd, caddr_t data, 
 
 	switch (cmd) {
 	case PCIOCGETCONF:
+#ifdef COMPAT_FREEBSD32
+		case PCIOCGETCONF32:
+#endif
 #ifdef PRE7_COMPAT
 	case PCIOCGETCONF_OLD:
 #ifdef COMPAT_FREEBSD32



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811162358.wAGNwphJ024406>