Home | History | Annotate | Download | only in sun3x
History log of /src/sys/arch/sun3/sun3x/clock.c
RevisionDateAuthorComments
 1.45  19-Jan-2024  thorpej Consistently use "intr_depth" as the name of the interrupt depth counter
on m68k platforms.
 1.44  15-Jan-2024  thorpej Provide a m68k_count_intr() macro that hides the details of how interrupts
are counted, and also ensures that ci_data.cpu_nintr is incremented.
 1.43  15-Jan-2024  thorpej G/C __HAVE_LEGACY_INTRCNT from the sun68k platforms.
 1.42  14-Jan-2024  thorpej Don't bother with isr_add_custom(). It's just a thin wrapper around
vec_set_entry(), so just use vec_set_entry() directly.
 1.41  02-Apr-2021  rin For ports with __HAVE_LEGACY_INTRCNT, turn intrcnt[] and derived
variables into u_int, to match with kern/subr_evcnt.c.
 1.40  06-Sep-2013  tsutsui branches: 1.40.42; 1.40.44;
Tab/whitespace cleanup.
 1.39  20-Dec-2010  matt branches: 1.39.8; 1.39.18; 1.39.22;
Move counting of faults, traps, intrs, soft[intr]s, syscalls, and nswtch
from uvmexp to per-cpu cpu_data and move them to 64bits. Remove unneeded
includes of <uvm/uvm_extern.h> and/or <uvm/uvm.h>.
 1.38  28-Jan-2010  mbalmer branches: 1.38.4;
Fix language.
 1.37  29-Mar-2008  tsutsui branches: 1.37.4;
Don't forget to initialize sc_dev.
 1.36  28-Mar-2008  tsutsui Split device_t and softc for MI mk48txx(4) and intersil7170(4) clocks,
and other related misc cosmetics.
 1.35  26-Jan-2008  tsutsui branches: 1.35.6;
Also account idepth in clock interrupt handlers
(which are registered directly by isr_add_custom())
and use the idepth value for CLKF_INTR().
 1.34  10-Jan-2008  tsutsui Move todr_attach(9) calls from each MD attachment to MI intersil7170_attach().
 1.33  10-Jan-2008  tsutsui - move todr_attach(9) calls from each MD attachment to MI mk48txx_attach()
- don't clear todr_setwen in mk48txx_attach() since it might be set by
MD attachments
 1.32  04-Oct-2006  tsutsui branches: 1.32.28; 1.32.34; 1.32.42;
Make sun3 port use MI mk48txx(4) and intersil7170(4) TOD clock drivers
with bus_space(9) support.
Note clock device name in obio.sun3 is renamed to oclock to use the same
MI attribute (intersil7170) with sun3x.

Tested on 3/80 and TME emulating 3/120 (but not on 3/4xx VME monsters).
 1.31  05-Sep-2006  gdamore branches: 1.31.2; 1.31.4;
Update sun3 to use timecounters (interrupt clock only) and generic-todr.
 1.30  11-Dec-2005  christos branches: 1.30.4; 1.30.8;
merge ktrace-lwp.
 1.29  19-Jun-2005  thorpej branches: 1.29.2;
Move common Sun ID PROM definitions into <dev/sun/idprom.h>.
 1.28  22-Jan-2005  chs de-__P, remove register, ansify, b* -> mem*, u_int*_t -> uint*_t.
 1.27  22-Sep-2003  tsutsui branches: 1.27.8;
Count clock interrupts.
clock_intr() functions on sun3 are called directly without dispatchers.

XXX should use evcnt(9)?
 1.26  22-Sep-2003  tsutsui KNF a bit.
 1.25  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.24  15-Jul-2003  lukem __KERNEL_RCSID()
 1.23  02-Oct-2002  thorpej branches: 1.23.6;
Add trailing ; to CFATTACH_DECL.
 1.22  01-Oct-2002  thorpej Use CFATTACH_DECL().
 1.21  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.20  05-Sep-2001  tsutsui branches: 1.20.6;
bcopy() -> memcpy(), bzero() -> memset()
 1.19  05-Sep-2001  tsutsui - vm_offset_t -> [pv]addr_t
- vm_size_t -> vsize_t
- remove register prefixes
 1.18  03-Feb-2001  tsutsui branches: 1.18.4;
