freebsd-nq/sys/pc98/cbus
John Baldwin b439e431bf Tweak how the MD code calls the fooclock() methods some. Instead of
passing a pointer to an opaque clockframe structure and requiring the
MD code to supply CLKF_FOO() macros to extract needed values out of the
opaque structure, just pass the needed values directly.  In practice this
means passing the pair (usermode, pc) to hardclock() and profclock() and
passing the boolean (usermode) to hardclock_cpu() and hardclock_process().
Other details:
- Axe clockframe and CLKF_FOO() macros on all architectures.  Basically,
  all the archs were taking a trapframe and converting it into a clockframe
  one way or another.  Now they can just extract the PC and usermode values
  directly out of the trapframe and pass it to fooclock().
- Renamed hardclock_process() to hardclock_cpu() as the latter is more
  accurate.
- On Alpha, we now run profclock() at hz (profhz == hz) rather than at
  the slower stathz.
- On Alpha, for the TurboLaser machines that don't have an 8254
  timecounter, call hardclock() directly.  This removes an extra
  conditional check from every clock interrupt on Alpha on the BSP.
  There is probably room for even further pruning here by changing Alpha
  to use the simplified timecounter we use on x86 with the lapic timer
  since we don't get interrupts from the 8254 on Alpha anyway.
- On x86, clkintr() shouldn't ever be called now unless using_lapic_timer
  is false, so add a KASSERT() to that affect and remove a condition
  to slightly optimize the non-lapic case.
- Change prototypeof  arm_handler_execute() so that it's first arg is a
  trapframe pointer rather than a void pointer for clarity.
- Use KCOUNT macro in profclock() to lookup the kernel profiling bucket.

Tested on:	alpha, amd64, arm, i386, ia64, sparc64
Reviewed by:	bde (mostly)
2005-12-22 22:16:09 +00:00
..
30line.h In my last commit, I'd assumed that LINE30 was always defined. It 2005-01-09 22:17:39 +00:00
cbus_dma.c - Move bus dependent defines to {isa,cbus}_dmareg.h. 2005-05-14 10:14:56 +00:00
cbus_dmareg.h - Move bus dependent defines to {isa,cbus}_dmareg.h. 2005-05-14 10:14:56 +00:00
cbus.h - Move bus dependent defines to {isa,cbus}_dmareg.h. 2005-05-14 10:14:56 +00:00
clock.c Tweak how the MD code calls the fooclock() methods some. Instead of 2005-12-22 22:16:09 +00:00
fdc_cbus.c Fix my copyright. 2005-05-14 10:51:16 +00:00
fdc.c cpp(1) only understand integer arithmetical expressions, so 2005-12-06 13:22:14 +00:00
fdcreg.h Remove advertising clause from University of California Regent's 2004-04-07 05:00:01 +00:00
fdcvar.h Merged from the following changes. 2004-07-17 10:07:19 +00:00
gdc.c Fix -Wundef warnings from compiling GENERIC and LINT kernels of 2005-12-06 11:19:37 +00:00
nmi.c Remove EPSON PC-386 note A/W/AE/WR support. 2005-09-14 12:39:06 +00:00
olpt.c - Move lptreg.h into pc98/cbus and rename to olptreg.h. 2005-05-10 12:30:30 +00:00
olptreg.h Fix my copyright. 2005-05-14 10:51:16 +00:00
pckbd.c Move the pc98 keymap define into pckbdtables.h because it should be used 2005-05-12 13:39:31 +00:00
pckbdtables.h Move the pc98 keymap define into pckbdtables.h because it should be used 2005-05-12 13:39:31 +00:00
pcrtc.c Tweak how the MD code calls the fooclock() methods some. Instead of 2005-12-22 22:16:09 +00:00
pmc.c Add missing <sys/module.h> includes currently relying on nested include 2004-06-03 06:10:02 +00:00
ppc.c Fix -Wundef warnings from compiling GENERIC and LINT kernels of 2005-12-06 11:19:37 +00:00
ppcreg.h
sc_machdep.h
scgdcrndr.c Sync with syscons update (Add new member to struct sc_rndr_sw). 2005-05-29 11:53:14 +00:00
scterm-sck.c Fix -Wundef warnings found when compiling i386 LINT, GENERIC and 2005-12-05 11:58:35 +00:00
scvtb.c
sio_cbus.c Fix my copyright. 2005-05-14 10:51:16 +00:00
sio.c Merged from sys/dev/sio/sio.c revision 1.463. 2005-12-18 11:16:31 +00:00
syscons_cbus.c - Move timerreg.h to <arch>/include and split i8253 specific defines into 2005-05-14 09:10:02 +00:00