diff options
author | Bruce Evans <bde@FreeBSD.org> | 2007-01-23 08:01:20 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 2007-01-23 08:01:20 +0000 |
commit | 71799af2d5e1a71abcb4c830af371fa28c85d3c1 (patch) | |
tree | f0e1eb361836da7c3492fa9da1f26ee29d68baa6 /sys/i386/include/clock.h | |
parent | 7826bf983ce93debdaafcecf823552fe59903700 (diff) |
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/i386/include/clock.h')
-rw-r--r-- | sys/i386/include/clock.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/i386/include/clock.h b/sys/i386/include/clock.h index 74679b9210ce..a91b25248735 100644 --- a/sys/i386/include/clock.h +++ b/sys/i386/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. |