diff options
author | msmith <msmith@FreeBSD.org> | 2001-01-31 09:17:50 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 2001-01-31 09:17:50 +0000 |
commit | 7948a3a80426e7bdc0728814e72cf46852c46576 (patch) | |
tree | 5ed7785feb928c9fe57c2d7175f89660521314a4 /sys/contrib/dev/acpica/dsobject.c | |
parent | 68d9171019852e7a4325965a2539a5a2eb7571da (diff) | |
download | FreeBSD-src-7948a3a80426e7bdc0728814e72cf46852c46576.zip FreeBSD-src-7948a3a80426e7bdc0728814e72cf46852c46576.tar.gz |
Update to the 20010125 ACPI CA snapshot.
Diffstat (limited to 'sys/contrib/dev/acpica/dsobject.c')
-rw-r--r-- | sys/contrib/dev/acpica/dsobject.c | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/sys/contrib/dev/acpica/dsobject.c b/sys/contrib/dev/acpica/dsobject.c index 6e58324..870fd32 100644 --- a/sys/contrib/dev/acpica/dsobject.c +++ b/sys/contrib/dev/acpica/dsobject.c @@ -1,7 +1,7 @@ /****************************************************************************** * * Module Name: dsobject - Dispatcher object management routines - * $Revision: 54 $ + * $Revision: 56 $ * *****************************************************************************/ @@ -9,7 +9,7 @@ * * 1. Copyright Notice * - * Some or all of this work - Copyright (c) 1999, 2000, Intel Corp. + * Some or all of this work - Copyright (c) 1999, 2000, 2001, Intel Corp. * All rights reserved. * * 2. License @@ -364,7 +364,7 @@ AcpiDsInitObjectFromOp ( /* We are expecting a number */ - if (ArgDesc->Common.Type != ACPI_TYPE_NUMBER) + if (ArgDesc->Common.Type != ACPI_TYPE_INTEGER) { DEBUG_PRINT (ACPI_ERROR, ("InitObject: Expecting number, got obj: %p type %X\n", @@ -375,7 +375,7 @@ AcpiDsInitObjectFromOp ( /* Get the value, delete the internal object */ - (*ObjDesc)->Buffer.Length = (UINT32) ArgDesc->Number.Value; + (*ObjDesc)->Buffer.Length = (UINT32) ArgDesc->Integer.Value; AcpiCmRemoveReference (ArgDesc); /* Allocate the buffer */ @@ -439,8 +439,8 @@ AcpiDsInitObjectFromOp ( Status = AcpiDsBuildInternalObject (WalkState, Op, ObjDesc); break; - case ACPI_TYPE_NUMBER: - (*ObjDesc)->Number.Value = Op->Value.Integer; + case ACPI_TYPE_INTEGER: + (*ObjDesc)->Integer.Value = Op->Value.Integer; break; @@ -559,19 +559,22 @@ AcpiDsBuildInternalSimpleObj ( if (Name) { - REPORT_WARNING (("Reference %s AML %X not found\n", + REPORT_WARNING (("Reference %s at AML %X not found\n", Name, Op->AmlOffset)); AcpiCmFree (Name); } else { - REPORT_WARNING (("Reference %s AML %X not found\n", + REPORT_WARNING (("Reference %s at AML %X not found\n", Op->Value.String, Op->AmlOffset)); } *ObjDescPtr = NULL; } - return_ACPI_STATUS (Status); + else + { + return_ACPI_STATUS (Status); + } } } |