Real-time clock is started on the same way on all CPUs, there is no
need for a special CPU-dependent hook for this.
This commit is contained in:
parent
e4bc3af22c
commit
fc6020e344
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: cpu.h,v 1.35 1999/04/17 00:01:18 ragge Exp $ */
|
||||
/* $NetBSD: cpu.h,v 1.36 1999/05/01 16:13:43 ragge Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Ludd, University of Lule}, Sweden
|
||||
@ -50,7 +50,6 @@
|
||||
*/
|
||||
struct cpu_dep {
|
||||
void (*cpu_steal_pages) __P((void)); /* pmap init before mm is on */
|
||||
void (*cpu_clock) __P((void)); /* CPU dep RT clock start */
|
||||
int (*cpu_mchk) __P((caddr_t)); /* Machine check handling */
|
||||
void (*cpu_memerr) __P((void)); /* Memory subsystem errors */
|
||||
/* Autoconfiguration */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: clock.c,v 1.27 1999/03/26 22:04:07 ragge Exp $ */
|
||||
/* $NetBSD: clock.c,v 1.28 1999/05/01 16:13:43 ragge Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1995 Ludd, University of Lule}, Sweden.
|
||||
* All rights reserved.
|
||||
@ -153,29 +153,17 @@ delay(i)
|
||||
asm ("1: sobgtr %0, 1b" : : "r" (dep_call->cpu_vups * i));
|
||||
}
|
||||
|
||||
#if VAX750 || VAX780 || VAX8200 || VAX8600 || VAX8800 || VAX48 || VAX49
|
||||
/*
|
||||
* On most VAXen there are a microsecond clock that should
|
||||
* be used for interval interrupts. Have a generic version here.
|
||||
* On all VAXen there are a microsecond clock that should
|
||||
* be used for interval interrupts. Some CPUs don't use the ICR interval
|
||||
* register but it doesn't hurt to load it anyway.
|
||||
*/
|
||||
void
|
||||
generic_clock()
|
||||
cpu_initclocks()
|
||||
{
|
||||
mtpr(-10000, PR_NICR); /* Load in count register */
|
||||
mtpr(0x800000d1, PR_ICCS); /* Start clock and enable interrupt */
|
||||
}
|
||||
#endif
|
||||
|
||||
#if VAX650 || VAX630 || VAX410 || VAX43 || VAX46
|
||||
/*
|
||||
* Most microvaxen don't have a interval count register.
|
||||
*/
|
||||
void
|
||||
no_nicr_clock()
|
||||
{
|
||||
mtpr(0x800000d1, PR_ICCS); /* Start clock and enable interrupt */
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* There are two types of real-time battery-backed up clocks on
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ka410.c,v 1.18 1999/04/14 23:14:46 ragge Exp $ */
|
||||
/* $NetBSD: ka410.c,v 1.19 1999/05/01 16:13:44 ragge Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1996 Ludd, University of Lule}, Sweden.
|
||||
* All rights reserved.
|
||||
@ -71,7 +71,6 @@ extern short *clk_page;
|
||||
*/
|
||||
struct cpu_dep ka410_calls = {
|
||||
0,
|
||||
no_nicr_clock,
|
||||
ka410_mchk,
|
||||
ka410_memerr,
|
||||
ka410_conf,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ka43.c,v 1.16 1999/04/14 23:14:46 ragge Exp $ */
|
||||
/* $NetBSD: ka43.c,v 1.17 1999/05/01 16:13:44 ragge Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1996 Ludd, University of Lule}, Sweden.
|
||||
* All rights reserved.
|
||||
@ -72,7 +72,6 @@ static void ka43_clrf __P((void));
|
||||
|
||||
struct cpu_dep ka43_calls = {
|
||||
ka43_steal_pages,
|
||||
no_nicr_clock,
|
||||
ka43_mchk,
|
||||
ka43_memerr,
|
||||
ka43_conf,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ka46.c,v 1.7 1999/04/14 23:14:46 ragge Exp $ */
|
||||
/* $NetBSD: ka46.c,v 1.8 1999/05/01 16:13:44 ragge Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1998 Ludd, University of Lule}, Sweden.
|
||||
* All rights reserved.
|
||||
@ -70,7 +70,6 @@ extern short *clk_page;
|
||||
*/
|
||||
struct cpu_dep ka46_calls = {
|
||||
ka46_steal_pages,
|
||||
no_nicr_clock,
|
||||
ka46_mchk,
|
||||
ka46_memerr,
|
||||
ka46_conf,
|
||||
|
@ -71,7 +71,6 @@ extern short *clk_page;
|
||||
*/
|
||||
struct cpu_dep ka48_calls = {
|
||||
ka48_steal_pages,
|
||||
generic_clock,
|
||||
ka48_mchk,
|
||||
ka48_memerr,
|
||||
ka48_conf,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ka630.c,v 1.14 1999/02/02 18:37:21 ragge Exp $ */
|
||||
/* $NetBSD: ka630.c,v 1.15 1999/05/01 16:13:44 ragge Exp $ */
|
||||
/*-
|
||||
* Copyright (c) 1982, 1988, 1990, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
@ -63,7 +63,6 @@ extern short *clk_page;
|
||||
|
||||
struct cpu_dep ka630_calls = {
|
||||
0,
|
||||
no_nicr_clock,
|
||||
ka630_mchk,
|
||||
ka630_memerr,
|
||||
ka630_conf,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ka650.c,v 1.18 1999/04/19 14:50:57 ragge Exp $ */
|
||||
/* $NetBSD: ka650.c,v 1.19 1999/05/01 16:13:44 ragge Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1988 The Regents of the University of California.
|
||||
* All rights reserved.
|
||||
@ -71,7 +71,6 @@ static void ka650_reboot __P((int));
|
||||
|
||||
struct cpu_dep ka650_calls = {
|
||||
0, /* No special page stealing anymore */
|
||||
no_nicr_clock,
|
||||
uvaxIII_mchk,
|
||||
uvaxIII_memerr,
|
||||
uvaxIII_conf,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ka750.c,v 1.27 1999/02/02 18:37:21 ragge Exp $ */
|
||||
/* $NetBSD: ka750.c,v 1.28 1999/05/01 16:13:44 ragge Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1988 The Regents of the University of California.
|
||||
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
|
||||
@ -64,7 +64,6 @@ void ka750_clrf __P((void));
|
||||
|
||||
struct cpu_dep ka750_calls = {
|
||||
0,
|
||||
generic_clock,
|
||||
ka750_mchk,
|
||||
ka750_memerr,
|
||||
ka750_conf,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ka780.c,v 1.12 1999/02/02 18:37:21 ragge Exp $ */
|
||||
/* $NetBSD: ka780.c,v 1.13 1999/05/01 16:13:44 ragge Exp $ */
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986, 1988 The Regents of the University of California.
|
||||
* All rights reserved.
|
||||
@ -67,7 +67,6 @@ static int ka780_mchk __P((caddr_t));
|
||||
*/
|
||||
struct cpu_dep ka780_calls = {
|
||||
0,
|
||||
generic_clock,
|
||||
ka780_mchk,
|
||||
ka780_memerr,
|
||||
ka780_conf,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ka820.c,v 1.14 1999/02/02 18:37:21 ragge Exp $ */
|
||||
/* $NetBSD: ka820.c,v 1.15 1999/05/01 16:13:45 ragge Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1988 Regents of the University of California.
|
||||
* All rights reserved.
|
||||
@ -75,7 +75,6 @@ void crxintr __P((int));
|
||||
|
||||
struct cpu_dep ka820_calls = {
|
||||
0,
|
||||
generic_clock,
|
||||
ka820_mchk,
|
||||
ka820_memerr,
|
||||
NULL,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ka860.c,v 1.13 1999/02/02 18:37:21 ragge Exp $ */
|
||||
/* $NetBSD: ka860.c,v 1.14 1999/05/01 16:13:45 ragge Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1986, 1988 Regents of the University of California.
|
||||
* All rights reserved.
|
||||
@ -64,7 +64,6 @@ void crlattach __P((void));
|
||||
|
||||
struct cpu_dep ka860_calls = {
|
||||
0,
|
||||
generic_clock,
|
||||
ka86_mchk,
|
||||
ka86_memerr,
|
||||
ka86_conf,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.80 1999/04/25 02:56:29 simonb Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.81 1999/05/01 16:13:45 ragge Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1998 Ludd, University of Lule}, Sweden.
|
||||
@ -398,12 +398,6 @@ cpu_dumpconf()
|
||||
dumplo = btodb(CLBYTES);
|
||||
}
|
||||
|
||||
void
|
||||
cpu_initclocks()
|
||||
{
|
||||
(*dep_call->cpu_clock) ();
|
||||
}
|
||||
|
||||
int
|
||||
cpu_sysctl(a, b, c, d, e, f, g)
|
||||
int *a;
|
||||
|
Loading…
Reference in New Issue
Block a user