diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2017-03-01 16:31:39 +0000 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2017-03-07 09:37:09 +0100 |
commit | f49ea03de77d9928d2917e2594585919a51f6cff (patch) | |
tree | e074f5fd56889db3872aa8f3ff6c887e05f79246 /ArmPkg/Library/ArmMmuLib/Arm | |
parent | dfd85675f9cc2603f3f09ceb18ff4f01b025d27f (diff) | |
download | edk2-f49ea03de77d9928d2917e2594585919a51f6cff.zip edk2-f49ea03de77d9928d2917e2594585919a51f6cff.tar.gz edk2-f49ea03de77d9928d2917e2594585919a51f6cff.tar.bz2 |
ArmPkg/ArmMmuLib: use correct return type for exported functions
The routines ArmConfigureMmu(), SetMemoryAttributes() [*] and the
various set/clear read-only/no-exec routines are declared as returning
EFI_STATUS in the respective header files, so align the definitions with
that.
* SetMemoryAttributes() is declared in the wrong header (and defined in
ArmMmuLib for AARCH64 and in CpuDxe for ARM)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Diffstat (limited to 'ArmPkg/Library/ArmMmuLib/Arm')
-rw-r--r-- | ArmPkg/Library/ArmMmuLib/Arm/ArmMmuLibCore.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/ArmPkg/Library/ArmMmuLib/Arm/ArmMmuLibCore.c b/ArmPkg/Library/ArmMmuLib/Arm/ArmMmuLibCore.c index 4b6f4ce..f981c5b 100644 --- a/ArmPkg/Library/ArmMmuLib/Arm/ArmMmuLibCore.c +++ b/ArmPkg/Library/ArmMmuLib/Arm/ArmMmuLibCore.c @@ -406,40 +406,41 @@ ArmConfigureMmu ( return RETURN_SUCCESS;
}
-RETURN_STATUS
+
+EFI_STATUS
ArmSetMemoryRegionNoExec (
IN EFI_PHYSICAL_ADDRESS BaseAddress,
IN UINT64 Length
)
{
- return RETURN_UNSUPPORTED;
+ return EFI_UNSUPPORTED;
}
-RETURN_STATUS
+EFI_STATUS
ArmClearMemoryRegionNoExec (
IN EFI_PHYSICAL_ADDRESS BaseAddress,
IN UINT64 Length
)
{
- return RETURN_UNSUPPORTED;
+ return EFI_UNSUPPORTED;
}
-RETURN_STATUS
+EFI_STATUS
ArmSetMemoryRegionReadOnly (
IN EFI_PHYSICAL_ADDRESS BaseAddress,
IN UINT64 Length
)
{
- return RETURN_UNSUPPORTED;
+ return EFI_UNSUPPORTED;
}
-RETURN_STATUS
+EFI_STATUS
ArmClearMemoryRegionReadOnly (
IN EFI_PHYSICAL_ADDRESS BaseAddress,
IN UINT64 Length
)
{
- return RETURN_UNSUPPORTED;
+ return EFI_UNSUPPORTED;
}
RETURN_STATUS
|