freebsd-nq/sys/ia64/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
_inttypes.h
_limits.h
_regset.h
_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
acpica_machdep.h Add an MI implementation of the ACPI global lock routines and retire the 2004-05-05 20:04:14 +00:00
asm.h Make profiling actually work. The gcc compiler emits a call to the 2004-08-25 07:42:34 +00:00
atomic.h
bootinfo.h
bus_memio.h
bus_pio.h
bus.h
clock.h
clockvar.h
cpu.h Make profiling actually work. The gcc compiler emits a call to the 2004-08-25 07:42:34 +00:00
cpufunc.h Fix -O builds with gcc 3.4 by defining ffs as __builtin_ffs instead of 2004-07-30 07:56:53 +00:00
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
dig64.h
efi.h
elf.h
endian.h
exec.h
float.h Make FLT_ROUNDS correctly reflect the dynamic rounding mode. 2004-07-19 08:17:25 +00:00
floatingpoint.h
fpu.h
frame.h
gdb_machdep.h De-inline gdb_cpu_signal() because we need to convert the trap vectors 2004-08-07 21:40:52 +00:00
ia64_cpu.h
ieee.h
ieeefp.h
in_cksum.h
intr.h
intrcnt.h
kdb.h Introduce the KDB debugger frontend. The frontend provides a framework 2004-07-10 18:40:12 +00:00
limits.h
mca.h
md_var.h Add __elfN(dump_thread). This function is called from __elfN(coredump) 2004-08-11 02:35:06 +00:00
memdev.h Remove extraneous ';'. 2004-08-01 18:51:44 +00:00
mutex.h
nexusvar.h
pal.h
param.h
pcb.h As I said: the previous commit was untested... Remove an #endif which 2004-08-16 19:05:08 +00:00
pci_cfgreg.h
pcpu.h
pmap.h Add partial pmap locking. 2004-07-19 05:39:49 +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
pte.h Better preserve the original protection for the mappings we maintain. 2004-08-09 20:44:41 +00:00
ptrace.h
reg.h
reloc.h
resource.h
runq.h
sal.h
sapicreg.h
sapicvar.h
setjmp.h
sf_buf.h
sigframe.h
signal.h
smp.h
stdarg.h
sysarch.h
ucontext.h
unwind.h Update for the KDB framework: 2004-07-10 22:59:30 +00:00
varargs.h
vmparam.h