]>
Commit | Line | Data |
---|---|---|
55f67014 PB |
1 | ;------------------------------------------------------------------------------\r |
2 | ;\r | |
3 | ; CpuSleep() for AArch64\r | |
4 | ;\r | |
5 | ; Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r | |
6 | ; Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r | |
7 | ; Portions copyright (c) 2011 - 2013, ARM LTD. All rights reserved.<BR>\r | |
9344f092 | 8 | ; SPDX-License-Identifier: BSD-2-Clause-Patent\r |
55f67014 PB |
9 | ;\r |
10 | ;------------------------------------------------------------------------------\r | |
11 | \r | |
12 | EXPORT CpuSleep\r | |
13 | AREA BaseCpuLib_LowLevel, CODE, READONLY\r | |
14 | \r | |
15 | ;/**\r | |
16 | ; Places the CPU in a sleep state until an interrupt is received.\r | |
17 | ;\r | |
18 | ; Places the CPU in a sleep state until an interrupt is received. If interrupts\r | |
19 | ; are disabled prior to calling this function, then the CPU will be placed in a\r | |
20 | ; sleep state indefinitely.\r | |
21 | ;\r | |
22 | ;**/\r | |
23 | ;VOID\r | |
24 | ;EFIAPI\r | |
25 | ;CpuSleep (\r | |
26 | ; VOID\r | |
27 | ; );\r | |
28 | ;\r | |
29 | \r | |
30 | CpuSleep\r | |
31 | wfi\r | |
32 | ret\r | |
33 | \r | |
34 | END\r |