From 008531d59980ae7a5f7f3090057a8fdea1e63d5e Mon Sep 17 00:00:00 2001 From: bde Date: Tue, 30 Jul 1996 19:26:55 +0000 Subject: Fixed the machdep.i8254_freq and machdep.i586_freq sysctls. Writes were handled bogusly. Centralized the setting of all the frequency variables. Set these variables atomically. Some new ones aren't used yet. --- sys/i386/include/clock.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sys/i386/include/clock.h') diff --git a/sys/i386/include/clock.h b/sys/i386/include/clock.h index 830ae13..0439363 100644 --- a/sys/i386/include/clock.h +++ b/sys/i386/include/clock.h @@ -3,7 +3,7 @@ * Garrett Wollman, September 1994. * This file is in the public domain. * - * $Id: clock.h,v 1.13 1996/05/01 08:38:50 bde Exp $ + * $Id: clock.h,v 1.14 1996/06/14 11:00:56 asami Exp $ */ #ifndef _MACHINE_CLOCK_H_ @@ -38,6 +38,8 @@ #define CPU_THISTICKLEN(dflt) dflt #endif +#define I586_CTR_COMULTIPLIER_SHIFT 20 +#define I586_CTR_MULTIPLIER_SHIFT 32 #define I586_CTR_RATE_SHIFT 8 #if defined(KERNEL) && !defined(LOCORE) @@ -55,7 +57,9 @@ extern int statclock_disable; extern int wall_cmos_clock; #if defined(I586_CPU) || defined(I686_CPU) -extern unsigned i586_ctr_freq; +extern u_int i586_ctr_comultiplier; +extern u_int i586_ctr_freq; +extern u_int i586_ctr_multiplier; extern unsigned i586_ctr_rate; /* fixed point */ extern long long i586_last_tick; extern long long i586_ctr_bias; -- cgit v1.1