freebsd-dev/sys/arm/include
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
..
_bus.h Break out the definition of bus_space_{tag,handle}_t and a few other types 2005-04-18 21:45:34 +00:00
_inttypes.h Import FreeBSD/arm kernel bits. 2004-05-14 11:46:45 +00:00
_limits.h Move MINSIGSTKSZ from <machine/signal.h> to <machine/_limits.h> and rename 2005-08-20 16:44:41 +00:00
_stdint.h <stdint.h> should define WINT_M{AX,IN} independent from whether WCHAR_MIN is 2004-05-18 16:04:57 +00:00
_types.h netchild's mega-patch to isolate compiler dependencies into a central 2005-03-02 21:33:29 +00:00
armreg.h Add an alternate ID for the arm920t (the real solution is to have 2005-11-21 19:06:25 +00:00
asm.h Start all license statements with /*- 2005-01-05 21:58:49 +00:00
asmacros.h Import a basic implementation of the restartable atomic sequences to provide 2005-04-07 22:03:04 +00:00
atomic.h A #define is not enough, we need to cast from u_long * to uint32_t *. 2005-12-09 22:58:07 +00:00
blockio.h Import FreeBSD/arm kernel bits. 2004-05-14 11:46:45 +00:00
bootconfig.h Start all license statements with /*- 2005-01-05 21:58:49 +00:00
bus_dma.h Refactor the bus_dma header files so that the interface is described in 2005-03-14 16:46:28 +00:00
bus.h Break out the definition of bus_space_{tag,handle}_t and a few other types 2005-04-18 21:45:34 +00:00
clock.h msdosfs_conv.c references cmos_wall_clock and adjkerntz. Since these 2005-07-27 21:19:28 +00:00
cpu.h Tweak how the MD code calls the fooclock() methods some. Instead of 2005-12-22 22:16:09 +00:00
cpuconf.h s/_KLD_MODULE/KLD_MODULE/ 2005-05-26 16:05:22 +00:00
cpufunc.h Bring in bits I forgot while importing write back support for arm9. 2005-06-03 19:49:53 +00:00
db_machdep.h Start all license statements with /*- 2005-01-05 21:58:49 +00:00
disassem.h Start all license statements with /*- 2005-01-05 21:58:49 +00:00
elf.h Use a magic number to know we were started from the elf wrapper. 2005-11-24 02:27:55 +00:00
endian.h Use a + constraint modifier for a register arg in __bswap16_var(). 2005-07-27 19:59:21 +00:00
exec.h Use a common multi-inclusion protection, and add such a 2005-02-19 21:16:48 +00:00
fiq.h Start all license statements with /*- 2005-01-05 21:58:49 +00:00
float.h Bring in a version of float.h more correct for softfloat. 2005-03-20 00:34:24 +00:00
floatingpoint.h Import FreeBSD/arm kernel bits. 2004-05-14 11:46:45 +00:00
fp.h Start all license statements with /*- 2005-01-05 21:58:49 +00:00
frame.h Tweak how the MD code calls the fooclock() methods some. Instead of 2005-12-22 22:16:09 +00:00
ieee.h Start all license statements with /*- 2005-01-05 21:58:49 +00:00
ieeefp.h Start all license statements with /*- 2005-01-05 21:58:49 +00:00
in_cksum.h asm versions of in_cksum_hdr() and in_pseudo(). 2005-10-03 14:06:44 +00:00
intr.h - MFp4: modify slightly the arm intr API, there's arm CPUs with more than 32 2005-06-09 12:26:20 +00:00
katelib.h Start all license statements with /*- 2005-01-05 21:58:49 +00:00
kdb.h Start all license statements with /*- 2005-01-05 21:58:49 +00:00
limits.h netchild's mega-patch to isolate compiler dependencies into a central 2005-03-02 21:33:29 +00:00
machdep.h Instead of using sysarch() to store-retrieve the tp, add a magic address, 2005-02-26 18:59:01 +00:00
md_var.h Add a new API to let platform-specific ports provide functions for big 2005-10-03 14:12:10 +00:00
memdev.h Import md bits for mem(4) on arm. 2004-11-07 23:01:36 +00:00
metadata.h Start all license statements with /*- 2005-01-05 21:58:49 +00:00
mutex.h Import FreeBSD/arm kernel bits. 2004-05-14 11:46:45 +00:00
param.h Drop _MACHINE_ARCH and _MACHINE defines (not to be confused with 2005-12-06 13:27:21 +00:00
pcb.h Start all license statements with /*- 2005-01-05 21:58:49 +00:00
pcpu.h There's no need to include <machine/asmacros.h> here. 2005-11-08 13:01:29 +00:00
pmap.h Force pmap to write-back the pte cacheline after each pte modification, 2005-11-21 19:10:44 +00:00
pmc_mdep.h MFP4: 2005-06-09 19:45:09 +00:00
proc.h Divorce critical sections from spinlocks. Critical sections as denoted by 2005-04-04 21:53:56 +00:00
profile.h Start all license statements with /*- 2005-01-05 21:58:49 +00:00
psl.h Start all license statements with /*- 2005-01-05 21:58:49 +00:00
pte.h Start all license statements with /*- 2005-01-05 21:58:49 +00:00
ptrace.h Import FreeBSD/arm kernel bits. 2004-05-14 11:46:45 +00:00
reg.h Protect the function declarations with #ifdef _KERNEL. 2004-11-04 19:20:54 +00:00
reloc.h Import FreeBSD/arm kernel bits. 2004-05-14 11:46:45 +00:00
resource.h Start all license statements with /*- 2005-01-05 21:58:49 +00:00
runq.h Start all license statements with /*- 2005-01-05 21:58:49 +00:00
setjmp.h Protect setjmp.h with #ifndef _MACHINE_SETJMP_H_. 2004-07-12 21:23:58 +00:00
sf_buf.h Import FreeBSD/arm kernel bits. 2004-05-14 11:46:45 +00:00
sigframe.h Import FreeBSD/arm kernel bits. 2004-05-14 11:46:45 +00:00
signal.h Move MINSIGSTKSZ from <machine/signal.h> to <machine/_limits.h> and rename 2005-08-20 16:44:41 +00:00
smp.h Import FreeBSD/arm kernel bits. 2004-05-14 11:46:45 +00:00
stdarg.h netchild's mega-patch to isolate compiler dependencies into a central 2005-03-02 21:33:29 +00:00
swi.h Start all license statements with /*- 2005-01-05 21:58:49 +00:00
sysarch.h Instead of using sysarch() to store-retrieve the tp, add a magic address, 2005-02-26 18:59:01 +00:00
trap.h Add support for ptrace() and gdb breakpoints. 2005-01-10 22:43:16 +00:00
ucontext.h Import FreeBSD/arm kernel bits. 2004-05-14 11:46:45 +00:00
undefined.h Start all license statements with /*- 2005-01-05 21:58:49 +00:00
utrap.h Import FreeBSD/arm kernel bits. 2004-05-14 11:46:45 +00:00
vmparam.h Add a new arm-specific option, ARM_USE_SMALL_ALLOC. If defined, it provides 2005-06-07 23:04:24 +00:00