freebsd-skq/sys/i386/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 - Use the correct devclass name ("acpi" vs "ACPI") to detect if acpi0 is 2004-06-10 20:43:04 +00:00
_inttypes.h
_limits.h
_stdint.h
_types.h
acpica_machdep.h
apicreg.h
apicvar.h Various cleanups in support of a future ioapic_config_intr() function: 2004-06-23 15:29:20 +00:00
apm_bios.h
apm_segments.h
asm.h
asmacros.h
atomic.h
bootinfo.h
bus_at386.h
bus_dma.h
bus_memio.h
bus_pc98.h
bus_pio.h
bus.h
clock.h
comstats.h
cpu.h Instead of calling ia32_pause() conditionally on __i386__ or __amd64__ 2004-08-03 18:44:27 +00:00
cpufunc.h
cputypes.h
critical.h Pass a thread argument into cpu_critical_{enter,exit}() rather than 2004-07-27 16:41:01 +00:00
cserial.h
db_machdep.h Mega update for the KDB framework: turn DDB into a KDB backend. 2004-07-10 23:47:20 +00:00
elan_mmcr.h
elf.h Add definitions for TLS relocations. 2004-08-02 19:12:17 +00:00
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
frame.h Update for the KDB framework: 2004-07-10 22:11:14 +00:00
gdb_machdep.h Introduce the GDB debugger backend for the new KDB framework. The 2004-07-10 17:47:22 +00:00
i4b_cause.h
i4b_debug.h
i4b_ioctl.h
i4b_rbch_ioctl.h
i4b_tel_ioctl.h
i4b_trace.h
ieeefp.h
if_wl_wavelan.h
in_cksum.h Fix a bug in in_cksum_hdr w/o -O. 2004-08-25 18:28:15 +00:00
intr_machdep.h Optimize intr_execute_handlers() by combining the pic_disable_source() and 2004-08-02 15:31:10 +00:00
ioctl_bt848.h
ioctl_meteor.h
iodev.h Break out the MI part of the /dev/[k]mem and /dev/io drivers into 2004-08-01 11:40:54 +00:00
kdb.h Introduce the KDB debugger frontend. The frontend provides a framework 2004-07-10 18:40:12 +00:00
legacyvar.h
limits.h
md_var.h Remove atdevbase and replace it's remaining uses with direct references to 2004-06-10 20:31:00 +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
mp_watchdog.h Add an "options MP_WATCHDOG" to i386. This option allows one of the 2004-08-15 18:02:09 +00:00
mptable.h
mtpr.h
mutex.h
npx.h
param.h Turn off PREEMPTION by default while it gets debugged. It's been causing 2004-08-01 14:31:45 +00:00
pcaudioio.h
pcb_ext.h
pcb.h Implement makectx(). The makectx() function is used by KDB to create 2004-07-10 19:56:00 +00:00
pci_cfgreg.h
pcpu.h
pcvt_ioctl.h
pecoff_machdep.h
perfmon.h
pmap.h Reduce the size of pv entries by 15%. This saves 1MB of KVA for mapping 2004-06-29 15:57:05 +00:00
privatespace.h
proc.h bde points out that this can't do anything useful. The full patch has 2004-06-28 05:37:22 +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
psl.h
ptrace.h
reg.h
reloc.h
resource.h
runq.h
segments.h
setjmp.h
sf_buf.h
sigframe.h
signal.h
smapi.h
smp.h
smptests.h
speaker.h
specialreg.h
stdarg.h
sysarch.h
trap.h
tss.h
ucontext.h
varargs.h
vm86.h
vmparam.h Increase the scaling of VM_KMEM_SIZE_MAX. 2004-08-16 08:35:22 +00:00