freebsd-dev/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 Remove headers copied from i386 and either useless or wrong on ia64. 2003-11-02 09:19:07 +00:00
_inttypes.h
_limits.h Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
_regset.h Remove __aligned(16) from the definition of struct _ia64_fpreg. It's 2003-07-25 08:02:24 +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
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 Document the lockfunc and lockfuncarg arguments to bus_dma_tag_create() in 2003-11-07 23:29:42 +00:00
clock.h Cleanup the clock code. This includes: 2003-08-04 05:13:18 +00:00
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 Add sysentvec->sv_fixlimits() hook so that we can catch cases on 64 bit 2003-09-25 01:10:26 +00:00
endian.h Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
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 Revamp of the syscall path, exception and context handling. The 2003-05-16 21:26:42 +00:00
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 Add an instruction group break after the move to application register 2003-08-15 05:46:33 +00:00
ieee.h Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
ieeefp.h Cleanup and style(9) fixes. No functional change. 2003-08-11 21:25:19 +00:00
in_cksum.h Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
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 Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
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 Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
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 Fixed a pedantic syntax error (a stray semicolon at the end of 2003-11-17 03:40:41 +00:00
pmap.h Add partial pmap locking. 2004-07-19 05:39:49 +00:00
proc.h Cleanup. Remove the md_flags for threads. It's not used. The flags 2003-10-23 06:41:59 +00:00
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 Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
reg.h Replace uint64_t with unsigned long in struct dbreg. 2004-03-20 05:27:14 +00:00
reloc.h
resource.h
runq.h Fix last second typo. 2003-12-10 22:59:03 +00:00
sal.h
sapicreg.h
sapicvar.h Rewrite the SAPIC initialization to always program the RTEs with what 2003-09-10 22:49:38 +00:00
setjmp.h Avoid using __aligned(16). Instead define the jmp_buf in terms of 2003-07-26 08:03:43 +00:00
sf_buf.h MFamd64 2004-04-18 07:11:12 +00:00
sigframe.h
signal.h Revamp of the syscall path, exception and context handling. The 2003-05-16 21:26:42 +00:00
smp.h Revamp of the syscall path, exception and context handling. The 2003-05-16 21:26:42 +00:00
stdarg.h
sysarch.h Provide sysarch(2) prototypes in the MD sysarch.h headers. While I'm 2004-01-09 16:52:09 +00:00
ucontext.h Simplify the contexts created by the kernel and remove the related 2003-12-07 20:47:33 +00:00
unwind.h Update for the KDB framework: 2004-07-10 22:59:30 +00:00
varargs.h Drop any and all support for varargs. There's no history to worry 2003-09-28 05:34:07 +00:00
vmparam.h Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00