[PATCH v2] Fix buiding for the i386.
Gedare Bloom
gedare at gwu.edu
Thu Jul 16 13:13:59 UTC 2015
Thanks for following conventions. I guess this replaces the one Joel
sent yesterday?
On Thu, Jul 16, 2015 at 7:11 AM, Chris Johns <chrisj at rtems.org> wrote:
> ---
> 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
>
> /*
> --
> 2.2.2
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
More information about the devel
mailing list