freebsd-dev/sys/arm/arm
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
..
autoconf.c Create nexus in configure_first() instead of in configure(). This 2005-05-29 23:44:22 +00:00
bcopy_page.S Export PAGE_SIZE from genassym.c, and include assym.s in bcopy_page.S, 2005-10-06 11:26:37 +00:00
bcopyinout_xscale.S In copyout(), quad-align the source buffer, and use ldrd if possible. 2005-12-09 15:31:02 +00:00
bcopyinout.S Unbreak for !__XSCALE__. 2005-10-23 23:09:14 +00:00
blockio.S Start all license statements with /*- 2005-01-05 21:58:49 +00:00
bootconfig.c Start all license statements with /*- 2005-01-05 21:58:49 +00:00
bus_space_asm_generic.S Start all license statements with /*- 2005-01-05 21:58:49 +00:00
busdma_machdep.c Bring in the good version of this file. 2005-10-03 22:44:54 +00:00
copystr.S Start all license statements with /*- 2005-01-05 21:58:49 +00:00
cpufunc_asm_arm7tdmi.S Start all license statements with /*- 2005-01-05 21:58:49 +00:00
cpufunc_asm_arm8.S Start all license statements with /*- 2005-01-05 21:58:49 +00:00
cpufunc_asm_arm9.S MFP4: Bring in arm9 cache-related functions 2005-11-23 18:02:40 +00:00
cpufunc_asm_arm10.S Start all license statements with /*- 2005-01-05 21:58:49 +00:00
cpufunc_asm_armv4.S Start all license statements with /*- 2005-01-05 21:58:49 +00:00
cpufunc_asm_ixp12x0.S Start all license statements with /*- 2005-01-05 21:58:49 +00:00
cpufunc_asm_sa1.S Start all license statements with /*- 2005-01-05 21:58:49 +00:00
cpufunc_asm_sa11x0.S Start all license statements with /*- 2005-01-05 21:58:49 +00:00
cpufunc_asm_xscale.S Don't assume pmap_update() will cpwait for us, pmap_update will disappear soon. 2005-01-10 22:41:08 +00:00
cpufunc_asm.S Instead of using sysarch() to store-retrieve the tp, add a magic address, 2005-02-26 18:59:01 +00:00
cpufunc.c Remove bits specific to CPUs we won't support (< armv4). 2005-05-25 13:46:32 +00:00
db_disasm.c Start all license statements with /*- 2005-01-05 21:58:49 +00:00
db_interface.c Implement db_frame() and use it to obtain the registers value. 2005-06-23 11:38:47 +00:00
db_trace.c Move the prototypes of db_md_set_watchpoint(), db_md_clr_watchpoint() 2005-09-10 03:01:25 +00:00
disassem.c Start all license statements with /*- 2005-01-05 21:58:49 +00:00
dump_machdep.c Kernel dump for arm, ripped from the ia64/amd64 version. 2005-10-03 14:05:03 +00:00
elf_machdep.c Get kernel modules to work. 2004-11-04 18:48:52 +00:00
elf_trampoline.c Make the elf trampoline disable the MMU, and link it at physical address, 2005-12-20 01:28:17 +00:00
exception.S Start all license statements with /*- 2005-01-05 21:58:49 +00:00
fiq_subr.S Start all license statements with /*- 2005-01-05 21:58:49 +00:00
fiq.c MFp4: add in making fiq's work by coping to the correct page incase we have 2005-03-16 07:56:21 +00:00
fusu.S Don't use fusufault in casuptr(), as it assumes the current PCB will be 2005-04-23 16:45:04 +00:00
genassym.c Export PAGE_SIZE from genassym.c, and include assym.s in bcopy_page.S, 2005-10-06 11:26:37 +00:00
identcpu.c Add an alternate ID for the arm920t (the real solution is to have 2005-11-21 19:06:25 +00:00
in_cksum_arm.S Only save the registers that are used. 2005-10-03 14:07:09 +00:00
in_cksum.c asm versions of in_cksum_hdr() and in_pseudo(). 2005-10-03 14:06:44 +00:00
inckern.S Teach the elf trampoline how to deal with gzipped kernels. 2005-12-05 12:55:46 +00:00
intr.c Tweak how the MD code calls the fooclock() methods some. Instead of 2005-12-22 22:16:09 +00:00
irq_dispatch.S Start all license statements with /*- 2005-01-05 21:58:49 +00:00
locore.S Ooops, I removed the wrong bits. 2005-12-21 15:02:31 +00:00
machdep.c Add missing "struct" in i386/i386/machdep.c,v 1.497 by deischen@. 2005-11-24 08:16:18 +00:00
mem.c Make mem.c know about the pages allocated with ARM_USE_SMALL_ALLOC. 2005-10-03 14:18:21 +00:00
nexus_io_asm.S Start all license statements with /*- 2005-01-05 21:58:49 +00:00
nexus_io.c Start all license statements with /*- 2005-01-05 21:58:49 +00:00
nexus.c Fix multiple abuses of __RMAN_RESOURCE_VISIBLE in the arm code. 2005-09-25 21:06:50 +00:00
pmap.c Eliminate pmap_init2(). It's no longer used. 2005-11-20 06:09:49 +00:00
setcpsr.S Start all license statements with /*- 2005-01-05 21:58:49 +00:00
setstack.s Start all license statements with /*- 2005-01-05 21:58:49 +00:00
support.S Unbreak for !__XSCALE__. 2005-10-23 23:09:14 +00:00
swtch.S Remove a never reached RET. 2005-10-04 20:47:27 +00:00
sys_machdep.c Implement two new sysarch for arm, ARM_GET_TP and ARM_SET_TP, to work around 2005-02-25 22:56:16 +00:00
trap.c 1. Change prototype of trapsignal and sendsig to use ksiginfo_t *, most 2005-10-14 12:43:47 +00:00
uio_machdep.c Start all license statements with /*- 2005-01-05 21:58:49 +00:00
undefined.c 1. Change prototype of trapsignal and sendsig to use ksiginfo_t *, most 2005-10-14 12:43:47 +00:00
vectors.S Start all license statements with /*- 2005-01-05 21:58:49 +00:00
vm_machdep.c Try to use contigmalloc() even if M_NOWAIT has been specified. 2005-12-05 12:58:44 +00:00