exsystem.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: exsystem - Interface to OS services
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 __EXSYSTEM_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
51 1.1.1.2.2.2 bouyer #define _COMPONENT ACPI_EXECUTER
52 1.1.1.2.2.2 bouyer ACPI_MODULE_NAME ("exsystem")
53 1.1.1.2.2.2 bouyer
54 1.1.1.2.2.2 bouyer
55 1.1.1.2.2.2 bouyer /*******************************************************************************
56 1.1.1.2.2.2 bouyer *
57 1.1.1.2.2.2 bouyer * FUNCTION: AcpiExSystemWaitSemaphore
58 1.1.1.2.2.2 bouyer *
59 1.1.1.2.2.2 bouyer * PARAMETERS: Semaphore - Semaphore to wait on
60 1.1.1.2.2.2 bouyer * Timeout - Max time to wait
61 1.1.1.2.2.2 bouyer *
62 1.1.1.2.2.2 bouyer * RETURN: Status
63 1.1.1.2.2.2 bouyer *
64 1.1.1.2.2.2 bouyer * DESCRIPTION: Implements a semaphore wait with a check to see if the
65 1.1.1.2.2.2 bouyer * semaphore is available immediately. If it is not, the
66 1.1.1.2.2.2 bouyer * interpreter is released before waiting.
67 1.1.1.2.2.2 bouyer *
68 1.1.1.2.2.2 bouyer ******************************************************************************/
69 1.1.1.2.2.2 bouyer
70 1.1.1.2.2.2 bouyer ACPI_STATUS
71 1.1.1.2.2.2 bouyer AcpiExSystemWaitSemaphore (
72 1.1.1.2.2.2 bouyer ACPI_SEMAPHORE Semaphore,
73 1.1.1.2.2.2 bouyer UINT16 Timeout)
74 1.1.1.2.2.2 bouyer {
75 1.1.1.2.2.2 bouyer ACPI_STATUS Status;
76 1.1.1.2.2.2 bouyer
77 1.1.1.2.2.2 bouyer
78 1.1.1.2.2.2 bouyer ACPI_FUNCTION_TRACE (ExSystemWaitSemaphore);
79 1.1.1.2.2.2 bouyer
80 1.1.1.2.2.2 bouyer
81 1.1.1.2.2.2 bouyer Status = AcpiOsWaitSemaphore (Semaphore, 1, ACPI_DO_NOT_WAIT);
82 1.1.1.2.2.2 bouyer if (ACPI_SUCCESS (Status))
83 1.1.1.2.2.2 bouyer {
84 1.1.1.2.2.2 bouyer return_ACPI_STATUS (Status);
85 1.1.1.2.2.2 bouyer }
86 1.1.1.2.2.2 bouyer
87 1.1.1.2.2.2 bouyer if (Status == AE_TIME)
88 1.1.1.2.2.2 bouyer {
89 1.1.1.2.2.2 bouyer /* We must wait, so unlock the interpreter */
90 1.1.1.2.2.2 bouyer
91 1.1.1.2.2.2 bouyer AcpiExRelinquishInterpreter ();
92 1.1.1.2.2.2 bouyer
93 1.1.1.2.2.2 bouyer Status = AcpiOsWaitSemaphore (Semaphore, 1, Timeout);
94 1.1.1.2.2.2 bouyer
95 1.1.1.2.2.2 bouyer ACPI_DEBUG_PRINT ((ACPI_DB_EXEC,
96 1.1.1.2.2.2 bouyer "*** Thread awake after blocking, %s\n",
97 1.1.1.2.2.2 bouyer AcpiFormatException (Status)));
98 1.1.1.2.2.2 bouyer
99 1.1.1.2.2.2 bouyer /* Reacquire the interpreter */
100 1.1.1.2.2.2 bouyer
101 1.1.1.2.2.2 bouyer AcpiExReacquireInterpreter ();
102 1.1.1.2.2.2 bouyer }
103 1.1.1.2.2.2 bouyer
104 1.1.1.2.2.2 bouyer return_ACPI_STATUS (Status);
105 1.1.1.2.2.2 bouyer }
106 1.1.1.2.2.2 bouyer
107 1.1.1.2.2.2 bouyer
108 1.1.1.2.2.2 bouyer /*******************************************************************************
109 1.1.1.2.2.2 bouyer *
110 1.1.1.2.2.2 bouyer * FUNCTION: AcpiExSystemWaitMutex
111 1.1.1.2.2.2 bouyer *
112 1.1.1.2.2.2 bouyer * PARAMETERS: Mutex - Mutex to wait on
113 1.1.1.2.2.2 bouyer * Timeout - Max time to wait
114 1.1.1.2.2.2 bouyer *
115 1.1.1.2.2.2 bouyer * RETURN: Status
116 1.1.1.2.2.2 bouyer *
117 1.1.1.2.2.2 bouyer * DESCRIPTION: Implements a mutex wait with a check to see if the
118 1.1.1.2.2.2 bouyer * mutex is available immediately. If it is not, the
119 1.1.1.2.2.2 bouyer * interpreter is released before waiting.
120 1.1.1.2.2.2 bouyer *
121 1.1.1.2.2.2 bouyer ******************************************************************************/
122 1.1.1.2.2.2 bouyer
123 1.1.1.2.2.2 bouyer ACPI_STATUS
124 1.1.1.2.2.2 bouyer AcpiExSystemWaitMutex (
125 1.1.1.2.2.2 bouyer ACPI_MUTEX Mutex,
126 1.1.1.2.2.2 bouyer UINT16 Timeout)
127 1.1.1.2.2.2 bouyer {
128 1.1.1.2.2.2 bouyer ACPI_STATUS Status;
129 1.1.1.2.2.2 bouyer
130 1.1.1.2.2.2 bouyer
131 1.1.1.2.2.2 bouyer ACPI_FUNCTION_TRACE (ExSystemWaitMutex);
132 1.1.1.2.2.2 bouyer
133 1.1.1.2.2.2 bouyer
134 1.1.1.2.2.2 bouyer Status = AcpiOsAcquireMutex (Mutex, ACPI_DO_NOT_WAIT);
135 1.1.1.2.2.2 bouyer if (ACPI_SUCCESS (Status))
136 1.1.1.2.2.2 bouyer {
137 1.1.1.2.2.2 bouyer return_ACPI_STATUS (Status);
138 1.1.1.2.2.2 bouyer }
139 1.1.1.2.2.2 bouyer
140 1.1.1.2.2.2 bouyer if (Status == AE_TIME)
141 1.1.1.2.2.2 bouyer {
142 1.1.1.2.2.2 bouyer /* We must wait, so unlock the interpreter */
143 1.1.1.2.2.2 bouyer
144 1.1.1.2.2.2 bouyer AcpiExRelinquishInterpreter ();
145 1.1.1.2.2.2 bouyer
146 1.1.1.2.2.2 bouyer Status = AcpiOsAcquireMutex (Mutex, Timeout);
147 1.1.1.2.2.2 bouyer
148 1.1.1.2.2.2 bouyer ACPI_DEBUG_PRINT ((ACPI_DB_EXEC,
149 1.1.1.2.2.2 bouyer "*** Thread awake after blocking, %s\n",
150 1.1.1.2.2.2 bouyer AcpiFormatException (Status)));
151 1.1.1.2.2.2 bouyer
152 1.1.1.2.2.2 bouyer /* Reacquire the interpreter */
153 1.1.1.2.2.2 bouyer
154 1.1.1.2.2.2 bouyer AcpiExReacquireInterpreter ();
155 1.1.1.2.2.2 bouyer }
156 1.1.1.2.2.2 bouyer
157 1.1.1.2.2.2 bouyer return_ACPI_STATUS (Status);
158 1.1.1.2.2.2 bouyer }
159 1.1.1.2.2.2 bouyer
160 1.1.1.2.2.2 bouyer
161 1.1.1.2.2.2 bouyer /*******************************************************************************
162 1.1.1.2.2.2 bouyer *
163 1.1.1.2.2.2 bouyer * FUNCTION: AcpiExSystemDoStall
164 1.1.1.2.2.2 bouyer *
165 1.1.1.2.2.2 bouyer * PARAMETERS: HowLong - The amount of time to stall,
166 1.1.1.2.2.2 bouyer * in microseconds
167 1.1.1.2.2.2 bouyer *
168 1.1.1.2.2.2 bouyer * RETURN: Status
169 1.1.1.2.2.2 bouyer *
170 1.1.1.2.2.2 bouyer * DESCRIPTION: Suspend running thread for specified amount of time.
171 1.1.1.2.2.2 bouyer * Note: ACPI specification requires that Stall() does not
172 1.1.1.2.2.2 bouyer * relinquish the processor, and delays longer than 100 usec
173 1.1.1.2.2.2 bouyer * should use Sleep() instead. We allow stalls up to 255 usec
174 1.1.1.2.2.2 bouyer * for compatibility with other interpreters and existing BIOSs.
175 1.1.1.2.2.2 bouyer *
176 1.1.1.2.2.2 bouyer ******************************************************************************/
177 1.1.1.2.2.2 bouyer
178 1.1.1.2.2.2 bouyer ACPI_STATUS
179 1.1.1.2.2.2 bouyer AcpiExSystemDoStall (
180 1.1.1.2.2.2 bouyer UINT32 HowLong)
181 1.1.1.2.2.2 bouyer {
182 1.1.1.2.2.2 bouyer ACPI_STATUS Status = AE_OK;
183 1.1.1.2.2.2 bouyer
184 1.1.1.2.2.2 bouyer
185 1.1.1.2.2.2 bouyer ACPI_FUNCTION_ENTRY ();
186 1.1.1.2.2.2 bouyer
187 1.1.1.2.2.2 bouyer
188 1.1.1.2.2.2 bouyer if (HowLong > 255) /* 255 microseconds */
189 1.1.1.2.2.2 bouyer {
190 1.1.1.2.2.2 bouyer /*
191 1.1.1.2.2.2 bouyer * Longer than 255 usec, this is an error
192 1.1.1.2.2.2 bouyer *
193 1.1.1.2.2.2 bouyer * (ACPI specifies 100 usec as max, but this gives some slack in
194 1.1.1.2.2.2 bouyer * order to support existing BIOSs)
195 1.1.1.2.2.2 bouyer */
196 1.1.1.2.2.2 bouyer ACPI_ERROR ((AE_INFO, "Time parameter is too large (%u)",
197 1.1.1.2.2.2 bouyer HowLong));
198 1.1.1.2.2.2 bouyer Status = AE_AML_OPERAND_VALUE;
199 1.1.1.2.2.2 bouyer }
200 1.1.1.2.2.2 bouyer else
201 1.1.1.2.2.2 bouyer {
202 1.1.1.2.2.2 bouyer AcpiOsStall (HowLong);
203 1.1.1.2.2.2 bouyer }
204 1.1.1.2.2.2 bouyer
205 1.1.1.2.2.2 bouyer return (Status);
206 1.1.1.2.2.2 bouyer }
207 1.1.1.2.2.2 bouyer
208 1.1.1.2.2.2 bouyer
209 1.1.1.2.2.2 bouyer /*******************************************************************************
210 1.1.1.2.2.2 bouyer *
211 1.1.1.2.2.2 bouyer * FUNCTION: AcpiExSystemDoSleep
212 1.1.1.2.2.2 bouyer *
213 1.1.1.2.2.2 bouyer * PARAMETERS: HowLong - The amount of time to sleep,
214 1.1.1.2.2.2 bouyer * in milliseconds
215 1.1.1.2.2.2 bouyer *
216 1.1.1.2.2.2 bouyer * RETURN: None
217 1.1.1.2.2.2 bouyer *
218 1.1.1.2.2.2 bouyer * DESCRIPTION: Sleep the running thread for specified amount of time.
219 1.1.1.2.2.2 bouyer *
220 1.1.1.2.2.2 bouyer ******************************************************************************/
221 1.1.1.2.2.2 bouyer
222 1.1.1.2.2.2 bouyer ACPI_STATUS
223 1.1.1.2.2.2 bouyer AcpiExSystemDoSleep (
224 1.1.1.2.2.2 bouyer UINT64 HowLong)
225 1.1.1.2.2.2 bouyer {
226 1.1.1.2.2.2 bouyer ACPI_FUNCTION_ENTRY ();
227 1.1.1.2.2.2 bouyer
228 1.1.1.2.2.2 bouyer
229 1.1.1.2.2.2 bouyer /* Since this thread will sleep, we must release the interpreter */
230 1.1.1.2.2.2 bouyer
231 1.1.1.2.2.2 bouyer AcpiExRelinquishInterpreter ();
232 1.1.1.2.2.2 bouyer
233 1.1.1.2.2.2 bouyer /*
234 1.1.1.2.2.2 bouyer * For compatibility with other ACPI implementations and to prevent
235 1.1.1.2.2.2 bouyer * accidental deep sleeps, limit the sleep time to something reasonable.
236 1.1.1.2.2.2 bouyer */
237 1.1.1.2.2.2 bouyer if (HowLong > ACPI_MAX_SLEEP)
238 1.1.1.2.2.2 bouyer {
239 1.1.1.2.2.2 bouyer HowLong = ACPI_MAX_SLEEP;
240 1.1.1.2.2.2 bouyer }
241 1.1.1.2.2.2 bouyer
242 1.1.1.2.2.2 bouyer AcpiOsSleep (HowLong);
243 1.1.1.2.2.2 bouyer
244 1.1.1.2.2.2 bouyer /* And now we must get the interpreter again */
245 1.1.1.2.2.2 bouyer
246 1.1.1.2.2.2 bouyer AcpiExReacquireInterpreter ();
247 1.1.1.2.2.2 bouyer return (AE_OK);
248 1.1.1.2.2.2 bouyer }
249 1.1.1.2.2.2 bouyer
250 1.1.1.2.2.2 bouyer
251 1.1.1.2.2.2 bouyer /*******************************************************************************
252 1.1.1.2.2.2 bouyer *
253 1.1.1.2.2.2 bouyer * FUNCTION: AcpiExSystemSignalEvent
254 1.1.1.2.2.2 bouyer *
255 1.1.1.2.2.2 bouyer * PARAMETERS: ObjDesc - The object descriptor for this op
256 1.1.1.2.2.2 bouyer *
257 1.1.1.2.2.2 bouyer * RETURN: Status
258 1.1.1.2.2.2 bouyer *
259 1.1.1.2.2.2 bouyer * DESCRIPTION: Provides an access point to perform synchronization operations
260 1.1.1.2.2.2 bouyer * within the AML.
261 1.1.1.2.2.2 bouyer *
262 1.1.1.2.2.2 bouyer ******************************************************************************/
263 1.1.1.2.2.2 bouyer
264 1.1.1.2.2.2 bouyer ACPI_STATUS
265 1.1.1.2.2.2 bouyer AcpiExSystemSignalEvent (
266 1.1.1.2.2.2 bouyer ACPI_OPERAND_OBJECT *ObjDesc)
267 1.1.1.2.2.2 bouyer {
268 1.1.1.2.2.2 bouyer ACPI_STATUS Status = AE_OK;
269 1.1.1.2.2.2 bouyer
270 1.1.1.2.2.2 bouyer
271 1.1.1.2.2.2 bouyer ACPI_FUNCTION_TRACE (ExSystemSignalEvent);
272 1.1.1.2.2.2 bouyer
273 1.1.1.2.2.2 bouyer
274 1.1.1.2.2.2 bouyer if (ObjDesc)
275 1.1.1.2.2.2 bouyer {
276 1.1.1.2.2.2 bouyer Status = AcpiOsSignalSemaphore (ObjDesc->Event.OsSemaphore, 1);
277 1.1.1.2.2.2 bouyer }
278 1.1.1.2.2.2 bouyer
279 1.1.1.2.2.2 bouyer return_ACPI_STATUS (Status);
280 1.1.1.2.2.2 bouyer }
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 * FUNCTION: AcpiExSystemWaitEvent
286 1.1.1.2.2.2 bouyer *
287 1.1.1.2.2.2 bouyer * PARAMETERS: TimeDesc - The 'time to delay' object descriptor
288 1.1.1.2.2.2 bouyer * ObjDesc - The object descriptor for this op
289 1.1.1.2.2.2 bouyer *
290 1.1.1.2.2.2 bouyer * RETURN: Status
291 1.1.1.2.2.2 bouyer *
292 1.1.1.2.2.2 bouyer * DESCRIPTION: Provides an access point to perform synchronization operations
293 1.1.1.2.2.2 bouyer * within the AML. This operation is a request to wait for an
294 1.1.1.2.2.2 bouyer * event.
295 1.1.1.2.2.2 bouyer *
296 1.1.1.2.2.2 bouyer ******************************************************************************/
297 1.1.1.2.2.2 bouyer
298 1.1.1.2.2.2 bouyer ACPI_STATUS
299 1.1.1.2.2.2 bouyer AcpiExSystemWaitEvent (
300 1.1.1.2.2.2 bouyer ACPI_OPERAND_OBJECT *TimeDesc,
301 1.1.1.2.2.2 bouyer ACPI_OPERAND_OBJECT *ObjDesc)
302 1.1.1.2.2.2 bouyer {
303 1.1.1.2.2.2 bouyer ACPI_STATUS Status = AE_OK;
304 1.1.1.2.2.2 bouyer
305 1.1.1.2.2.2 bouyer
306 1.1.1.2.2.2 bouyer ACPI_FUNCTION_TRACE (ExSystemWaitEvent);
307 1.1.1.2.2.2 bouyer
308 1.1.1.2.2.2 bouyer
309 1.1.1.2.2.2 bouyer if (ObjDesc)
310 1.1.1.2.2.2 bouyer {
311 1.1.1.2.2.2 bouyer Status = AcpiExSystemWaitSemaphore (ObjDesc->Event.OsSemaphore,
312 1.1.1.2.2.2 bouyer (UINT16) TimeDesc->Integer.Value);
313 1.1.1.2.2.2 bouyer }
314 1.1.1.2.2.2 bouyer
315 1.1.1.2.2.2 bouyer return_ACPI_STATUS (Status);
316 1.1.1.2.2.2 bouyer }
317 1.1.1.2.2.2 bouyer
318 1.1.1.2.2.2 bouyer
319 1.1.1.2.2.2 bouyer /*******************************************************************************
320 1.1.1.2.2.2 bouyer *
321 1.1.1.2.2.2 bouyer * FUNCTION: AcpiExSystemResetEvent
322 1.1.1.2.2.2 bouyer *
323 1.1.1.2.2.2 bouyer * PARAMETERS: ObjDesc - The object descriptor for this op
324 1.1.1.2.2.2 bouyer *
325 1.1.1.2.2.2 bouyer * RETURN: Status
326 1.1.1.2.2.2 bouyer *
327 1.1.1.2.2.2 bouyer * DESCRIPTION: Reset an event to a known state.
328 1.1.1.2.2.2 bouyer *
329 1.1.1.2.2.2 bouyer ******************************************************************************/
330 1.1.1.2.2.2 bouyer
331 1.1.1.2.2.2 bouyer ACPI_STATUS
332 1.1.1.2.2.2 bouyer AcpiExSystemResetEvent (
333 1.1.1.2.2.2 bouyer ACPI_OPERAND_OBJECT *ObjDesc)
334 1.1.1.2.2.2 bouyer {
335 1.1.1.2.2.2 bouyer ACPI_STATUS Status = AE_OK;
336 1.1.1.2.2.2 bouyer ACPI_SEMAPHORE TempSemaphore;
337 1.1.1.2.2.2 bouyer
338 1.1.1.2.2.2 bouyer
339 1.1.1.2.2.2 bouyer ACPI_FUNCTION_ENTRY ();
340 1.1.1.2.2.2 bouyer
341 1.1.1.2.2.2 bouyer
342 1.1.1.2.2.2 bouyer /*
343 1.1.1.2.2.2 bouyer * We are going to simply delete the existing semaphore and
344 1.1.1.2.2.2 bouyer * create a new one!
345 1.1.1.2.2.2 bouyer */
346 1.1.1.2.2.2 bouyer Status = AcpiOsCreateSemaphore (ACPI_NO_UNIT_LIMIT, 0, &TempSemaphore);
347 1.1.1.2.2.2 bouyer if (ACPI_SUCCESS (Status))
348 1.1.1.2.2.2 bouyer {
349 1.1.1.2.2.2 bouyer (void) AcpiOsDeleteSemaphore (ObjDesc->Event.OsSemaphore);
350 1.1.1.2.2.2 bouyer ObjDesc->Event.OsSemaphore = TempSemaphore;
351 1.1.1.2.2.2 bouyer }
352 1.1.1.2.2.2 bouyer
353 1.1.1.2.2.2 bouyer return (Status);
354 1.1.1.2.2.2 bouyer }
355 1.1.1.2.2.2 bouyer
356