Recent acpica imports have changed the lengths from UINT32 to ACPI_SIZE,
which is 64 bit on ia64. Fix it.
This commit is contained in:
parent
d174b27395
commit
75a3a26d2a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=92118
@ -42,7 +42,7 @@
|
||||
static MALLOC_DEFINE(M_ACPICA, "acpica", "ACPI CA memory pool");
|
||||
|
||||
void *
|
||||
AcpiOsAllocate(UINT32 Size)
|
||||
AcpiOsAllocate(ACPI_SIZE Size)
|
||||
{
|
||||
return(malloc(Size, M_ACPICA, M_NOWAIT));
|
||||
}
|
||||
@ -54,7 +54,7 @@ AcpiOsFree (void *Memory)
|
||||
}
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiOsMapMemory (ACPI_PHYSICAL_ADDRESS PhysicalAddress, UINT32 Length, void **LogicalAddress)
|
||||
AcpiOsMapMemory (ACPI_PHYSICAL_ADDRESS PhysicalAddress, ACPI_SIZE Length, void **LogicalAddress)
|
||||
{
|
||||
*LogicalAddress = pmap_mapdev((vm_offset_t)PhysicalAddress, Length);
|
||||
if (*LogicalAddress == NULL)
|
||||
@ -63,7 +63,7 @@ AcpiOsMapMemory (ACPI_PHYSICAL_ADDRESS PhysicalAddress, UINT32 Length, void **Lo
|
||||
}
|
||||
|
||||
void
|
||||
AcpiOsUnmapMemory (void *LogicalAddress, UINT32 Length)
|
||||
AcpiOsUnmapMemory (void *LogicalAddress, ACPI_SIZE Length)
|
||||
{
|
||||
pmap_unmapdev((vm_offset_t)LogicalAddress, Length);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user