freebsd-nq/sys/sparc64/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
..
_inttypes.h
_limits.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
asi.h
asm.h
asmacros.h Remove filename+line number from panic messages. 2004-06-06 21:26:49 +00:00
atomic.h Use unsigned types for the arguments of the atomic(9) operations, 2004-05-22 00:52:16 +00:00
bus_common.h
bus_memio.h
bus_pio.h
bus_private.h Retire BUS_DMAMAP_NSEGS for sparc64 2004-06-28 04:04:43 +00:00
bus.h Switch sparc64 busdma to use a dynamically allocated segment list rather 2004-06-28 03:49:13 +00:00
cache.h
ccr.h
clock.h
cpu.h Instead of calling ia32_pause() conditionally on __i386__ or __amd64__ 2004-08-03 18:44:27 +00:00
cpufunc.h Switch from BSD-style u_intXX_t to ISO C99 uintXX_t. 2004-05-22 00:47:26 +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
eeprom.h - Introduce an ofw_bus kobj-interface for retrieving the OFW node and a 2004-08-12 17:41:33 +00:00
elf.h
endian.h
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
fp.h
frame.h Remove obsolete prototype of kdb_trap(). 2004-07-10 23:05:38 +00:00
fsr.h
gdb_machdep.h Introduce the GDB debugger backend for the new KDB framework. The 2004-07-10 17:47:22 +00:00
idprom.h
ieee.h
ieeefp.h
in_cksum.h
instr.h
intr_machdep.h
iommureg.h
iommuvar.h
kdb.h Introduce the KDB debugger frontend. The frontend provides a framework 2004-07-10 18:40:12 +00:00
kerneldump.h
ktr.h
limits.h
lsu.h
md_var.h
memdev.h Break out the MI part of the /dev/[k]mem and /dev/io drivers into 2004-08-01 11:40:54 +00:00
metadata.h
mutex.h
nexusvar.h Some cleanups to the nexus code: 2004-04-30 19:50:51 +00:00
ofw_bus.h Instead of "OpenFirmware", "openfirmware", etc. use the official spelling 2004-08-16 15:45:27 +00:00
ofw_machdep.h - Make OF_getetheraddr() honour the "local-mac-address?" system config 2004-08-14 21:43:37 +00:00
ofw_mem.h
ofw_nexus.h
ofw_upa.h
param.h
pcb.h Implement makectx(). The makectx() function is used by KDB to create 2004-07-10 19:56:00 +00:00
pcpu.h Move the per-CPU vmspace pointer fixup that is required before a 2004-05-26 12:06:52 +00:00
pmap.h Add pmap locking to many of the functions. 2004-08-10 20:53:26 +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
pstate.h
ptrace.h
reg.h
reloc.h
resource.h
runq.h
sc_machdep.h
setjmp.h
sf_buf.h
sigframe.h
signal.h
smp.h
stdarg.h
sysarch.h
tick.h
tlb.h
trap.h
tsb.h
tstate.h
tte.h
ucontext.h
upa.h
utrap.h
varargs.h
ver.h
vmparam.h
watch.h
wstate.h