Compile TSC support code when __x86_64__ is defined.
This commit is contained in:
parent
ec36bf86ae
commit
a73f92f0e2
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cpu.c,v 1.4 2004/02/19 17:18:38 drochner Exp $ */
|
||||
/* $NetBSD: cpu.c,v 1.5 2004/04/30 17:58:04 toshii Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||
|
@ -71,7 +71,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.4 2004/02/19 17:18:38 drochner Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.5 2004/04/30 17:58:04 toshii Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_multiprocessor.h"
|
||||
|
@ -561,7 +561,7 @@ cpu_hatch(void *v)
|
|||
enable_intr();
|
||||
|
||||
printf("%s: CPU %u running\n",ci->ci_dev->dv_xname, ci->ci_cpuid);
|
||||
#if defined(I586_CPU) || defined(I686_CPU)
|
||||
#if defined(I586_CPU) || defined(I686_CPU) || defined(__x86_64__)
|
||||
if (ci->ci_feature_flags & CPUID_TSC)
|
||||
cc_microset(ci);
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: clock.c,v 1.3 2003/08/07 16:26:37 agc Exp $ */
|
||||
/* $NetBSD: clock.c,v 1.4 2004/04/30 17:58:04 toshii Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
|
@ -121,7 +121,7 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.3 2003/08/07 16:26:37 agc Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.4 2004/04/30 17:58:04 toshii Exp $");
|
||||
|
||||
/* #define CLOCKDEBUG */
|
||||
/* #define CLOCK_PARANOIA */
|
||||
|
@ -424,7 +424,7 @@ startrtclock()
|
|||
int
|
||||
clockintr(void *arg, struct intrframe frame)
|
||||
{
|
||||
#if defined(I586_CPU) || defined(I686_CPU)
|
||||
#if defined(I586_CPU) || defined(I686_CPU) || defined(__x86_64__)
|
||||
static int microset_iter; /* call cc_microset once/sec */
|
||||
struct cpu_info *ci = curcpu();
|
||||
|
||||
|
@ -785,7 +785,7 @@ inittodr(base)
|
|||
mc_todregs rtclk;
|
||||
struct clock_ymdhms dt;
|
||||
int s;
|
||||
#if defined(I586_CPU) || defined(I686_CPU)
|
||||
#if defined(I586_CPU) || defined(I686_CPU) || defined(__x86_64__)
|
||||
struct cpu_info *ci = curcpu();
|
||||
#endif
|
||||
/*
|
||||
|
@ -850,7 +850,7 @@ inittodr(base)
|
|||
#ifdef DEBUG_CLOCK
|
||||
printf("readclock: %ld (%ld)\n", time.tv_sec, base);
|
||||
#endif
|
||||
#if defined(I586_CPU) || defined(I686_CPU)
|
||||
#if defined(I586_CPU) || defined(I686_CPU) || defined(__x86_64__)
|
||||
if (ci->ci_feature_flags & CPUID_TSC) {
|
||||
cc_microset_time = time;
|
||||
cc_microset(ci);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: lapic.c,v 1.5 2004/04/10 14:49:55 kochi Exp $ */
|
||||
/* $NetBSD: lapic.c,v 1.6 2004/04/30 17:58:04 toshii Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||
|
@ -39,7 +39,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: lapic.c,v 1.5 2004/04/10 14:49:55 kochi Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: lapic.c,v 1.6 2004/04/30 17:58:04 toshii Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_multiprocessor.h"
|
||||
|
@ -234,7 +234,7 @@ u_int32_t lapic_delaytab[26];
|
|||
void
|
||||
lapic_clockintr(void *arg, struct intrframe frame)
|
||||
{
|
||||
#if defined(I586_CPU) || defined(I686_CPU)
|
||||
#if defined(I586_CPU) || defined(I686_CPU) || defined(__x86_64__)
|
||||
static int microset_iter; /* call cc_microset once/sec */
|
||||
struct cpu_info *ci = curcpu();
|
||||
|
||||
|
|
Loading…
Reference in New Issue