From owner-p4-projects@FreeBSD.ORG Mon Nov 7 22:22:13 2005 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 3DAB516A423; Mon, 7 Nov 2005 22:22:12 +0000 (GMT) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 14E8516A420 for ; Mon, 7 Nov 2005 22:22:12 +0000 (GMT) (envelope-from peter@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E8DD643DA4 for ; Mon, 7 Nov 2005 22:21:52 +0000 (GMT) (envelope-from peter@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id jA7MLqe2028898 for ; Mon, 7 Nov 2005 22:21:52 GMT (envelope-from peter@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id jA7MLq4S028895 for perforce@freebsd.org; Mon, 7 Nov 2005 22:21:52 GMT (envelope-from peter@freebsd.org) Date: Mon, 7 Nov 2005 22:21:52 GMT Message-Id: <200511072221.jA7MLq4S028895@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to peter@freebsd.org using -f From: Peter Wemm To: Perforce Change Reviews Cc: Subject: PERFORCE change 86440 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Nov 2005 22:22:13 -0000 http://perforce.freebsd.org/chv.cgi?CH=86440 Change 86440 by peter@peter_daintree on 2005/11/07 22:21:39 IFC @86439 Affected files ... .. //depot/projects/hammer/sbin/kldconfig/kldconfig.c#6 integrate .. //depot/projects/hammer/sys/dev/acpica/acpi.c#66 integrate .. //depot/projects/hammer/sys/dev/acpica/acpi_pcib.c#28 integrate .. //depot/projects/hammer/sys/dev/acpica/acpi_resource.c#21 integrate .. //depot/projects/hammer/sys/dev/si/sireg.h#3 integrate .. //depot/projects/hammer/usr.sbin/config/configvers.h#9 integrate Differences ... ==== //depot/projects/hammer/sbin/kldconfig/kldconfig.c#6 (text+ko) ==== @@ -25,7 +25,7 @@ */ #include -__FBSDID("$FreeBSD: src/sbin/kldconfig/kldconfig.c,v 1.7 2005/02/10 09:19:29 ru Exp $"); +__FBSDID("$FreeBSD: src/sbin/kldconfig/kldconfig.c,v 1.8 2005/11/07 19:22:20 ru Exp $"); #include #include @@ -270,7 +270,7 @@ while ((p = strsep(&path, ";")) != NULL) if (!uniq) { - if (((pe = malloc(sizeof(pe))) == NULL) || + if (((pe = malloc(sizeof(*pe))) == NULL) || ((pe->path = strdup(p)) == NULL)) { errno = ENOMEM; err(1, "allocating path element"); ==== //depot/projects/hammer/sys/dev/acpica/acpi.c#66 (text+ko) ==== @@ -28,7 +28,7 @@ */ #include -__FBSDID("$FreeBSD: src/sys/dev/acpica/acpi.c,v 1.217 2005/11/01 22:44:07 jkim Exp $"); +__FBSDID("$FreeBSD: src/sys/dev/acpica/acpi.c,v 1.219 2005/11/07 21:52:06 jhb Exp $"); #include "opt_acpi.h" #include ==== //depot/projects/hammer/sys/dev/acpica/acpi_pcib.c#28 (text+ko) ==== @@ -26,7 +26,7 @@ */ #include -__FBSDID("$FreeBSD: src/sys/dev/acpica/acpi_pcib.c,v 1.57 2005/09/11 18:39:01 obrien Exp $"); +__FBSDID("$FreeBSD: src/sys/dev/acpica/acpi_pcib.c,v 1.58 2005/11/07 21:48:45 jhb Exp $"); #include "opt_acpi.h" #include @@ -96,6 +96,13 @@ if (entry->Source == NULL || entry->Source[0] == '\0') return; + /* + * In practice, we only see SourceIndex's of 0 out in the wild. + * When indices != 0 have been found, they've been bugs in the ASL. + */ + if (entry->SourceIndex != 0) + return; + /* Lookup the associated handle and device. */ pcib = (device_t)arg; if (ACPI_FAILURE(AcpiGetHandle(ACPI_ROOT_OBJECT, entry->Source, &handle))) @@ -236,8 +243,12 @@ /* * If source is empty/NULL, the source index is a global IRQ number * and it's hard-wired so we're done. + * + * XXX: If the source index is non-zero, ignore the source device and + * assume that this is a hard-wired entry. */ - if (prt->Source == NULL || prt->Source[0] == '\0') { + if (prt->Source == NULL || prt->Source[0] == '\0' || + prt->SourceIndex != 0) { if (bootverbose) device_printf(pcib, "slot %d INT%c hardwired to IRQ %d\n", pci_get_slot(dev), 'A' + pin, prt->SourceIndex); ==== //depot/projects/hammer/sys/dev/acpica/acpi_resource.c#21 (text+ko) ==== @@ -26,7 +26,7 @@ */ #include -__FBSDID("$FreeBSD: src/sys/dev/acpica/acpi_resource.c,v 1.36 2005/11/01 22:44:07 jkim Exp $"); +__FBSDID("$FreeBSD: src/sys/dev/acpica/acpi_resource.c,v 1.38 2005/11/07 21:52:06 jhb Exp $"); #include "opt_acpi.h" #include ==== //depot/projects/hammer/sys/dev/si/sireg.h#3 (text+ko) ==== @@ -30,7 +30,7 @@ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN * NO EVENT SHALL THE AUTHORS BE LIABLE. * - * $FreeBSD: src/sys/dev/si/sireg.h,v 1.10 2005/01/06 01:43:14 imp Exp $ + * $FreeBSD: src/sys/dev/si/sireg.h,v 1.11 2005/11/07 21:53:58 jhb Exp $ */ /* @@ -62,14 +62,14 @@ #define SIEISAIOSIZE 0x100 /* XXX How many ports */ /* SI old PCI */ -#define SIPCIBADR 0x10 /* Which BADR to map in RAM */ +#define SIPCIBADR PCIR_BAR(0) /* Which BADR to map in RAM */ #define SIPCI_MEMSIZE 0x100000 /* Mapping size */ #define SIPCIRESET 0xc0001 /* 0 = Reset */ #define SIPCIINTCL 0x40001 /* 0 = clear int */ /* SI Jet PCI */ -#define SIJETSSIDREG 0x2c /* Is it an SX or RIO? */ -#define SIJETBADR 0x18 /* Which BADR to map in RAM */ +#define SIJETSSIDREG PCIR_SUBVEND_0 /* Is it an SX or RIO? */ +#define SIJETBADR PCIR_BAR(2) /* Which BADR to map in RAM */ /* SI Jet PCI & ISA */ #define SIJETIDBASE 0x7c00 /* ID ROM base */ #define SISPLXID 0x984d /* Specialix ID */ ==== //depot/projects/hammer/usr.sbin/config/configvers.h#9 (text+ko) ==== @@ -7,7 +7,7 @@ * libs or param.h/osreldate. * * It is the version number of the protocol between config(8) and the - * sys/conf/* Makefiles (the kernel build system). + * sys/conf/ Makefiles (the kernel build system). * * It is now also used to trap certain problems that the syntax parser cannot * detect. @@ -25,7 +25,7 @@ * The people that are inconvenienced by gratuitous bumps are developers * who run config by hand. * - * $FreeBSD: src/usr.sbin/config/configvers.h,v 1.39 2005/11/07 17:37:27 peter Exp $ + * $FreeBSD: src/usr.sbin/config/configvers.h,v 1.40 2005/11/07 18:45:46 rwatson Exp $ */ #define CONFIGVERS 600003