Remove some of broken cf_unit usage.
 1.17  19-Jan-2000  msaitoh check whether tv_usec >= 1000000
 1.16  08-Feb-1998  gwr branches: 1.16.14;
Default the interrupt priority in match functions.
 1.15  05-Feb-1998  gwr Merge arch/sun3x into arch/sun3
 1.14  12-Jan-1998  thorpej branches: 1.14.4;
Update for config changes.
 1.13  14-May-1997  gwr Make the "hydra" call leds_hydra() from clock_attach().
 1.12  01-May-1997  gwr oops...
 1.11  28-Apr-1997  gwr Drivers that use obio_mapin should enforce OBIO attachment
(just to be paranoid).
 1.10  25-Apr-1997  gwr Add "oclock" support for the Sun3/470.
 1.9  05-Mar-1997  gwr Fix race conditions that allowed the interrupt latch register to have
the wrong value. Now using the <m68k/asm_single.h> stuff from Leo.
 1.8  19-Feb-1997  gwr Make this use sys/dev/clock_subr.[ch]
 1.7  12-Feb-1997  gwr Must convert from/to BCD when reading/writing the clock chip.
 1.6  27-Jan-1997  gwr branches: 1.6.4;
Kill sunmon.h
 1.5  26-Jan-1997  gwr Check interrupt_reg==0, not clock_va (Oops!)
 1.4  25-Jan-1997  gwr Just return if clock_va is not set.
Use <sun3/sun3/sunmon.h> for abort.
 1.3  23-Jan-1997  gwr Replace the intersil7170 stuff with mostek48t02 stuff.
XXX: Still need to move date conversion functions to
XXX: libkern or somewhere...
 1.2  23-Jan-1997  jeremy Fixed leap year bug. (Doesn't happen until 2100, but still important.)
 1.1  14-Jan-1997  gwr branches: 1.1.1;
Initial revision
 1.1.1.1  14-Jan-1997  gwr Initial import. Gets as far as nfs_mountroot.
 1.6.4.1  12-Mar-1997  is Merge in Changes from The Trunk.
 1.14.4.2  27-Jan-1998  gwr Fix header file name.
 1.14.4.1  27-Jan-1998  gwr Merged Sun3 and Sun3X kernel sources.
 1.16.14.2  11-Feb-2001  bouyer Sync with HEAD.
 1.16.14.1  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.18.4.2  10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.18.4.1  13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.20.6.2  18-Oct-2002  nathanw Catch up to -current.
 1.20.6.1  05-Sep-2001  nathanw file clock.c was added on branch nathanw_sa on 2002-10-18 02:40:26 +0000
 1.23.6.5  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.23.6.4  24-Jan-2005  skrll Sync with HEAD.
 1.23.6.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.23.6.2  18-Sep-2004  skrll Sync with HEAD.
 1.23.6.1  03-Aug-2004  skrll Sync with HEAD
 1.27.8.1  29-Apr-2005  kent sync with -current
 1.29.2.3  04-Feb-2008  yamt sync with head.
 1.29.2.2  21-Jan-2008  yamt sync with head
 1.29.2.1  30-Dec-2006  yamt sync with head.
 1.30.8.1  14-Sep-2006  yamt sync with head.
 1.30.4.1  09-Sep-2006  rpaulo sync with head
 1.31.4.1  06-Oct-2006  tsutsui Sync files of recent sun3 and sun68k merge and intersil7170(4) changes
with HEAD to build sun3 kernel on this branch.
 1.31.2.1  18-Nov-2006  ad Sync with head.
 1.32.42.1  10-Jan-2008  bouyer Sync with HEAD
 1.32.34.1  18-Feb-2008  mjf Sync with HEAD.
 1.32.28.1  23-Mar-2008  matt sync with HEAD
 1.35.6.1  03-Apr-2008  mjf Sync with HEAD.
 1.37.4.1  11-Mar-2010  yamt sync with head
 1.38.4.1  05-Mar-2011  rmind sync with head
 1.39.22.1  18-May-2014  rmind sync with head
 1.39.18.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.39.8.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.40.44.1  03-Apr-2021  thorpej Sync with HEAD.
 1.40.42.1  03-Apr-2021  thorpej Sync with HEAD.

RSS XML Feed