Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95463
b: refs/heads/master
c: 8246934
h: refs/heads/master
i:
  95461: b92e639
  95459: 77bfffd
  95455: 9a1afb4
v: v3
  • Loading branch information
Lin Ming authored and Len Brown committed Apr 22, 2008
1 parent 9cca708 commit 136107d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c351f2dd542a3980e96cf128e06d19f784c5ea3e
refs/heads/master: 8246934b7cf99d1f0c053d57890775e5d0df9c33
22 changes: 17 additions & 5 deletions trunk/drivers/acpi/executer/exoparg1.c
Original file line number Diff line number Diff line change
Expand Up @@ -740,26 +740,38 @@ acpi_status acpi_ex_opcode_1A_0T_1R(struct acpi_walk_state *walk_state)
value = acpi_gbl_integer_byte_width;
break;

case ACPI_TYPE_BUFFER:
value = temp_desc->buffer.length;
break;

case ACPI_TYPE_STRING:
value = temp_desc->string.length;
break;

case ACPI_TYPE_BUFFER:

/* Buffer arguments may not be evaluated at this point */

status = acpi_ds_get_buffer_arguments(temp_desc);
value = temp_desc->buffer.length;
break;

case ACPI_TYPE_PACKAGE:

/* Package arguments may not be evaluated at this point */

status = acpi_ds_get_package_arguments(temp_desc);
value = temp_desc->package.count;
break;

default:
ACPI_ERROR((AE_INFO,
"Operand is not Buf/Int/Str/Pkg - found type %s",
"Operand must be Buffer/Integer/String/Package - found type %s",
acpi_ut_get_type_name(type)));
status = AE_AML_OPERAND_TYPE;
goto cleanup;
}

if (ACPI_FAILURE(status)) {
goto cleanup;
}

/*
* Now that we have the size of the object, create a result
* object to hold the value
Expand Down

0 comments on commit 136107d

Please sign in to comment.