On Tuesday 08 September 2009 01:09 pm, Jung-uk Kim wrote:
On Friday 04 September 2009 06:36 pm, Moore, Robert wrote:
> Sounds like a good idea. I'll look at it next week.
Here I attached an optimized version of the patch.
> In general, we now have the capability to add these kinds of
> fixes easily, so keep your eye out for anything that can be
> repaired like this.
I found we need another patch for nspredef.c. When we repair Package
-> Buffer, the previous package is still referenced to check
sub-object type and causes trouble. I think there are three options:
1) reset ReturnObject from *ReturnObjectPtr if it is repaired, 2)
reset ReturnObject unconditionally, or 3) do not test sub-object if
the package is repaired assuming AcpiNsRepairObject() does the right
thing. The attached patch is option #1 but feel free to implement #2
or #3. :-)