2018-11-27 11:43:57 +01:00
|
|
|
/** @file
|
|
|
|
|
|
|
|
Copyright (c) 2018, ARM Ltd. All rights reserved.
|
|
|
|
|
2019-04-04 01:03:18 +02:00
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
2018-11-27 11:43:57 +01:00
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef __STANDALONEMM_MMU_LIB__
|
|
|
|
#define __STANDALONEMM_MMU_LIB__
|
|
|
|
|
|
|
|
EFI_STATUS
|
|
|
|
ArmSetMemoryRegionNoExec (
|
|
|
|
IN EFI_PHYSICAL_ADDRESS BaseAddress,
|
|
|
|
IN UINT64 Length
|
|
|
|
);
|
|
|
|
|
|
|
|
EFI_STATUS
|
|
|
|
ArmClearMemoryRegionNoExec (
|
|
|
|
IN EFI_PHYSICAL_ADDRESS BaseAddress,
|
|
|
|
IN UINT64 Length
|
|
|
|
);
|
|
|
|
|
|
|
|
EFI_STATUS
|
|
|
|
ArmSetMemoryRegionReadOnly (
|
|
|
|
IN EFI_PHYSICAL_ADDRESS BaseAddress,
|
|
|
|
IN UINT64 Length
|
|
|
|
);
|
|
|
|
|
|
|
|
EFI_STATUS
|
|
|
|
ArmClearMemoryRegionReadOnly (
|
|
|
|
IN EFI_PHYSICAL_ADDRESS BaseAddress,
|
|
|
|
IN UINT64 Length
|
|
|
|
);
|
|
|
|
|
|
|
|
#endif /* __STANDALONEMM_MMU_LIB__ */
|