Current-Users archive

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

acpi problem on ia64



Hi! all,


First of all, see
  http://mail-index.netbsd.org/port-ia64/2009/03/10/msg000099.html


I know 2 problems for acpi.

  1. Can't build acpi on ia64.  Please fix, it attached acpi-ia64.diff.

  2. acpi_timer.c calls x86_enable_intr/x86_disable_intr.  
     But ia64 is no x86...  We neccecary other name.
     (ex. acpi_md_OsDisableInterrupt and ...EnableInter...?)

     # grep able_intr /usr/src/sys/dev/acpi/*
     /usr/src/sys/dev/acpi/acpi_timer.c:     x86_disable_intr();
     /usr/src/sys/dev/acpi/acpi_timer.c:     x86_enable_intr();

Thanks,
--
kiyohara
 P.S. sbp and fwip reported the goodbye to fw_port.h in my tree.

Index: sys/dist/acpica/acmacros.h
===================================================================
RCS file: /cvsroot/src/sys/dist/acpica/acmacros.h,v
retrieving revision 1.4
diff -u -r1.4 acmacros.h
--- sys/dist/acpica/acmacros.h  12 Apr 2008 22:38:20 -0000      1.4
+++ sys/dist/acpica/acmacros.h  14 Mar 2009 06:19:31 -0000
@@ -312,10 +312,10 @@
 
 #define ACPI_MOVE_32_TO_16(d,s)         ACPI_MOVE_16_TO_16(d,s)    /* Truncate 
to 16 */
 
-#define ACPI_MOVE_32_TO_32(d,s)         {((  UINT8 *)(void *)(d))[0] = ((UINT8 
*)(void *)(s))[0];\
-                                         ((  UINT8 *)(void *)(d))[1] = ((UINT8 
*)(void *)(s))[1];\
-                                         ((  UINT8 *)(void *)(d))[2] = ((UINT8 
*)(void *)(s))[2];\
-                                         ((  UINT8 *)(void *)(d))[3] = ((UINT8 
*)(void *)(s))[3];}
+#define ACPI_MOVE_32_TO_32(d,s)         {((  UINT8 *)(void *)(d))[0] = ((const 
UINT8 *)(const void *)(s))[0];\
+                                         ((  UINT8 *)(void *)(d))[1] = ((const 
UINT8 *)(const void *)(s))[1];\
+                                         ((  UINT8 *)(void *)(d))[2] = ((const 
UINT8 *)(const void *)(s))[2];\
+                                         ((  UINT8 *)(void *)(d))[3] = ((const 
UINT8 *)(const void *)(s))[3];}
 
 #define ACPI_MOVE_32_TO_64(d,s)         {(*(UINT64 *)(void *)(d)) = 0; 
ACPI_MOVE_32_TO_32(d,s);}
 


Home | Main Index | Thread Index | Old Index