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