MacBookPro 5,1

Andriy Gapon avg at icyb.net.ua
Fri Oct 29 05:51:15 UTC 2010


on 29/10/2010 08:23 Andriy Gapon said the following:
> on 29/10/2010 08:19 Andriy Gapon said the following:
[snip]
>> l_prs_template is populated in link_add_prs() function, which called to walk
>> over resources returned by _PRS:
>> http://fxr.watson.org/fxr/source/dev/acpica/acpi_pci_link.c#L499
>> http://fxr.watson.org/fxr/source/dev/acpica/acpi_pci_link.c#L269
>> http://fxr.watson.org/fxr/source/dev/acpica/acpi_pci_link.c#L324
>>
>> So, it would seem that those incorrect lengths would come from evaluation of
>> _PRS by ACPICA code.  But that's probably a naive conclusion, it could be that
>> we incorrectly manipulate a received resource.

I guess that a general problem here is that it is incorrect to merely use
memcpy/bcopy to create a copy of a resource if the resource has
ACPI_RESOURCE_SOURCE field in it.

Is there a helper function for making such a copy?

-- 
Andriy Gapon


More information about the freebsd-acpi mailing list