2.1.116-pre1 works only on i586+ systems

Matti Aarnio (matti.aarnio@sonera.fi)
Mon, 10 Aug 1998 11:36:28 +0300 (EEST)


In file include/linux/io_trace.h there is a define
for get_iot_timestamp(), which works ONLY on i586,
and i686 systems. Assemblying it fails on Alphas,
for example...

I made a kludge-diff attached to the end..

/Matti Aarnio <matti.aarnio@sonera.fi>

--- linux-2.1.116-pre1/include/linux/io_trace.h~ Mon Aug 10 10:04:46 1998
+++ linux-2.1.116-pre1/include/linux/io_trace.h Mon Aug 10 11:29:27 1998
@@ -3,11 +3,15 @@

/* FIXME: works only on P5+'s */

+#if defined(CONFIG_M586)||defined(CONFIG_M686)
#define get_iot_timestamp() \
({ register unsigned long long __res; \
__asm__ __volatile__(".byte 0x0f,0x31" : "=A"(__res)); \
__res; \
})
+#else
+#define get_iot_timestamp() 0UL /* DUMMY! */
+#endif

#define NR_IOT 50000

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html