[rtems-libbsd commit] Fix buiding for the i386.
Chris Johns
chrisj at rtems.org
Thu Jul 16 22:02:08 UTC 2015
Module: rtems-libbsd
Branch: master
Commit: 62017568298324bf8b9c0673852e607f6fd8013d
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=62017568298324bf8b9c0673852e607f6fd8013d
Author: Chris Johns <chrisj at rtems.org>
Date: Thu Jul 16 21:05:47 2015 +1000
Fix buiding for the i386.
---
freebsd/sys/contrib/altq/altq/altq_subr.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/freebsd/sys/contrib/altq/altq/altq_subr.c b/freebsd/sys/contrib/altq/altq/altq_subr.c
index 3ebd58d..fbbf589 100644
--- a/freebsd/sys/contrib/altq/altq/altq_subr.c
+++ b/freebsd/sys/contrib/altq/altq/altq_subr.c
@@ -930,6 +930,7 @@ init_machclk_setup(void)
#if defined(__NetBSD__) && defined(MULTIPROCESSOR)
machclk_usepcc = 0;
#endif
+#if !defined(__rtems__)
#if defined(__amd64__) || defined(__i386__)
/* check if TSC is available */
#ifdef __FreeBSD__
@@ -938,6 +939,7 @@ init_machclk_setup(void)
#else
if ((cpu_feature & CPUID_TSC) == 0)
#endif
+#endif /* __rtems__ */
machclk_usepcc = 0;
#endif
}
@@ -968,6 +970,7 @@ init_machclk(void)
* accessible, just use it.
*/
#if defined(__amd64__) || defined(__i386__)
+#ifndef __rtems__
#ifdef __FreeBSD__
machclk_freq = atomic_load_acq_64(&tsc_freq);
#elif defined(__NetBSD__)
@@ -975,6 +978,7 @@ init_machclk(void)
#elif defined(__OpenBSD__) && (defined(I586_CPU) || defined(I686_CPU))
machclk_freq = pentium_mhz * 1000000;
#endif
+#endif /* __rtems */
#endif
/*
More information about the vc
mailing list