freebsd-nq/sys/alpha/include
Marcel Moolenaar 0f2fe153bc Move the kernel-specific logic to adjust frompc from MI to MD. For
these two reasons:
1. On ia64 a function pointer does not hold the address of the first
   instruction of a functions implementation. It holds the address
   of a function descriptor. Hence the user(), btrap(), eintr() and
   bintr() prototypes are wrong for getting the actual code address.
2. The logic forces interrupt, trap and exception entry points to
   be layed-out contiguously. This can not be achieved on ia64 and is
   generally just bad programming.

The MCOUNT_FROMPC_USER macro is used to set the frompc argument to
some kernel address which represents any frompc that falls outside
the kernel text range. The macro can expand to ~0U to bail out in
that case.
The MCOUNT_FROMPC_INTR macro is used to set the frompc argument to
some kernel address to represent a call to a trap or interrupt
handler. This to avoid that the trap or interrupt handler appear to
be called from everywhere in the call graph. The macro can expand
to ~0U to prevent adjusting frompc. Note that the argument is selfpc,
not frompc.

This commit defines the macros on all architectures equivalently to
the original code in sys/libkern/mcount.c. People can take it from
here...

Compile-tested on: alpha, amd64, i386, ia64 and sparc64
Boot-tested on: i386
2004-08-27 19:42:35 +00:00
..
pc Remove atdevbase and replace it's remaining uses with direct references to 2004-06-10 20:31:00 +00:00
_inttypes.h
_limits.h Remove the advertsing clause, per the Regent's letter dated July 22, 1999. 2004-04-05 21:00:51 +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 Introduce the cpumask_t type. The purpose of the type is to create a 2004-03-20 20:41:40 +00:00
alpha_cpu.h
asm.h
atomic.h
bootinfo.h
bus_memio.h
bus_pio.h
bus.h
bwx.h
chipset.h
clock.h
clockvar.h
cpu.h Provide extern declarations for btext and etext when GPROF is defined. 2004-08-27 19:20:42 +00:00
cpuconf.h
cpufunc.h
critical.h Pass a thread argument into cpu_critical_{enter,exit}() rather than 2004-07-27 16:41:01 +00:00
db_machdep.h Mega update for the KDB framework: turn DDB into a KDB backend. 2004-07-10 23:47:20 +00:00
elf.h
endian.h Remove the advertsing clause, per the Regent's letter dated July 22, 1999. 2004-04-05 21:00:51 +00:00
exec.h
float.h Hide FLT_EVAL_METHOD and DECIMAL_DIG in pre-C99 compilation 2004-04-25 02:36:29 +00:00
floatingpoint.h
fpu.h Don't clear the exception flags after we finish emulating a 2004-05-06 09:35:57 +00:00
frame.h
gdb_machdep.h Introduce the GDB debugger backend for the new KDB framework. The 2004-07-10 17:47:22 +00:00
ieee.h Remove the advertsing clause, per the Regent's letter dated July 22, 1999. 2004-04-05 21:00:51 +00:00
ieeefp.h
in_cksum.h Remove the advertsing clause, per the Regent's letter dated July 22, 1999. 2004-04-05 21:00:51 +00:00
inst.h
intr.h
intrcnt.h
ioctl_bt848.h
ioctl_meteor.h
kdb.h Introduce the KDB debugger frontend. The frontend provides a framework 2004-07-10 18:40:12 +00:00
limits.h Remove the advertsing clause, per the Regent's letter dated July 22, 1999. 2004-04-05 21:00:51 +00:00
md_var.h
memdev.h Remove extraneous ';'. 2004-08-01 18:51:44 +00:00
mutex.h
pal.h
param.h Turn off PREEMPTION by default while it gets debugged. It's been causing 2004-08-01 14:31:45 +00:00
pcb.h Implement makectx(). The makectx() function is used by KDB to create 2004-07-10 19:56:00 +00:00
pcpu.h
pmap.h - Eliminate the pte object from the pmap. Instead, page table pages are 2004-07-19 18:12:04 +00:00
proc.h
profile.h Move the kernel-specific logic to adjust frompc from MI to MD. For 2004-08-27 19:42:35 +00:00
prom.h
pte.h
ptrace.h Rev 1.24 of sys/ptrace.h adds ptrace_clear_single_step() prototype 2004-07-13 16:11:04 +00:00
reg.h
reloc.h
resource.h
rpb.h
runq.h
setjmp.h
sf_buf.h MFamd64 2004-04-18 06:24:51 +00:00
sgmap.h
sigframe.h
signal.h
smp.h
stdarg.h
swiz.h
sysarch.h Remove the advertsing clause, per the Regent's letter dated July 22, 1999. 2004-04-05 21:00:51 +00:00
ucontext.h
varargs.h
vmparam.h Remove the advertsing clause, per the Regent's letter dated July 22, 1999. 2004-04-05 21:00:51 +00:00