projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
auto conf, bus control, conventions, interrupt control, per host config
[unix-history]
/
usr
/
src
/
sys
/
i386
/
isa
/
clock.c
diff --git
a/usr/src/sys/i386/isa/clock.c
b/usr/src/sys/i386/isa/clock.c
index
dfc401b
..
fa14032
100644
(file)
--- a/
usr/src/sys/i386/isa/clock.c
+++ b/
usr/src/sys/i386/isa/clock.c
@@
-9,7
+9,7
@@
*
* %sccs.include.386.c%
*
*
* %sccs.include.386.c%
*
- * @(#)clock.c 5.
3
(Berkeley) %G%
+ * @(#)clock.c 5.
4
(Berkeley) %G%
*/
/*
*/
/*
@@
-18,8
+18,9
@@
#include "param.h"
#include "time.h"
#include "kernel.h"
#include "param.h"
#include "time.h"
#include "kernel.h"
-#include "icu.h"
-#include "isa.h"
+#include "machine/segments.h"
+#include "machine/isa/icu.h"
+#include "machine/isa/isa.h"
#define DAYST 119
#define DAYEN 303
#define DAYST 119
#define DAYEN 303
@@
-27,9
+28,9
@@
startrtclock() {
/* initialize 8253 clock */
startrtclock() {
/* initialize 8253 clock */
- outb (IO_TIMER
0
+3, 0x36);
- outb (IO_TIMER
0
, 1193182/hz);
- outb (IO_TIMER
0
, (1193182/hz)/256);
+ outb (IO_TIMER
1
+3, 0x36);
+ outb (IO_TIMER
1
, 1193182/hz);
+ outb (IO_TIMER
1
, (1193182/hz)/256);
}
/* convert 2 digit BCD number */
}
/* convert 2 digit BCD number */
@@
-153,7
+154,10
@@
resettodr()
{
}
{
}
+#define V(s) V/**/s
+extern V(clk)();
enablertclock() {
INTREN(IRQ0);
enablertclock() {
INTREN(IRQ0);
+ setidt(ICU_OFFSET+0, &V(clk), SDT_SYS386IGT, SEL_KPL);
splnone();
}
splnone();
}