1 /******************************************************************************
3 * Module Name: psargs - Parse AML opcode arguments
5 *****************************************************************************/
8 * Copyright (C) 2000 - 2018, Intel Corp.
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
14 * 1. Redistributions of source code must retain the above copyright
15 * notice, this list of conditions, and the following disclaimer,
16 * without modification.
17 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
18 * substantially similar to the "NO WARRANTY" disclaimer below
19 * ("Disclaimer") and any redistribution must be conditioned upon
20 * including a substantially similar Disclaimer requirement for further
21 * binary redistribution.
22 * 3. Neither the names of the above-listed copyright holders nor the names
23 * of any contributors may be used to endorse or promote products derived
24 * from this software without specific prior written permission.
26 * Alternatively, this software may be distributed under the terms of the
27 * GNU General Public License ("GPL") version 2 as published by the Free
28 * Software Foundation.
31 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
32 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
33 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
34 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
35 * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
36 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
37 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
39 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
40 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
41 * POSSIBILITY OF SUCH DAMAGES.
44 #include <acpi/acpi.h>
50 #include "acconvert.h"
52 #define _COMPONENT ACPI_PARSER
53 ACPI_MODULE_NAME("psargs")
55 /* Local prototypes */
57 acpi_ps_get_next_package_length(struct acpi_parse_state
*parser_state
);
59 static union acpi_parse_object
*acpi_ps_get_next_field(struct acpi_parse_state
62 /*******************************************************************************
64 * FUNCTION: acpi_ps_get_next_package_length
66 * PARAMETERS: parser_state - Current parser state object
68 * RETURN: Decoded package length. On completion, the AML pointer points
69 * past the length byte or bytes.
71 * DESCRIPTION: Decode and return a package length field.
72 * Note: Largest package length is 28 bits, from ACPI specification
74 ******************************************************************************/
77 acpi_ps_get_next_package_length(struct acpi_parse_state
*parser_state
)
79 u8
*aml
= parser_state
->aml
;
80 u32 package_length
= 0;
82 u8 byte_zero_mask
= 0x3F; /* Default [0:5] */
84 ACPI_FUNCTION_TRACE(ps_get_next_package_length
);
87 * Byte 0 bits [6:7] contain the number of additional bytes
88 * used to encode the package length, either 0,1,2, or 3
90 byte_count
= (aml
[0] >> 6);
91 parser_state
->aml
+= ((acpi_size
)byte_count
+ 1);
93 /* Get bytes 3, 2, 1 as needed */
97 * Final bit positions for the package length bytes:
103 package_length
|= (aml
[byte_count
] << ((byte_count
<< 3) - 4));
105 byte_zero_mask
= 0x0F; /* Use bits [0:3] of byte 0 */
109 /* Byte 0 is a special case, either bits [0:3] or [0:5] are used */
111 package_length
|= (aml
[0] & byte_zero_mask
);
112 return_UINT32(package_length
);
115 /*******************************************************************************
117 * FUNCTION: acpi_ps_get_next_package_end
119 * PARAMETERS: parser_state - Current parser state object
121 * RETURN: Pointer to end-of-package +1
123 * DESCRIPTION: Get next package length and return a pointer past the end of
124 * the package. Consumes the package length field
126 ******************************************************************************/
128 u8
*acpi_ps_get_next_package_end(struct acpi_parse_state
*parser_state
)
130 u8
*start
= parser_state
->aml
;
133 ACPI_FUNCTION_TRACE(ps_get_next_package_end
);
135 /* Function below updates parser_state->Aml */
137 package_length
= acpi_ps_get_next_package_length(parser_state
);
139 return_PTR(start
+ package_length
); /* end of package */
142 /*******************************************************************************
144 * FUNCTION: acpi_ps_get_next_namestring
146 * PARAMETERS: parser_state - Current parser state object
148 * RETURN: Pointer to the start of the name string (pointer points into
151 * DESCRIPTION: Get next raw namestring within the AML stream. Handles all name
152 * prefix characters. Set parser state to point past the string.
153 * (Name is consumed from the AML.)
155 ******************************************************************************/
157 char *acpi_ps_get_next_namestring(struct acpi_parse_state
*parser_state
)
159 u8
*start
= parser_state
->aml
;
160 u8
*end
= parser_state
->aml
;
162 ACPI_FUNCTION_TRACE(ps_get_next_namestring
);
164 /* Point past any namestring prefix characters (backslash or carat) */
166 while (ACPI_IS_ROOT_PREFIX(*end
) || ACPI_IS_PARENT_PREFIX(*end
)) {
170 /* Decode the path prefix character */
183 case AML_DUAL_NAME_PREFIX
:
185 /* Two name segments */
187 end
+= 1 + (2 * ACPI_NAME_SIZE
);
190 case AML_MULTI_NAME_PREFIX
:
192 /* Multiple name segments, 4 chars each, count in next byte */
194 end
+= 2 + (*(end
+ 1) * ACPI_NAME_SIZE
);
199 /* Single name segment */
201 end
+= ACPI_NAME_SIZE
;
205 parser_state
->aml
= end
;
206 return_PTR((char *)start
);
209 /*******************************************************************************
211 * FUNCTION: acpi_ps_get_next_namepath
213 * PARAMETERS: parser_state - Current parser state object
214 * arg - Where the namepath will be stored
215 * arg_count - If the namepath points to a control method
216 * the method's argument is returned here.
217 * possible_method_call - Whether the namepath can possibly be the
218 * start of a method call
222 * DESCRIPTION: Get next name (if method call, return # of required args).
223 * Names are looked up in the internal namespace to determine
224 * if the name represents a control method. If a method
225 * is found, the number of arguments to the method is returned.
226 * This information is critical for parsing to continue correctly.
228 ******************************************************************************/
231 acpi_ps_get_next_namepath(struct acpi_walk_state
*walk_state
,
232 struct acpi_parse_state
*parser_state
,
233 union acpi_parse_object
*arg
, u8 possible_method_call
)
237 union acpi_parse_object
*name_op
;
238 union acpi_operand_object
*method_desc
;
239 struct acpi_namespace_node
*node
;
240 u8
*start
= parser_state
->aml
;
242 ACPI_FUNCTION_TRACE(ps_get_next_namepath
);
244 path
= acpi_ps_get_next_namestring(parser_state
);
245 acpi_ps_init_op(arg
, AML_INT_NAMEPATH_OP
);
247 /* Null path case is allowed, just exit */
250 arg
->common
.value
.name
= path
;
251 return_ACPI_STATUS(AE_OK
);
255 * Lookup the name in the internal namespace, starting with the current
256 * scope. We don't want to add anything new to the namespace here,
257 * however, so we use MODE_EXECUTE.
258 * Allow searching of the parent tree, but don't open a new scope -
259 * we just want to lookup the object (must be mode EXECUTE to perform
262 status
= acpi_ns_lookup(walk_state
->scope_info
, path
,
263 ACPI_TYPE_ANY
, ACPI_IMODE_EXECUTE
,
264 ACPI_NS_SEARCH_PARENT
| ACPI_NS_DONT_OPEN_SCOPE
,
268 * If this name is a control method invocation, we must
269 * setup the method call
271 if (ACPI_SUCCESS(status
) &&
272 possible_method_call
&& (node
->type
== ACPI_TYPE_METHOD
)) {
273 if ((GET_CURRENT_ARG_TYPE(walk_state
->arg_types
) ==
275 || (GET_CURRENT_ARG_TYPE(walk_state
->arg_types
) ==
278 * acpi_ps_get_next_namestring has increased the AML pointer past
279 * the method invocation namestring, so we need to restore the
280 * saved AML pointer back to the original method invocation
283 walk_state
->parser_state
.aml
= start
;
284 walk_state
->arg_count
= 1;
285 acpi_ps_init_op(arg
, AML_INT_METHODCALL_OP
);
288 /* This name is actually a control method invocation */
290 method_desc
= acpi_ns_get_attached_object(node
);
291 ACPI_DEBUG_PRINT((ACPI_DB_PARSE
,
292 "Control Method invocation %4.4s - %p Desc %p Path=%p\n",
293 node
->name
.ascii
, node
, method_desc
, path
));
295 name_op
= acpi_ps_alloc_op(AML_INT_NAMEPATH_OP
, start
);
297 return_ACPI_STATUS(AE_NO_MEMORY
);
300 /* Change Arg into a METHOD CALL and attach name to it */
302 acpi_ps_init_op(arg
, AML_INT_METHODCALL_OP
);
303 name_op
->common
.value
.name
= path
;
305 /* Point METHODCALL/NAME to the METHOD Node */
307 name_op
->common
.node
= node
;
308 acpi_ps_append_arg(arg
, name_op
);
312 "Control Method %p has no attached object",
314 return_ACPI_STATUS(AE_AML_INTERNAL
);
317 ACPI_DEBUG_PRINT((ACPI_DB_PARSE
,
318 "Control Method - %p Args %X\n",
319 node
, method_desc
->method
.param_count
));
321 /* Get the number of arguments to expect */
323 walk_state
->arg_count
= method_desc
->method
.param_count
;
324 return_ACPI_STATUS(AE_OK
);
328 * Special handling if the name was not found during the lookup -
329 * some not_found cases are allowed
331 if (status
== AE_NOT_FOUND
) {
333 /* 1) not_found is ok during load pass 1/2 (allow forward references) */
335 if ((walk_state
->parse_flags
& ACPI_PARSE_MODE_MASK
) !=
336 ACPI_PARSE_EXECUTE
) {
340 /* 2) not_found during a cond_ref_of(x) is ok by definition */
342 else if (walk_state
->op
->common
.aml_opcode
==
343 AML_CONDITIONAL_REF_OF_OP
) {
348 * 3) not_found while building a Package is ok at this point, we
349 * may flag as an error later if slack mode is not enabled.
350 * (Some ASL code depends on allowing this behavior)
352 else if ((arg
->common
.parent
) &&
353 ((arg
->common
.parent
->common
.aml_opcode
==
355 || (arg
->common
.parent
->common
.aml_opcode
==
356 AML_VARIABLE_PACKAGE_OP
))) {
361 /* Final exception check (may have been changed from code above) */
363 if (ACPI_FAILURE(status
)) {
364 ACPI_ERROR_NAMESPACE(walk_state
->scope_info
, path
, status
);
366 if ((walk_state
->parse_flags
& ACPI_PARSE_MODE_MASK
) ==
367 ACPI_PARSE_EXECUTE
) {
369 /* Report a control method execution error */
371 status
= acpi_ds_method_error(status
, walk_state
);
375 /* Save the namepath */
377 arg
->common
.value
.name
= path
;
378 return_ACPI_STATUS(status
);
381 /*******************************************************************************
383 * FUNCTION: acpi_ps_get_next_simple_arg
385 * PARAMETERS: parser_state - Current parser state object
386 * arg_type - The argument type (AML_*_ARG)
387 * arg - Where the argument is returned
391 * DESCRIPTION: Get the next simple argument (constant, string, or namestring)
393 ******************************************************************************/
396 acpi_ps_get_next_simple_arg(struct acpi_parse_state
*parser_state
,
397 u32 arg_type
, union acpi_parse_object
*arg
)
401 u8
*aml
= parser_state
->aml
;
403 ACPI_FUNCTION_TRACE_U32(ps_get_next_simple_arg
, arg_type
);
408 /* Get 1 byte from the AML stream */
410 opcode
= AML_BYTE_OP
;
411 arg
->common
.value
.integer
= (u64
) *aml
;
417 /* Get 2 bytes from the AML stream */
419 opcode
= AML_WORD_OP
;
420 ACPI_MOVE_16_TO_64(&arg
->common
.value
.integer
, aml
);
426 /* Get 4 bytes from the AML stream */
428 opcode
= AML_DWORD_OP
;
429 ACPI_MOVE_32_TO_64(&arg
->common
.value
.integer
, aml
);
435 /* Get 8 bytes from the AML stream */
437 opcode
= AML_QWORD_OP
;
438 ACPI_MOVE_64_TO_64(&arg
->common
.value
.integer
, aml
);
444 /* Get a pointer to the string, point past the string */
446 opcode
= AML_STRING_OP
;
447 arg
->common
.value
.string
= ACPI_CAST_PTR(char, aml
);
449 /* Find the null terminator */
452 while (aml
[length
]) {
459 case ARGP_NAMESTRING
:
461 acpi_ps_init_op(arg
, AML_INT_NAMEPATH_OP
);
462 arg
->common
.value
.name
=
463 acpi_ps_get_next_namestring(parser_state
);
468 ACPI_ERROR((AE_INFO
, "Invalid ArgType 0x%X", arg_type
));
472 acpi_ps_init_op(arg
, opcode
);
473 parser_state
->aml
+= length
;
477 /*******************************************************************************
479 * FUNCTION: acpi_ps_get_next_field
481 * PARAMETERS: parser_state - Current parser state object
483 * RETURN: A newly allocated FIELD op
485 * DESCRIPTION: Get next field (named_field, reserved_field, or access_field)
487 ******************************************************************************/
489 static union acpi_parse_object
*acpi_ps_get_next_field(struct acpi_parse_state
493 union acpi_parse_object
*field
;
494 union acpi_parse_object
*arg
= NULL
;
504 ACPI_FUNCTION_TRACE(ps_get_next_field
);
506 ASL_CV_CAPTURE_COMMENTS_ONLY(parser_state
);
507 aml
= parser_state
->aml
;
509 /* Determine field type */
511 switch (ACPI_GET8(parser_state
->aml
)) {
512 case AML_FIELD_OFFSET_OP
:
514 opcode
= AML_INT_RESERVEDFIELD_OP
;
518 case AML_FIELD_ACCESS_OP
:
520 opcode
= AML_INT_ACCESSFIELD_OP
;
524 case AML_FIELD_CONNECTION_OP
:
526 opcode
= AML_INT_CONNECTION_OP
;
530 case AML_FIELD_EXT_ACCESS_OP
:
532 opcode
= AML_INT_EXTACCESSFIELD_OP
;
538 opcode
= AML_INT_NAMEDFIELD_OP
;
542 /* Allocate a new field op */
544 field
= acpi_ps_alloc_op(opcode
, aml
);
549 /* Decode the field type */
551 ASL_CV_CAPTURE_COMMENTS_ONLY(parser_state
);
553 case AML_INT_NAMEDFIELD_OP
:
555 /* Get the 4-character name */
557 ACPI_MOVE_32_TO_32(&name
, parser_state
->aml
);
558 acpi_ps_set_name(field
, name
);
559 parser_state
->aml
+= ACPI_NAME_SIZE
;
561 ASL_CV_CAPTURE_COMMENTS_ONLY(parser_state
);
563 #ifdef ACPI_ASL_COMPILER
565 * Because the package length isn't represented as a parse tree object,
566 * take comments surrounding this and add to the previously created
569 if (field
->common
.inline_comment
) {
570 field
->common
.name_comment
=
571 field
->common
.inline_comment
;
573 field
->common
.inline_comment
= acpi_gbl_current_inline_comment
;
574 acpi_gbl_current_inline_comment
= NULL
;
577 /* Get the length which is encoded as a package length */
579 field
->common
.value
.size
=
580 acpi_ps_get_next_package_length(parser_state
);
583 case AML_INT_RESERVEDFIELD_OP
:
585 /* Get the length which is encoded as a package length */
587 field
->common
.value
.size
=
588 acpi_ps_get_next_package_length(parser_state
);
591 case AML_INT_ACCESSFIELD_OP
:
592 case AML_INT_EXTACCESSFIELD_OP
:
595 * Get access_type and access_attrib and merge into the field Op
596 * access_type is first operand, access_attribute is second. stuff
597 * these bytes into the node integer value for convenience.
600 /* Get the two bytes (Type/Attribute) */
602 access_type
= ACPI_GET8(parser_state
->aml
);
604 access_attribute
= ACPI_GET8(parser_state
->aml
);
607 field
->common
.value
.integer
= (u8
)access_type
;
608 field
->common
.value
.integer
|= (u16
)(access_attribute
<< 8);
610 /* This opcode has a third byte, access_length */
612 if (opcode
== AML_INT_EXTACCESSFIELD_OP
) {
613 access_length
= ACPI_GET8(parser_state
->aml
);
616 field
->common
.value
.integer
|=
617 (u32
)(access_length
<< 16);
621 case AML_INT_CONNECTION_OP
:
624 * Argument for Connection operator can be either a Buffer
625 * (resource descriptor), or a name_string.
627 aml
= parser_state
->aml
;
628 if (ACPI_GET8(parser_state
->aml
) == AML_BUFFER_OP
) {
631 ASL_CV_CAPTURE_COMMENTS_ONLY(parser_state
);
632 pkg_end
= parser_state
->aml
;
634 acpi_ps_get_next_package_length(parser_state
);
635 pkg_end
+= pkg_length
;
637 ASL_CV_CAPTURE_COMMENTS_ONLY(parser_state
);
638 if (parser_state
->aml
< pkg_end
) {
643 acpi_ps_alloc_op(AML_INT_BYTELIST_OP
, aml
);
645 acpi_ps_free_op(field
);
649 /* Get the actual buffer length argument */
651 opcode
= ACPI_GET8(parser_state
->aml
);
654 ASL_CV_CAPTURE_COMMENTS_ONLY(parser_state
);
656 case AML_BYTE_OP
: /* AML_BYTEDATA_ARG */
659 ACPI_GET8(parser_state
->aml
);
660 parser_state
->aml
+= 1;
663 case AML_WORD_OP
: /* AML_WORDDATA_ARG */
666 ACPI_GET16(parser_state
->aml
);
667 parser_state
->aml
+= 2;
670 case AML_DWORD_OP
: /* AML_DWORDATA_ARG */
673 ACPI_GET32(parser_state
->aml
);
674 parser_state
->aml
+= 4;
683 /* Fill in bytelist data */
685 ASL_CV_CAPTURE_COMMENTS_ONLY(parser_state
);
686 arg
->named
.value
.size
= buffer_length
;
687 arg
->named
.data
= parser_state
->aml
;
690 /* Skip to End of byte data */
692 parser_state
->aml
= pkg_end
;
694 arg
= acpi_ps_alloc_op(AML_INT_NAMEPATH_OP
, aml
);
696 acpi_ps_free_op(field
);
700 /* Get the Namestring argument */
702 arg
->common
.value
.name
=
703 acpi_ps_get_next_namestring(parser_state
);
706 /* Link the buffer/namestring to parent (CONNECTION_OP) */
708 acpi_ps_append_arg(field
, arg
);
713 /* Opcode was set in previous switch */
720 /*******************************************************************************
722 * FUNCTION: acpi_ps_get_next_arg
724 * PARAMETERS: walk_state - Current state
725 * parser_state - Current parser state object
726 * arg_type - The argument type (AML_*_ARG)
727 * return_arg - Where the next arg is returned
729 * RETURN: Status, and an op object containing the next argument.
731 * DESCRIPTION: Get next argument (including complex list arguments that require
732 * pushing the parser stack)
734 ******************************************************************************/
737 acpi_ps_get_next_arg(struct acpi_walk_state
*walk_state
,
738 struct acpi_parse_state
*parser_state
,
739 u32 arg_type
, union acpi_parse_object
**return_arg
)
741 union acpi_parse_object
*arg
= NULL
;
742 union acpi_parse_object
*prev
= NULL
;
743 union acpi_parse_object
*field
;
745 acpi_status status
= AE_OK
;
747 ACPI_FUNCTION_TRACE_PTR(ps_get_next_arg
, parser_state
);
749 ACPI_DEBUG_PRINT((ACPI_DB_PARSE
,
750 "Expected argument type ARGP: %s (%2.2X)\n",
751 acpi_ut_get_argument_type_name(arg_type
), arg_type
));
759 case ARGP_NAMESTRING
:
761 /* Constants, strings, and namestrings are all the same size */
763 arg
= acpi_ps_alloc_op(AML_BYTE_OP
, parser_state
->aml
);
765 return_ACPI_STATUS(AE_NO_MEMORY
);
768 acpi_ps_get_next_simple_arg(parser_state
, arg_type
, arg
);
773 /* Package length, nothing returned */
775 parser_state
->pkg_end
=
776 acpi_ps_get_next_package_end(parser_state
);
781 if (parser_state
->aml
< parser_state
->pkg_end
) {
785 while (parser_state
->aml
< parser_state
->pkg_end
) {
786 field
= acpi_ps_get_next_field(parser_state
);
788 return_ACPI_STATUS(AE_NO_MEMORY
);
792 prev
->common
.next
= field
;
799 /* Skip to End of byte data */
801 parser_state
->aml
= parser_state
->pkg_end
;
807 if (parser_state
->aml
< parser_state
->pkg_end
) {
811 arg
= acpi_ps_alloc_op(AML_INT_BYTELIST_OP
,
814 return_ACPI_STATUS(AE_NO_MEMORY
);
817 /* Fill in bytelist data */
819 arg
->common
.value
.size
= (u32
)
820 ACPI_PTR_DIFF(parser_state
->pkg_end
,
822 arg
->named
.data
= parser_state
->aml
;
824 /* Skip to End of byte data */
826 parser_state
->aml
= parser_state
->pkg_end
;
830 case ARGP_SIMPLENAME
:
831 case ARGP_NAME_OR_REF
:
833 ACPI_DEBUG_PRINT((ACPI_DB_PARSE
,
834 "**** SimpleName/NameOrRef: %s (%2.2X)\n",
835 acpi_ut_get_argument_type_name(arg_type
),
838 subop
= acpi_ps_peek_opcode(parser_state
);
840 acpi_ps_is_leading_char(subop
) ||
841 ACPI_IS_ROOT_PREFIX(subop
) ||
842 ACPI_IS_PARENT_PREFIX(subop
)) {
844 /* null_name or name_string */
847 acpi_ps_alloc_op(AML_INT_NAMEPATH_OP
,
850 return_ACPI_STATUS(AE_NO_MEMORY
);
854 acpi_ps_get_next_namepath(walk_state
, parser_state
,
856 ACPI_NOT_METHOD_CALL
);
858 /* Single complex argument, nothing returned */
860 walk_state
->arg_count
= 1;
867 ACPI_DEBUG_PRINT((ACPI_DB_PARSE
,
868 "**** Target/Supername: %s (%2.2X)\n",
869 acpi_ut_get_argument_type_name(arg_type
),
872 subop
= acpi_ps_peek_opcode(parser_state
);
874 acpi_ps_is_leading_char(subop
) ||
875 ACPI_IS_ROOT_PREFIX(subop
) ||
876 ACPI_IS_PARENT_PREFIX(subop
)) {
878 /* NULL target (zero). Convert to a NULL namepath */
881 acpi_ps_alloc_op(AML_INT_NAMEPATH_OP
,
884 return_ACPI_STATUS(AE_NO_MEMORY
);
888 acpi_ps_get_next_namepath(walk_state
, parser_state
,
890 ACPI_POSSIBLE_METHOD_CALL
);
892 if (arg
->common
.aml_opcode
== AML_INT_METHODCALL_OP
) {
893 acpi_ps_free_op(arg
);
895 walk_state
->arg_count
= 1;
898 /* Single complex argument, nothing returned */
900 walk_state
->arg_count
= 1;
907 ACPI_DEBUG_PRINT((ACPI_DB_PARSE
,
908 "**** TermArg/DataObj: %s (%2.2X)\n",
909 acpi_ut_get_argument_type_name(arg_type
),
912 /* Single complex argument, nothing returned */
914 walk_state
->arg_count
= 1;
917 case ARGP_DATAOBJLIST
:
921 if (parser_state
->aml
< parser_state
->pkg_end
) {
923 /* Non-empty list of variable arguments, nothing returned */
925 walk_state
->arg_count
= ACPI_VAR_ARGS
;
931 ACPI_ERROR((AE_INFO
, "Invalid ArgType: 0x%X", arg_type
));
932 status
= AE_AML_OPERAND_TYPE
;
937 return_ACPI_STATUS(status
);