MacBookPro 5,1

Hans Petter Selasky hselasky at c2i.net
Thu Oct 21 07:25:29 UTC 2010


Hi,

I will get you the debug output from this patch in about 8 hours.

--HPS

On Thursday 21 October 2010 09:12:27 Lin Ming wrote:
> 
> Hi,
> 
> Could you apply below debug patch and attach the output?
> I'll try to reproduce this bug with the output.
> 
> It will print something like below,
> 
> Passed in resource buffer length=136
> Buffer start
> f 0 0 0 44 0 0 0 1 0 0 0 1 0 1 0 45 ee 44 0 0 0 0 0 5 0 0 0 0 0 0 0 0 0
> 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 7 0
> 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
> 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
> Buffer end
> 
> Thanks.
> 
> diff --git a/source/components/resources/rsxface.c
> b/source/components/resources/rsxface.c index 2a019d1..459ad44 100644
> --- a/source/components/resources/rsxface.c
> +++ b/source/components/resources/rsxface.c
> @@ -394,6 +394,7 @@ AcpiSetCurrentResources (
>  {
>      ACPI_STATUS             Status;
>      ACPI_NAMESPACE_NODE     *Node;
> +    UINT8                   i, *Buffer;
> 
> 
>      ACPI_FUNCTION_TRACE (AcpiSetCurrentResources);
> @@ -416,6 +417,15 @@ AcpiSetCurrentResources (
>          return_ACPI_STATUS (Status);
>      }
> 
> +    AcpiOsPrintf("Passed in resource buffer length=%d\n",
> InBuffer->Length); +    AcpiOsPrintf("Buffer start\n");
> +    Buffer = (UINT8*) InBuffer->Pointer;
> +    for (i = 0; i < (UINT8) InBuffer->Length; i++)
> +    {
> +        AcpiOsPrintf("%x ", Buffer[i]);
> +    }
> +    AcpiOsPrintf("\nBuffer end\n");
> +
>      Status = AcpiRsSetSrsMethodData (Node, InBuffer);
>      return_ACPI_STATUS (Status);
>  }


More information about the freebsd-acpi mailing list