patch-2.4.20 linux-2.4.20/drivers/acpi/include/platform/aclinux.h
Next file: linux-2.4.20/drivers/acpi/namespace/nsdump.c
Previous file: linux-2.4.20/drivers/acpi/include/platform/acgcc.h
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Thu Nov 28 15:53:12 2002
- Orig file:
linux-2.4.19/drivers/acpi/include/platform/aclinux.h
- Orig date:
Wed Oct 24 14:06:22 2001
diff -urN linux-2.4.19/drivers/acpi/include/platform/aclinux.h linux-2.4.20/drivers/acpi/include/platform/aclinux.h
@@ -58,5 +58,14 @@
#undef DEBUGGER_THREADING
#define DEBUGGER_THREADING DEBUGGER_SINGLE_THREADED
+#if BITS_PER_LONG < 64
+/* Linux ia32 can't do int64 well */
+#define ACPI_NO_INTEGER64_SUPPORT
+/* And the ia32 kernel doesn't include 64-bit divide support */
+#define ACPI_DIV64(dividend, divisor) do_div(dividend, divisor)
+#else
+#define ACPI_DIV64(dividend, divisor) ACPI_DIVIDE(dividend, divisor)
+#endif
+
#endif /* __ACLINUX_H__ */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)