Module Name: src
Committed By: mlelstv
Date: Fri Mar 1 09:21:06 UTC 2019
Modified Files:
src/sys/dev/acpi: com_acpi.c
Log Message:
Fix build for i386.
The acpi_intr_establish function should really take an AD_HANDLE parameter.
To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/sys/dev/acpi/com_acpi.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/acpi/com_acpi.c
diff -u src/sys/dev/acpi/com_acpi.c:1.39 src/sys/dev/acpi/com_acpi.c:1.40
--- src/sys/dev/acpi/com_acpi.c:1.39 Tue Feb 26 06:15:55 2019
+++ src/sys/dev/acpi/com_acpi.c Fri Mar 1 09:21:06 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: com_acpi.c,v 1.39 2019/02/26 06:15:55 mlelstv Exp $ */
+/* $NetBSD: com_acpi.c,v 1.40 2019/03/01 09:21:06 mlelstv Exp $ */
/*
* Copyright (c) 2002 Jared D. McNeill <[email protected]>
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: com_acpi.c,v 1.39 2019/02/26 06:15:55 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: com_acpi.c,v 1.40 2019/03/01 09:21:06 mlelstv Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -174,7 +174,7 @@ com_acpi_attach(device_t parent, device_
if (!ISSET(sc->sc_hwflags, COM_HW_POLL))
asc->sc_ih = acpi_intr_establish(self,
- (uint64_t)aa->aa_node->ad_handle,
+ (uint64_t)(uintptr_t)aa->aa_node->ad_handle,
IPL_SERIAL, true, comintr, sc, device_xname(self));
if (!pmf_device_register(self, NULL, com_resume))