1 | ;------------------------------------------------------------------------------
|
---|
2 | ;
|
---|
3 | ; CpuFlushTlb() for ARM
|
---|
4 | ;
|
---|
5 | ; Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
---|
6 | ; Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
|
---|
7 | ; SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
8 | ;
|
---|
9 | ;------------------------------------------------------------------------------
|
---|
10 |
|
---|
11 | EXPORT CpuFlushTlb
|
---|
12 | AREA cpu_flush_tlb, CODE, READONLY
|
---|
13 |
|
---|
14 | ;/**
|
---|
15 | ; Flushes all the Translation Lookaside Buffers(TLB) entries in a CPU.
|
---|
16 | ;
|
---|
17 | ; Flushes all the Translation Lookaside Buffers(TLB) entries in a CPU.
|
---|
18 | ;
|
---|
19 | ;**/
|
---|
20 | ;VOID
|
---|
21 | ;EFIAPI
|
---|
22 | ;CpuFlushTlb (
|
---|
23 | ; VOID
|
---|
24 | ; );
|
---|
25 | ;
|
---|
26 | CpuFlushTlb
|
---|
27 | MOV r0,#0
|
---|
28 | MCR p15,0,r0,c8,c5,0 ;Invalidate all the unlocked entried in TLB
|
---|
29 | BX LR
|
---|
30 |
|
---|
31 | END
|
---|