freebsd-dev/sys/arm/sa11x0
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
..
assabet_machdep.c Provide a dump_avail[] variable, which contains the page ranges to be 2005-10-03 14:15:50 +00:00
files.sa11x0
sa11x0_dmacreg.h
sa11x0_gpioreg.h
sa11x0_io_asm.S Start all license statements with /*- 2005-01-05 21:58:49 +00:00
sa11x0_io.c pmap_update() is gone. 2005-04-13 16:02:03 +00:00
sa11x0_irq.S Start all license statements with /*- 2005-01-05 21:58:49 +00:00
sa11x0_irqhandler.c Fix multiple abuses of __RMAN_RESOURCE_VISIBLE in the arm code. 2005-09-25 21:06:50 +00:00
sa11x0_ost.c Tweak how the MD code calls the fooclock() methods some. Instead of 2005-12-22 22:16:09 +00:00
sa11x0_ostreg.h
sa11x0_ppcreg.h
sa11x0_reg.h
sa11x0_var.h Fix multiple abuses of __RMAN_RESOURCE_VISIBLE in the arm code. 2005-09-25 21:06:50 +00:00
sa11x0.c Fix multiple abuses of __RMAN_RESOURCE_VISIBLE in the arm code. 2005-09-25 21:06:50 +00:00
std.sa11x0 Big cleanup: get ride of the whole spl level logic, as FreeBSD doesn't use 2004-09-23 22:33:38 +00:00
uart_bus_sa1110.c Start all license statements with /*- 2005-01-05 21:58:49 +00:00
uart_cpu_sa1110.c Start all license statements with /*- 2005-01-05 21:58:49 +00:00
uart_dev_sa1110.c Start all license statements with /*- 2005-01-05 21:58:49 +00:00
uart_dev_sa1110.h Start all license statements with /*- 2005-01-05 21:58:49 +00:00