summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorvin Köhne <corvink@freebsd.org>2023-06-21 09:31:11 +0200
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-06-23 17:26:37 +0000
commit8f63f4143de4e58c7efe616407862edb890d96e5 (patch)
tree9673dbca4d2a509334eda79cd3f786652ab478ed
parent6ee981c858daeb08c8ab6d357a55c131875aae3a (diff)
downloadedk2-8f63f4143de4e58c7efe616407862edb890d96e5.tar.gz
edk2-8f63f4143de4e58c7efe616407862edb890d96e5.tar.bz2
edk2-8f63f4143de4e58c7efe616407862edb890d96e5.zip
OvmfPkg/Library: fix definition of GetAcpiRsdpFromMemory
The definition and declaration of GetAcpiRsdpFromMemory doesn't match. We don't get a compile error yet because UINTN is the same as UINT64 on 64bit machines. As the function works on memory addresses, UINTN is the correct type of the input parameters. Signed-off-by: Corvin Köhne <corvink@FreeBSD.org> Tested-by: Gerd Hoffmann <kraxel@redhat.com> Acked-by: Gerd Hoffmann <kraxel@redhat.com> Acked-by: Peter Grehan <grehan@freebsd.org>
-rw-r--r--OvmfPkg/Include/Library/AcpiPlatformLib.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/OvmfPkg/Include/Library/AcpiPlatformLib.h b/OvmfPkg/Include/Library/AcpiPlatformLib.h
index 73a1706360..78d5010e91 100644
--- a/OvmfPkg/Include/Library/AcpiPlatformLib.h
+++ b/OvmfPkg/Include/Library/AcpiPlatformLib.h
@@ -20,8 +20,8 @@
EFI_STATUS
EFIAPI
GetAcpiRsdpFromMemory (
- IN UINT64 StartAddress,
- IN UINT64 EndAddress,
+ IN UINTN StartAddress,
+ IN UINTN EndAddress,
OUT EFI_ACPI_2_0_ROOT_SYSTEM_DESCRIPTION_POINTER **RsdpPtr
);