NetBSD/sys
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
..
altq
arch Introduce _UC_MACHINE_FP() as a macro 2018-02-15 15:53:56 +00:00
coda Use C99 initializer for filterops 2017-10-25 08:12:37 +00:00
compat union was removed 2018-01-26 09:29:15 +00:00
conf use -fno-delete-null-pointer-checks for kernels. 2018-02-13 09:50:35 +00:00
crypto
ddb avoid leftshift of an unsigned value 2018-02-04 09:17:54 +00:00
dev Remove dead code. 2018-02-14 18:28:43 +00:00
dist/pf Don't invoke UB. 2018-02-14 16:07:55 +00:00
external PR/53006: stackfield: Please support NVIDIA GT730 to kernel 2018-02-11 15:52:59 +00:00
fs Typos. 2018-02-08 09:05:16 +00:00
gdbscripts
ipkdb
kern Use cpu_softintr_p 2018-02-14 03:56:26 +00:00
lib PR port-alpha/52520: provide float64 -> uint64 conversion and use 2017-12-31 11:43:42 +00:00
miscfs rename some "cmdline" stuff now that it is used to print environment too 2017-12-31 03:29:18 +00:00
modules Simplify and make the GCC check more precise at the same time. 2018-02-12 22:18:36 +00:00
net Remove IFF_STATICARP, we don't support this, and the code is useless in its 2018-02-14 14:15:53 +00:00
net80211 Switch sp_timoff to u_int16_t, to prevent possible overflow in 2018-01-21 14:18:21 +00:00
netatalk Mmh, pull up the packet to ether_aarp, otherwise we're reading past the 2017-12-09 10:14:04 +00:00
netbt add HCI_SPEC_50 2017-12-21 09:30:30 +00:00
netcan Don't set IFEF_MPSAFE unless NET_MPSAFE at this point 2017-12-19 03:32:35 +00:00
netinet join lines where they fit. 2018-02-14 16:45:24 +00:00
netinet6 Re-make ip6_nexthdr global, it will be used in soon-to-be-added code... 2018-02-14 05:29:39 +00:00
netipsec Style and simplify. 2018-02-15 13:51:32 +00:00
netisdn Use C99 initializer for filterops 2017-10-25 08:12:37 +00:00
netkey
netmpls Add XXX. 2018-01-19 14:15:35 +00:00
netnatm
netsmb
nfs Use a random opaque cookie, not kva pointer, for nfssvc(2). 2018-01-25 17:14:36 +00:00
opencrypto Typos. 2018-02-08 09:05:16 +00:00
rump Move udp6_output() into udp6_usrreq.c, and remove udp6_output.c. This is 2018-02-08 11:34:35 +00:00
secmodel
stand
sys Add a proper defflag for GPROF, and include opt_gprof.h, otherwise we're 2018-02-04 17:31:51 +00:00
ufs Remove unnecessary assertions 2018-02-07 08:50:13 +00:00
uvm Use UVM_PROT_RW instead of UVM_PROT_ALL. This doesn't change anything, 2018-02-09 09:07:13 +00:00
Makefile