2018-06-27 15:11:33 +02:00
|
|
|
#------------------------------------------------------------------------------
|
2009-08-18 23:24:08 +02:00
|
|
|
#
|
|
|
|
# CpuFlushTlb() for ARM
|
|
|
|
#
|
2018-06-27 15:11:33 +02:00
|
|
|
# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
2010-04-23 17:35:13 +02:00
|
|
|
# Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
|
2019-04-04 01:06:00 +02:00
|
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
2009-08-18 23:24:08 +02:00
|
|
|
#
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
.text
|
|
|
|
.p2align 2
|
2011-02-01 06:01:35 +01:00
|
|
|
GCC_ASM_EXPORT(CpuFlushTlb)
|
2009-08-18 23:24:08 +02:00
|
|
|
|
|
|
|
#/**
|
|
|
|
# Flushes all the Translation Lookaside Buffers(TLB) entries in a CPU.
|
|
|
|
#
|
|
|
|
# Flushes all the Translation Lookaside Buffers(TLB) entries in a CPU.
|
|
|
|
#
|
|
|
|
#**/
|
|
|
|
#VOID
|
|
|
|
#EFIAPI
|
|
|
|
#CpuFlushTlb (
|
|
|
|
# VOID
|
|
|
|
# )#
|
|
|
|
#
|
|
|
|
ASM_PFX(CpuFlushTlb):
|
|
|
|
mov r0,#0
|
2009-08-25 01:45:38 +02:00
|
|
|
mcr p15,0,r0,c8,c5,0 // Invalidate all the unlocked entried in TLB
|
2009-08-18 23:24:08 +02:00
|
|
|
bx LR
|