summaryrefslogtreecommitdiffstats
path: root/sys/pc98
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2007-03-04 04:59:39 +0000
committernyan <nyan@FreeBSD.org>2007-03-04 04:59:39 +0000
commitd5d6cb928bd49c3b8d68c9a50f7c366f97b07530 (patch)
tree4a68667ec1244ff72308fa73b432646aba64fbe2 /sys/pc98
parent234d255ea3a9a8418adeaa69d34359b6c3f08034 (diff)
downloadFreeBSD-src-d5d6cb928bd49c3b8d68c9a50f7c366f97b07530.zip
FreeBSD-src-d5d6cb928bd49c3b8d68c9a50f7c366f97b07530.tar.gz
Reduce diffs with i386.
Diffstat (limited to 'sys/pc98')
-rw-r--r--sys/pc98/cbus/clock.c16
-rw-r--r--sys/pc98/cbus/pcrtc.c16
2 files changed, 20 insertions, 12 deletions
diff --git a/sys/pc98/cbus/clock.c b/sys/pc98/cbus/clock.c
index 2b68e95..5c0155f 100644
--- a/sys/pc98/cbus/clock.c
+++ b/sys/pc98/cbus/clock.c
@@ -30,9 +30,11 @@
* SUCH DAMAGE.
*
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91
- * $FreeBSD$
*/
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
+
/*
* Routines to handle clock hardware.
*/
@@ -103,9 +105,9 @@ int statclock_disable;
u_int timer_freq = TIMER_FREQ;
int timer0_max_count;
int timer0_real_max_count;
-struct mtx clock_lock;
static int beeping = 0;
+static struct mtx clock_lock;
static struct intsrc *i8254_intsrc;
static u_int32_t i8254_lastcount;
static u_int32_t i8254_offset;
@@ -119,7 +121,7 @@ static int using_lapic_timer;
#define ACQUIRED 2
#define ACQUIRE_PENDING 3
-static u_char timer1_state;
+static u_char timer1_state;
static u_char timer2_state;
static void rtc_serialcombit(int);
static void rtc_serialcom(int);
@@ -394,8 +396,8 @@ static void findcpuspeed(void)
static u_int
calibrate_clocks(void)
{
- int timeout;
- u_int count, prev_count, tot_count;
+ int timeout;
+ u_int count, prev_count, tot_count;
u_short sec, start_sec;
if (bootverbose)
@@ -418,6 +420,8 @@ calibrate_clocks(void)
if (--timeout == 0)
goto fail;
}
+
+ /* Start keeping track of the i8254 counter. */
prev_count = getit();
if (prev_count == 0 || prev_count > timer0_max_count)
goto fail;
@@ -659,7 +663,7 @@ inittodr(time_t base)
void
resettodr()
{
- struct timespec ts;
+ struct timespec ts;
struct clocktime ct;
if (disable_rtc_set)
diff --git a/sys/pc98/cbus/pcrtc.c b/sys/pc98/cbus/pcrtc.c
index 2b68e95..5c0155f 100644
--- a/sys/pc98/cbus/pcrtc.c
+++ b/sys/pc98/cbus/pcrtc.c
@@ -30,9 +30,11 @@
* SUCH DAMAGE.
*
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91
- * $FreeBSD$
*/
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
+
/*
* Routines to handle clock hardware.
*/
@@ -103,9 +105,9 @@ int statclock_disable;
u_int timer_freq = TIMER_FREQ;
int timer0_max_count;
int timer0_real_max_count;
-struct mtx clock_lock;
static int beeping = 0;
+static struct mtx clock_lock;
static struct intsrc *i8254_intsrc;
static u_int32_t i8254_lastcount;
static u_int32_t i8254_offset;
@@ -119,7 +121,7 @@ static int using_lapic_timer;
#define ACQUIRED 2
#define ACQUIRE_PENDING 3
-static u_char timer1_state;
+static u_char timer1_state;
static u_char timer2_state;
static void rtc_serialcombit(int);
static void rtc_serialcom(int);
@@ -394,8 +396,8 @@ static void findcpuspeed(void)
static u_int
calibrate_clocks(void)
{
- int timeout;
- u_int count, prev_count, tot_count;
+ int timeout;
+ u_int count, prev_count, tot_count;
u_short sec, start_sec;
if (bootverbose)
@@ -418,6 +420,8 @@ calibrate_clocks(void)
if (--timeout == 0)
goto fail;
}
+
+ /* Start keeping track of the i8254 counter. */
prev_count = getit();
if (prev_count == 0 || prev_count > timer0_max_count)
goto fail;
@@ -659,7 +663,7 @@ inittodr(time_t base)
void
resettodr()
{
- struct timespec ts;
+ struct timespec ts;
struct clocktime ct;
if (disable_rtc_set)
OpenPOWER on IntegriCloud