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 Remove advertising clause from University of California Regent's 2004-04-07 05:00:01 +00:00
asi.h
asm.h Remove advertising clause from University of California Regent's 2004-04-07 05:00:01 +00:00
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 Remove advertising clause from University of California Regent's 2004-04-07 05:00:01 +00:00
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 Remove advertising clause from University of California Regent's 2004-04-07 05:00:01 +00:00
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 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 05:00:01 +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
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 Remove advertising clause from University of California Regent's 2004-04-07 05:00:01 +00:00
ieeefp.h
in_cksum.h Remove advertising clause from University of California Regent's 2004-04-07 05:00:01 +00:00
instr.h
intr_machdep.h add support for interrupt counting on sparc64. This copies part of the 2003-07-16 00:08:43 +00:00
iommureg.h Remove advertising clause from University of California Regent's 2004-04-07 05:00:01 +00:00
iommuvar.h Lock down the IOMMU bus_dma implementation to make it safe to use 2003-07-10 23:27:35 +00:00
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 Further cleanup <machine/cpu.h> and <machine/md_var.h>: move the MI 2003-08-16 16:57:57 +00:00
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 Make PAGE_SIZE and related quantities signed on sparc64. (They are signed 2003-10-03 19:49:08 +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 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 Remove advertising clause from University of California Regent's 2004-04-07 05:00:01 +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
pstate.h
ptrace.h Remove advertising clause from University of California Regent's 2004-04-07 05:00:01 +00:00
reg.h Remove advertising clause from University of California Regent's 2004-04-07 05:00:01 +00:00
reloc.h
resource.h
runq.h
sc_machdep.h "md" files for syscons. 2003-08-24 00:47:40 +00:00
setjmp.h
sf_buf.h - Modify alpha's sf_buf implementation to use the direct virtual-to- 2003-11-16 06:11:26 +00:00
sigframe.h
signal.h Remove advertising clause from University of California Regent's 2004-04-07 05:00:01 +00:00
smp.h
stdarg.h
sysarch.h Remove advertising clause from University of California Regent's 2004-04-07 05:00:01 +00:00
tick.h
tlb.h
trap.h
tsb.h
tstate.h
tte.h
ucontext.h
upa.h
utrap.h
varargs.h Standardize idempotentcy ifdefs. Consistently use _MACHINE_VARARGS_H_ 2003-09-01 03:01:45 +00:00
ver.h
vmparam.h
watch.h
wstate.h