va_list Args)
{
+ printf("ACPI: ");
vprintf (Fmt, Args);
printf("\n");
}
ACPI_PHYSICAL_ADDRESS where, /* not page aligned */
ACPI_SIZE length) /* in bytes, not page-aligned */
{
- ACPI_PHYSICAL_ADDRESS addr;
- void * vir;
- unsigned sdiff;
-
- addr = where & ~0xfff; /* align to 4k */
- sdiff = where - addr;
- vir = vm_map_phys(SELF, (void *) addr, length + sdiff);
-
- return (void *) ((char *)vir + sdiff);
+ return vm_map_phys(SELF, (void *) where, length);
}
void *where,
ACPI_SIZE length)
{
+ vm_unmap_phys(SELF, where, length);
}
ACPI_OSD_HANDLER ServiceRoutine,
void *Context)
{
- printf("AcpiOsInstallInterruptHandler NOT SUPPORTED\n");
+ printf("ACPI: no support for power interrupt yet\n");
return AE_OK;
}
UINT32 InterruptNumber,
ACPI_OSD_HANDLER ServiceRoutine)
{
- printf("AcpiOsRemoveInterruptHandler NOT SUPPORTED\n");
+ printf("ACPI: no support for power interrupt yet\n");
return AE_OK;
}
case 32:
sys_inl(Address, Value);
break;
+ default:
+ panic("unsupported width: %d", Width);
}
return AE_OK;
}
case 32:
sys_outl(Address, Value);
break;
+ default:
+ panic("unsupported width: %d", Width);
}
return AE_OK;
- return AE_OK;
}