aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/include/clock.h
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2007-01-23 08:01:20 +0000
committerBruce Evans <bde@FreeBSD.org>2007-01-23 08:01:20 +0000
commit71799af2d5e1a71abcb4c830af371fa28c85d3c1 (patch)
treef0e1eb361836da7c3492fa9da1f26ee29d68baa6 /sys/amd64/include/clock.h
parent7826bf983ce93debdaafcecf823552fe59903700 (diff)
downloadsrc-71799af2d5e1a71abcb4c830af371fa28c85d3c1.tar.gz
src-71799af2d5e1a71abcb4c830af371fa28c85d3c1.zip
Cleaned up declaration and initialization of clock_lock. It is only
used by clock code, so don't export it to the world for machdep.c to initialize. There is a minor problem initializing it before it is used, since although clock initialization is split up so that parts of it can be done early, the first part was never done early enough to actually work. Split it up a bit more and do the first part as late as possible to document the necessary order. The functions that implement the split are still bogusly exported. Cleaned up initialization of the i8254 clock hardware using the new split. Actually initialize it early enough, and don't work around it not being initialized in DELAY() when DELAY() is called early for initialization of some console drivers. This unfortunately moves a little more code before the early debugger breakpoint so that it is harder to debug. The ordering of console and related initialization is delicate because we want to do as little as possible before the breakpoint, but must initialize a console.
Notes
Notes: svn path=/head/; revision=166186
Diffstat (limited to 'sys/amd64/include/clock.h')
-rw-r--r--sys/amd64/include/clock.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/amd64/include/clock.h b/sys/amd64/include/clock.h
index 36d0bebe00cf..30c2f26ec7c6 100644
--- a/sys/amd64/include/clock.h
+++ b/sys/amd64/include/clock.h
@@ -22,7 +22,8 @@ extern u_int timer_freq;
extern int timer0_max_count;
extern uint64_t tsc_freq;
extern int tsc_is_broken;
-extern struct mtx clock_lock;
+
+void i8254_init(void);
/*
* Driver to clock driver interface.