Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/acpi/acpica cast curlwp to uintptr_t before casting ...



details:   https://anonhg.NetBSD.org/src/rev/e18d2f1ddab3
branches:  trunk
changeset: 762190:e18d2f1ddab3
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Thu Feb 17 10:35:50 2011 +0000

description:
cast curlwp to uintptr_t before casting to ACPI_THREAD_ID, fixes i386 build

diffstat:

 sys/dev/acpi/acpica/OsdSchedule.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 1edbc75808cb -r e18d2f1ddab3 sys/dev/acpi/acpica/OsdSchedule.c
--- a/sys/dev/acpi/acpica/OsdSchedule.c Thu Feb 17 10:23:43 2011 +0000
+++ b/sys/dev/acpi/acpica/OsdSchedule.c Thu Feb 17 10:35:50 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: OsdSchedule.c,v 1.15 2010/06/05 16:57:48 jruoho Exp $  */
+/*     $NetBSD: OsdSchedule.c,v 1.16 2011/02/17 10:35:50 jmcneill Exp $        */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: OsdSchedule.c,v 1.15 2010/06/05 16:57:48 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: OsdSchedule.c,v 1.16 2011/02/17 10:35:50 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/malloc.h>
@@ -87,7 +87,7 @@
 ACPI_THREAD_ID
 AcpiOsGetThreadId(void)
 {
-       return (ACPI_THREAD_ID)curlwp;
+       return (ACPI_THREAD_ID)(uintptr_t)curlwp;
 }
 
 /*



Home | Main Index | Thread Index | Old Index