]>
Commit | Line | Data |
---|---|---|
deb65d6c HL |
1 | #------------------------------------------------------------------------------\r |
2 | #\r | |
3 | # CpuFlushTlb() for ARM\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 |
deb65d6c HL |
9 | #\r |
10 | #------------------------------------------------------------------------------\r | |
11 | \r | |
12 | .text\r | |
13 | .p2align 2\r | |
0f895683 | 14 | GCC_ASM_EXPORT(CpuFlushTlb)\r |
deb65d6c HL |
15 | \r |
16 | #/**\r | |
17 | # Flushes all the Translation Lookaside Buffers(TLB) entries in a CPU.\r | |
18 | #\r | |
19 | # Flushes all the Translation Lookaside Buffers(TLB) entries in a CPU.\r | |
20 | #\r | |
21 | #**/\r | |
22 | #VOID\r | |
23 | #EFIAPI\r | |
24 | #CpuFlushTlb (\r | |
25 | # VOID\r | |
26 | # )#\r | |
27 | #\r | |
28 | ASM_PFX(CpuFlushTlb):\r | |
29 | tlbi vmalle1 // Invalidate Inst TLB and Data TLB\r | |
30 | dsb sy\r | |
31 | isb\r | |
32 | ret\r |