NetBSD/sys/arch/ia64
kamil 847996952c Introduce _UC_MACHINE_FP() as a macro
_UC_MACHINE_FP() is a helper macro to extract from mcontext a frame pointer.

Don't rely on this interface as a compiler might strip frame pointer or
optimize it making this interface unreliable.


For hppa assume a small frame context, for larger frames FP might be located
in a different register (4 instead of 3).

For ia64 there is no strict frame pointer, and registers might rotate.
Reuse 79 following:

  ./gcc/config/ia64/ia64.h:#define HARD_FRAME_POINTER_REGNUM  LOC_REG (79)

Once ia64 will mature, this should be revisited.

A macro can encapsulate a real function for extracting Frame Pointer on
more complex CPUs / ABIs.


For the remaining CPUs, reuse standard register as defined in appropriate ABI.

The direct users of this macro are LLVM and GCC with Sanitizers.

Proposed on tech-userlevel@.

Sponsored by <The NetBSD Foundation>
2018-02-15 15:53:56 +00:00
..
acpi
compile
conf Add more options, mainly want "options INET" and "pseudo-device loop" so context bug occurs 2017-04-07 17:07:09 +00:00
disasm PR port-ia64/51261 2016-08-05 16:45:50 +00:00
ia64 add intr_string() stub for acpi_util.c:acpi_intr_string() so kernel will still compile 2017-12-13 16:50:46 +00:00
include Introduce _UC_MACHINE_FP() as a macro 2018-02-15 15:53:56 +00:00
pci PR port-ia64/51261 2016-08-05 17:04:52 +00:00
stand comment out unused hexdump 2017-12-10 02:32:03 +00:00
unwind Speed limit 80. 2016-07-31 19:33:18 +00:00
Makefile Descend into compile 2016-12-18 02:26:12 +00:00