Date: Mon, 30 Jul 2001 09:00:18 -0700 From: "neckpain@nettaxi.com" <neckpain@nettaxi.com> To: msmith@freebsd.org Cc: haro@h4.dion.ne.jp, current@freebsd.org Subject: Re: acpica malfunctions Message-ID: <200107301600.JAA12157@mail3.bigmailbox.com>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] In-Reply-To: <200107300906.f6U96Qc00674@mass.dis.org>; from msmith@freebsd.org on Mon, Jul 30, 2001 at 02:06:26AM -0700 On Mon, Jul 30, 2001 at 02:06:26AM -0700, Mike Smith wrote: > I've just committed a slightly different patch, based on a mix of your > ideas and mine (mostly yours). Thank you. Hmm, my previous patch was doing many unnecessary things... > Can you test the -current code, and let > me know what I broke this time? 8) Yes, apply the attached patch to unbrake it. :) Regards. ------------------------------------------------------------ Shop Smart Compare Prices on Name-Brand Products from Name-Brand Stores!! http://www.smartshop.com/cgi-bin/main.cgi?ssa=4099 [-- Attachment #2 --] Index: acpi.c =================================================================== RCS file: /home/cvs/src/sys/dev/acpica/acpi.c,v retrieving revision 1.28 diff -u -r1.28 acpi.c --- acpi.c 2001/07/30 08:59:43 1.28 +++ acpi.c 2001/07/30 15:23:30 @@ -1045,6 +1045,8 @@ if ((newp = AcpiOsAllocate(buf->Length * 2)) == NULL) return(AE_NO_MEMORY); bcopy(buf->Pointer, newp, buf->Length); + rp = (ACPI_RESOURCE *)((u_int8_t *)newp + + ((u_int8_t *)rp - (u_int8_t *)buf->Pointer)); AcpiOsFree(buf->Pointer); buf->Pointer = newp; buf->Length += buf->Length; Index: acpi_pcib.c =================================================================== RCS file: /home/cvs/src/sys/dev/acpica/acpi_pcib.c,v retrieving revision 1.12 diff -u -r1.12 acpi_pcib.c --- acpi_pcib.c 2001/07/30 09:01:18 1.12 +++ acpi_pcib.c 2001/07/30 15:45:04 @@ -488,7 +488,7 @@ prsres->Data.Irq.Interrupts[0], acpi_name(lnkdev), AcpiFormatException(status)); goto out; } - if (ACPI_FAILURE(status = AcpiSetCurrentResources(lnkdev, &resbuf))) { + if (ACPI_FAILURE(status = AcpiSetCurrentResources(lnkdev, &crsbuf))) { device_printf(sc->ap_dev, "couldn't route interrupt %d via %s - %s\n", prsres->Data.Irq.Interrupts[0], acpi_name(lnkdev), AcpiFormatException(status)); goto out;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200107301600.JAA12157>
