exoparg6.c revision 1.1.1.2.4.2 1 1.1.1.2.4.2 rmind
2 1.1.1.2.4.2 rmind /******************************************************************************
3 1.1.1.2.4.2 rmind *
4 1.1.1.2.4.2 rmind * Module Name: exoparg6 - AML execution - opcodes with 6 arguments
5 1.1.1.2.4.2 rmind *
6 1.1.1.2.4.2 rmind *****************************************************************************/
7 1.1.1.2.4.2 rmind
8 1.1.1.2.4.2 rmind /*
9 1.1.1.2.4.2 rmind * Copyright (C) 2000 - 2011, Intel Corp.
10 1.1.1.2.4.2 rmind * All rights reserved.
11 1.1.1.2.4.2 rmind *
12 1.1.1.2.4.2 rmind * Redistribution and use in source and binary forms, with or without
13 1.1.1.2.4.2 rmind * modification, are permitted provided that the following conditions
14 1.1.1.2.4.2 rmind * are met:
15 1.1.1.2.4.2 rmind * 1. Redistributions of source code must retain the above copyright
16 1.1.1.2.4.2 rmind * notice, this list of conditions, and the following disclaimer,
17 1.1.1.2.4.2 rmind * without modification.
18 1.1.1.2.4.2 rmind * 2. Redistributions in binary form must reproduce at minimum a disclaimer
19 1.1.1.2.4.2 rmind * substantially similar to the "NO WARRANTY" disclaimer below
20 1.1.1.2.4.2 rmind * ("Disclaimer") and any redistribution must be conditioned upon
21 1.1.1.2.4.2 rmind * including a substantially similar Disclaimer requirement for further
22 1.1.1.2.4.2 rmind * binary redistribution.
23 1.1.1.2.4.2 rmind * 3. Neither the names of the above-listed copyright holders nor the names
24 1.1.1.2.4.2 rmind * of any contributors may be used to endorse or promote products derived
25 1.1.1.2.4.2 rmind * from this software without specific prior written permission.
26 1.1.1.2.4.2 rmind *
27 1.1.1.2.4.2 rmind * Alternatively, this software may be distributed under the terms of the
28 1.1.1.2.4.2 rmind * GNU General Public License ("GPL") version 2 as published by the Free
29 1.1.1.2.4.2 rmind * Software Foundation.
30 1.1.1.2.4.2 rmind *
31 1.1.1.2.4.2 rmind * NO WARRANTY
32 1.1.1.2.4.2 rmind * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
33 1.1.1.2.4.2 rmind * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
34 1.1.1.2.4.2 rmind * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
35 1.1.1.2.4.2 rmind * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
36 1.1.1.2.4.2 rmind * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
37 1.1.1.2.4.2 rmind * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
38 1.1.1.2.4.2 rmind * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
39 1.1.1.2.4.2 rmind * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
40 1.1.1.2.4.2 rmind * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
41 1.1.1.2.4.2 rmind * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
42 1.1.1.2.4.2 rmind * POSSIBILITY OF SUCH DAMAGES.
43 1.1.1.2.4.2 rmind */
44 1.1.1.2.4.2 rmind
45 1.1.1.2.4.2 rmind #define __EXOPARG6_C__
46 1.1.1.2.4.2 rmind
47 1.1.1.2.4.2 rmind #include "acpi.h"
48 1.1.1.2.4.2 rmind #include "accommon.h"
49 1.1.1.2.4.2 rmind #include "acinterp.h"
50 1.1.1.2.4.2 rmind #include "acparser.h"
51 1.1.1.2.4.2 rmind #include "amlcode.h"
52 1.1.1.2.4.2 rmind
53 1.1.1.2.4.2 rmind
54 1.1.1.2.4.2 rmind #define _COMPONENT ACPI_EXECUTER
55 1.1.1.2.4.2 rmind ACPI_MODULE_NAME ("exoparg6")
56 1.1.1.2.4.2 rmind
57 1.1.1.2.4.2 rmind
58 1.1.1.2.4.2 rmind /*!
59 1.1.1.2.4.2 rmind * Naming convention for AML interpreter execution routines.
60 1.1.1.2.4.2 rmind *
61 1.1.1.2.4.2 rmind * The routines that begin execution of AML opcodes are named with a common
62 1.1.1.2.4.2 rmind * convention based upon the number of arguments, the number of target operands,
63 1.1.1.2.4.2 rmind * and whether or not a value is returned:
64 1.1.1.2.4.2 rmind *
65 1.1.1.2.4.2 rmind * AcpiExOpcode_xA_yT_zR
66 1.1.1.2.4.2 rmind *
67 1.1.1.2.4.2 rmind * Where:
68 1.1.1.2.4.2 rmind *
69 1.1.1.2.4.2 rmind * xA - ARGUMENTS: The number of arguments (input operands) that are
70 1.1.1.2.4.2 rmind * required for this opcode type (1 through 6 args).
71 1.1.1.2.4.2 rmind * yT - TARGETS: The number of targets (output operands) that are required
72 1.1.1.2.4.2 rmind * for this opcode type (0, 1, or 2 targets).
73 1.1.1.2.4.2 rmind * zR - RETURN VALUE: Indicates whether this opcode type returns a value
74 1.1.1.2.4.2 rmind * as the function return (0 or 1).
75 1.1.1.2.4.2 rmind *
76 1.1.1.2.4.2 rmind * The AcpiExOpcode* functions are called via the Dispatcher component with
77 1.1.1.2.4.2 rmind * fully resolved operands.
78 1.1.1.2.4.2 rmind !*/
79 1.1.1.2.4.2 rmind
80 1.1.1.2.4.2 rmind /* Local prototypes */
81 1.1.1.2.4.2 rmind
82 1.1.1.2.4.2 rmind static BOOLEAN
83 1.1.1.2.4.2 rmind AcpiExDoMatch (
84 1.1.1.2.4.2 rmind UINT32 MatchOp,
85 1.1.1.2.4.2 rmind ACPI_OPERAND_OBJECT *PackageObj,
86 1.1.1.2.4.2 rmind ACPI_OPERAND_OBJECT *MatchObj);
87 1.1.1.2.4.2 rmind
88 1.1.1.2.4.2 rmind
89 1.1.1.2.4.2 rmind /*******************************************************************************
90 1.1.1.2.4.2 rmind *
91 1.1.1.2.4.2 rmind * FUNCTION: AcpiExDoMatch
92 1.1.1.2.4.2 rmind *
93 1.1.1.2.4.2 rmind * PARAMETERS: MatchOp - The AML match operand
94 1.1.1.2.4.2 rmind * PackageObj - Object from the target package
95 1.1.1.2.4.2 rmind * MatchObj - Object to be matched
96 1.1.1.2.4.2 rmind *
97 1.1.1.2.4.2 rmind * RETURN: TRUE if the match is successful, FALSE otherwise
98 1.1.1.2.4.2 rmind *
99 1.1.1.2.4.2 rmind * DESCRIPTION: Implements the low-level match for the ASL Match operator.
100 1.1.1.2.4.2 rmind * Package elements will be implicitly converted to the type of
101 1.1.1.2.4.2 rmind * the match object (Integer/Buffer/String).
102 1.1.1.2.4.2 rmind *
103 1.1.1.2.4.2 rmind ******************************************************************************/
104 1.1.1.2.4.2 rmind
105 1.1.1.2.4.2 rmind static BOOLEAN
106 1.1.1.2.4.2 rmind AcpiExDoMatch (
107 1.1.1.2.4.2 rmind UINT32 MatchOp,
108 1.1.1.2.4.2 rmind ACPI_OPERAND_OBJECT *PackageObj,
109 1.1.1.2.4.2 rmind ACPI_OPERAND_OBJECT *MatchObj)
110 1.1.1.2.4.2 rmind {
111 1.1.1.2.4.2 rmind BOOLEAN LogicalResult = TRUE;
112 1.1.1.2.4.2 rmind ACPI_STATUS Status;
113 1.1.1.2.4.2 rmind
114 1.1.1.2.4.2 rmind
115 1.1.1.2.4.2 rmind /*
116 1.1.1.2.4.2 rmind * Note: Since the PackageObj/MatchObj ordering is opposite to that of
117 1.1.1.2.4.2 rmind * the standard logical operators, we have to reverse them when we call
118 1.1.1.2.4.2 rmind * DoLogicalOp in order to make the implicit conversion rules work
119 1.1.1.2.4.2 rmind * correctly. However, this means we have to flip the entire equation
120 1.1.1.2.4.2 rmind * also. A bit ugly perhaps, but overall, better than fussing the
121 1.1.1.2.4.2 rmind * parameters around at runtime, over and over again.
122 1.1.1.2.4.2 rmind *
123 1.1.1.2.4.2 rmind * Below, P[i] refers to the package element, M refers to the Match object.
124 1.1.1.2.4.2 rmind */
125 1.1.1.2.4.2 rmind switch (MatchOp)
126 1.1.1.2.4.2 rmind {
127 1.1.1.2.4.2 rmind case MATCH_MTR:
128 1.1.1.2.4.2 rmind
129 1.1.1.2.4.2 rmind /* Always true */
130 1.1.1.2.4.2 rmind
131 1.1.1.2.4.2 rmind break;
132 1.1.1.2.4.2 rmind
133 1.1.1.2.4.2 rmind case MATCH_MEQ:
134 1.1.1.2.4.2 rmind
135 1.1.1.2.4.2 rmind /*
136 1.1.1.2.4.2 rmind * True if equal: (P[i] == M)
137 1.1.1.2.4.2 rmind * Change to: (M == P[i])
138 1.1.1.2.4.2 rmind */
139 1.1.1.2.4.2 rmind Status = AcpiExDoLogicalOp (AML_LEQUAL_OP, MatchObj, PackageObj,
140 1.1.1.2.4.2 rmind &LogicalResult);
141 1.1.1.2.4.2 rmind if (ACPI_FAILURE (Status))
142 1.1.1.2.4.2 rmind {
143 1.1.1.2.4.2 rmind return (FALSE);
144 1.1.1.2.4.2 rmind }
145 1.1.1.2.4.2 rmind break;
146 1.1.1.2.4.2 rmind
147 1.1.1.2.4.2 rmind case MATCH_MLE:
148 1.1.1.2.4.2 rmind
149 1.1.1.2.4.2 rmind /*
150 1.1.1.2.4.2 rmind * True if less than or equal: (P[i] <= M) (P[i] NotGreater than M)
151 1.1.1.2.4.2 rmind * Change to: (M >= P[i]) (M NotLess than P[i])
152 1.1.1.2.4.2 rmind */
153 1.1.1.2.4.2 rmind Status = AcpiExDoLogicalOp (AML_LLESS_OP, MatchObj, PackageObj,
154 1.1.1.2.4.2 rmind &LogicalResult);
155 1.1.1.2.4.2 rmind if (ACPI_FAILURE (Status))
156 1.1.1.2.4.2 rmind {
157 1.1.1.2.4.2 rmind return (FALSE);
158 1.1.1.2.4.2 rmind }
159 1.1.1.2.4.2 rmind LogicalResult = (BOOLEAN) !LogicalResult;
160 1.1.1.2.4.2 rmind break;
161 1.1.1.2.4.2 rmind
162 1.1.1.2.4.2 rmind case MATCH_MLT:
163 1.1.1.2.4.2 rmind
164 1.1.1.2.4.2 rmind /*
165 1.1.1.2.4.2 rmind * True if less than: (P[i] < M)
166 1.1.1.2.4.2 rmind * Change to: (M > P[i])
167 1.1.1.2.4.2 rmind */
168 1.1.1.2.4.2 rmind Status = AcpiExDoLogicalOp (AML_LGREATER_OP, MatchObj, PackageObj,
169 1.1.1.2.4.2 rmind &LogicalResult);
170 1.1.1.2.4.2 rmind if (ACPI_FAILURE (Status))
171 1.1.1.2.4.2 rmind {
172 1.1.1.2.4.2 rmind return (FALSE);
173 1.1.1.2.4.2 rmind }
174 1.1.1.2.4.2 rmind break;
175 1.1.1.2.4.2 rmind
176 1.1.1.2.4.2 rmind case MATCH_MGE:
177 1.1.1.2.4.2 rmind
178 1.1.1.2.4.2 rmind /*
179 1.1.1.2.4.2 rmind * True if greater than or equal: (P[i] >= M) (P[i] NotLess than M)
180 1.1.1.2.4.2 rmind * Change to: (M <= P[i]) (M NotGreater than P[i])
181 1.1.1.2.4.2 rmind */
182 1.1.1.2.4.2 rmind Status = AcpiExDoLogicalOp (AML_LGREATER_OP, MatchObj, PackageObj,
183 1.1.1.2.4.2 rmind &LogicalResult);
184 1.1.1.2.4.2 rmind if (ACPI_FAILURE (Status))
185 1.1.1.2.4.2 rmind {
186 1.1.1.2.4.2 rmind return (FALSE);
187 1.1.1.2.4.2 rmind }
188 1.1.1.2.4.2 rmind LogicalResult = (BOOLEAN)!LogicalResult;
189 1.1.1.2.4.2 rmind break;
190 1.1.1.2.4.2 rmind
191 1.1.1.2.4.2 rmind case MATCH_MGT:
192 1.1.1.2.4.2 rmind
193 1.1.1.2.4.2 rmind /*
194 1.1.1.2.4.2 rmind * True if greater than: (P[i] > M)
195 1.1.1.2.4.2 rmind * Change to: (M < P[i])
196 1.1.1.2.4.2 rmind */
197 1.1.1.2.4.2 rmind Status = AcpiExDoLogicalOp (AML_LLESS_OP, MatchObj, PackageObj,
198 1.1.1.2.4.2 rmind &LogicalResult);
199 1.1.1.2.4.2 rmind if (ACPI_FAILURE (Status))
200 1.1.1.2.4.2 rmind {
201 1.1.1.2.4.2 rmind return (FALSE);
202 1.1.1.2.4.2 rmind }
203 1.1.1.2.4.2 rmind break;
204 1.1.1.2.4.2 rmind
205 1.1.1.2.4.2 rmind default:
206 1.1.1.2.4.2 rmind
207 1.1.1.2.4.2 rmind /* Undefined */
208 1.1.1.2.4.2 rmind
209 1.1.1.2.4.2 rmind return (FALSE);
210 1.1.1.2.4.2 rmind }
211 1.1.1.2.4.2 rmind
212 1.1.1.2.4.2 rmind return LogicalResult;
213 1.1.1.2.4.2 rmind }
214 1.1.1.2.4.2 rmind
215 1.1.1.2.4.2 rmind
216 1.1.1.2.4.2 rmind /*******************************************************************************
217 1.1.1.2.4.2 rmind *
218 1.1.1.2.4.2 rmind * FUNCTION: AcpiExOpcode_6A_0T_1R
219 1.1.1.2.4.2 rmind *
220 1.1.1.2.4.2 rmind * PARAMETERS: WalkState - Current walk state
221 1.1.1.2.4.2 rmind *
222 1.1.1.2.4.2 rmind * RETURN: Status
223 1.1.1.2.4.2 rmind *
224 1.1.1.2.4.2 rmind * DESCRIPTION: Execute opcode with 6 arguments, no target, and a return value
225 1.1.1.2.4.2 rmind *
226 1.1.1.2.4.2 rmind ******************************************************************************/
227 1.1.1.2.4.2 rmind
228 1.1.1.2.4.2 rmind ACPI_STATUS
229 1.1.1.2.4.2 rmind AcpiExOpcode_6A_0T_1R (
230 1.1.1.2.4.2 rmind ACPI_WALK_STATE *WalkState)
231 1.1.1.2.4.2 rmind {
232 1.1.1.2.4.2 rmind ACPI_OPERAND_OBJECT **Operand = &WalkState->Operands[0];
233 1.1.1.2.4.2 rmind ACPI_OPERAND_OBJECT *ReturnDesc = NULL;
234 1.1.1.2.4.2 rmind ACPI_STATUS Status = AE_OK;
235 1.1.1.2.4.2 rmind UINT64 Index;
236 1.1.1.2.4.2 rmind ACPI_OPERAND_OBJECT *ThisElement;
237 1.1.1.2.4.2 rmind
238 1.1.1.2.4.2 rmind
239 1.1.1.2.4.2 rmind ACPI_FUNCTION_TRACE_STR (ExOpcode_6A_0T_1R,
240 1.1.1.2.4.2 rmind AcpiPsGetOpcodeName (WalkState->Opcode));
241 1.1.1.2.4.2 rmind
242 1.1.1.2.4.2 rmind
243 1.1.1.2.4.2 rmind switch (WalkState->Opcode)
244 1.1.1.2.4.2 rmind {
245 1.1.1.2.4.2 rmind case AML_MATCH_OP:
246 1.1.1.2.4.2 rmind /*
247 1.1.1.2.4.2 rmind * Match (SearchPkg[0], MatchOp1[1], MatchObj1[2],
248 1.1.1.2.4.2 rmind * MatchOp2[3], MatchObj2[4], StartIndex[5])
249 1.1.1.2.4.2 rmind */
250 1.1.1.2.4.2 rmind
251 1.1.1.2.4.2 rmind /* Validate both Match Term Operators (MTR, MEQ, etc.) */
252 1.1.1.2.4.2 rmind
253 1.1.1.2.4.2 rmind if ((Operand[1]->Integer.Value > MAX_MATCH_OPERATOR) ||
254 1.1.1.2.4.2 rmind (Operand[3]->Integer.Value > MAX_MATCH_OPERATOR))
255 1.1.1.2.4.2 rmind {
256 1.1.1.2.4.2 rmind ACPI_ERROR ((AE_INFO, "Match operator out of range"));
257 1.1.1.2.4.2 rmind Status = AE_AML_OPERAND_VALUE;
258 1.1.1.2.4.2 rmind goto Cleanup;
259 1.1.1.2.4.2 rmind }
260 1.1.1.2.4.2 rmind
261 1.1.1.2.4.2 rmind /* Get the package StartIndex, validate against the package length */
262 1.1.1.2.4.2 rmind
263 1.1.1.2.4.2 rmind Index = Operand[5]->Integer.Value;
264 1.1.1.2.4.2 rmind if (Index >= Operand[0]->Package.Count)
265 1.1.1.2.4.2 rmind {
266 1.1.1.2.4.2 rmind ACPI_ERROR ((AE_INFO,
267 1.1.1.2.4.2 rmind "Index (0x%8.8X%8.8X) beyond package end (0x%X)",
268 1.1.1.2.4.2 rmind ACPI_FORMAT_UINT64 (Index), Operand[0]->Package.Count));
269 1.1.1.2.4.2 rmind Status = AE_AML_PACKAGE_LIMIT;
270 1.1.1.2.4.2 rmind goto Cleanup;
271 1.1.1.2.4.2 rmind }
272 1.1.1.2.4.2 rmind
273 1.1.1.2.4.2 rmind /* Create an integer for the return value */
274 1.1.1.2.4.2 rmind /* Default return value is ACPI_UINT64_MAX if no match found */
275 1.1.1.2.4.2 rmind
276 1.1.1.2.4.2 rmind ReturnDesc = AcpiUtCreateIntegerObject (ACPI_UINT64_MAX);
277 1.1.1.2.4.2 rmind if (!ReturnDesc)
278 1.1.1.2.4.2 rmind {
279 1.1.1.2.4.2 rmind Status = AE_NO_MEMORY;
280 1.1.1.2.4.2 rmind goto Cleanup;
281 1.1.1.2.4.2 rmind
282 1.1.1.2.4.2 rmind }
283 1.1.1.2.4.2 rmind
284 1.1.1.2.4.2 rmind /*
285 1.1.1.2.4.2 rmind * Examine each element until a match is found. Both match conditions
286 1.1.1.2.4.2 rmind * must be satisfied for a match to occur. Within the loop,
287 1.1.1.2.4.2 rmind * "continue" signifies that the current element does not match
288 1.1.1.2.4.2 rmind * and the next should be examined.
289 1.1.1.2.4.2 rmind *
290 1.1.1.2.4.2 rmind * Upon finding a match, the loop will terminate via "break" at
291 1.1.1.2.4.2 rmind * the bottom. If it terminates "normally", MatchValue will be
292 1.1.1.2.4.2 rmind * ACPI_UINT64_MAX (Ones) (its initial value) indicating that no
293 1.1.1.2.4.2 rmind * match was found.
294 1.1.1.2.4.2 rmind */
295 1.1.1.2.4.2 rmind for ( ; Index < Operand[0]->Package.Count; Index++)
296 1.1.1.2.4.2 rmind {
297 1.1.1.2.4.2 rmind /* Get the current package element */
298 1.1.1.2.4.2 rmind
299 1.1.1.2.4.2 rmind ThisElement = Operand[0]->Package.Elements[Index];
300 1.1.1.2.4.2 rmind
301 1.1.1.2.4.2 rmind /* Treat any uninitialized (NULL) elements as non-matching */
302 1.1.1.2.4.2 rmind
303 1.1.1.2.4.2 rmind if (!ThisElement)
304 1.1.1.2.4.2 rmind {
305 1.1.1.2.4.2 rmind continue;
306 1.1.1.2.4.2 rmind }
307 1.1.1.2.4.2 rmind
308 1.1.1.2.4.2 rmind /*
309 1.1.1.2.4.2 rmind * Both match conditions must be satisfied. Execution of a continue
310 1.1.1.2.4.2 rmind * (proceed to next iteration of enclosing for loop) signifies a
311 1.1.1.2.4.2 rmind * non-match.
312 1.1.1.2.4.2 rmind */
313 1.1.1.2.4.2 rmind if (!AcpiExDoMatch ((UINT32) Operand[1]->Integer.Value,
314 1.1.1.2.4.2 rmind ThisElement, Operand[2]))
315 1.1.1.2.4.2 rmind {
316 1.1.1.2.4.2 rmind continue;
317 1.1.1.2.4.2 rmind }
318 1.1.1.2.4.2 rmind
319 1.1.1.2.4.2 rmind if (!AcpiExDoMatch ((UINT32) Operand[3]->Integer.Value,
320 1.1.1.2.4.2 rmind ThisElement, Operand[4]))
321 1.1.1.2.4.2 rmind {
322 1.1.1.2.4.2 rmind continue;
323 1.1.1.2.4.2 rmind }
324 1.1.1.2.4.2 rmind
325 1.1.1.2.4.2 rmind /* Match found: Index is the return value */
326 1.1.1.2.4.2 rmind
327 1.1.1.2.4.2 rmind ReturnDesc->Integer.Value = Index;
328 1.1.1.2.4.2 rmind break;
329 1.1.1.2.4.2 rmind }
330 1.1.1.2.4.2 rmind break;
331 1.1.1.2.4.2 rmind
332 1.1.1.2.4.2 rmind
333 1.1.1.2.4.2 rmind case AML_LOAD_TABLE_OP:
334 1.1.1.2.4.2 rmind
335 1.1.1.2.4.2 rmind Status = AcpiExLoadTableOp (WalkState, &ReturnDesc);
336 1.1.1.2.4.2 rmind break;
337 1.1.1.2.4.2 rmind
338 1.1.1.2.4.2 rmind
339 1.1.1.2.4.2 rmind default:
340 1.1.1.2.4.2 rmind
341 1.1.1.2.4.2 rmind ACPI_ERROR ((AE_INFO, "Unknown AML opcode 0x%X",
342 1.1.1.2.4.2 rmind WalkState->Opcode));
343 1.1.1.2.4.2 rmind Status = AE_AML_BAD_OPCODE;
344 1.1.1.2.4.2 rmind goto Cleanup;
345 1.1.1.2.4.2 rmind }
346 1.1.1.2.4.2 rmind
347 1.1.1.2.4.2 rmind
348 1.1.1.2.4.2 rmind Cleanup:
349 1.1.1.2.4.2 rmind
350 1.1.1.2.4.2 rmind /* Delete return object on error */
351 1.1.1.2.4.2 rmind
352 1.1.1.2.4.2 rmind if (ACPI_FAILURE (Status))
353 1.1.1.2.4.2 rmind {
354 1.1.1.2.4.2 rmind AcpiUtRemoveReference (ReturnDesc);
355 1.1.1.2.4.2 rmind }
356 1.1.1.2.4.2 rmind
357 1.1.1.2.4.2 rmind /* Save return object on success */
358 1.1.1.2.4.2 rmind
359 1.1.1.2.4.2 rmind else
360 1.1.1.2.4.2 rmind {
361 1.1.1.2.4.2 rmind WalkState->ResultObj = ReturnDesc;
362 1.1.1.2.4.2 rmind }
363 1.1.1.2.4.2 rmind
364 1.1.1.2.4.2 rmind return_ACPI_STATUS (Status);
365 1.1.1.2.4.2 rmind }
366