Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit ff9c68e

Browse files
libefiwrapper/ewacpi: support 64-bits compilation
Change-Id: Ic4177c6b2ba7997b0b52e99b16e9a228dfea9d05 Signed-off-by: Jeremy Compostella <[email protected]>
1 parent edb9c79 commit ff9c68e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libefiwrapper/ewacpi.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, Intel Corporation
2+
* Copyright (c) 2016-2020, Intel Corporation
33
* All rights reserved.
44
*
55
* Author: Jérémy Compostella <[email protected]>
@@ -95,10 +95,10 @@ EFI_STATUS ewacpi_get_table(EFI_SYSTEM_TABLE *st, const char *name,
9595
if (!rsdp->xsdt_address)
9696
return EFI_UNSUPPORTED;
9797

98-
xsdt = (struct xsdt_table *)(UINTN)rsdp->xsdt_address;
98+
xsdt = (struct xsdt_table *)(unsigned long)rsdp->xsdt_address;
9999
nb = (xsdt->header.length - sizeof(xsdt->header)) / sizeof(xsdt->entry);
100100
for (i = 0; i < nb; i++) {
101-
cur = (struct acpi_header *)(UINTN)xsdt->entry[i];
101+
cur = (struct acpi_header *)(unsigned long)xsdt->entry[i];
102102
if (memcmp(name, cur->signature, SIG_SIZE))
103103
continue;
104104
ret = validate_table(cur);

0 commit comments

Comments
 (0)