freebsd-skq/sys
Bruce Evans f434f3515b Fix printing of negative offsets (typically from frame pointers) again.
I fixed this in 1997, but the fix was over-engineered and fragile and
was broken in 2003 if not before.  i386 parameters were copied to 8
other arches verbatim, mostly after they stopped working on i386, and
mostly without the large comment saying how the values were chosen on
i386.  powerpc has a non-verbatim copy which just changes the uncritical
parameter and seems to add a sign extension bug to it.

Just treat negative offsets as offsets if they are no more negative than
-db_offset_max (default -64K), and remove all the broken parameters.

-64K is not very negative, but it is enough for frame and stack pointer
offsets since kernel stacks are small.

The over-engineering was mainly to go more negative than -64K for the
negative offset format, without affecting printing for more than a
single address.

Addresses in the top 64K of a (full 32-bit or 64-bit) address space
are now printed less well, but there aren't many interesting ones.
For arches that have many interesting ones very near the top (e.g.,
68k has interrupt vectors there), there would be no good limit for
the negative offset format and -64K is a good as anything.
2017-03-26 18:46:35 +00:00
..
amd64 Fix printing of negative offsets (typically from frame pointers) again. 2017-03-26 18:46:35 +00:00
arm Fix printing of negative offsets (typically from frame pointers) again. 2017-03-26 18:46:35 +00:00
arm64 Fix printing of negative offsets (typically from frame pointers) again. 2017-03-26 18:46:35 +00:00
boot The original author abused Nd (one-line description, used by makewhatis) 2017-03-23 08:34:30 +00:00
bsm
cam Remove "UNMAPPED" messages printed on da periph attach. 2017-03-23 10:50:45 +00:00
cddl MFV r315290, r315291: 7303 dynamic metaslab selection 2017-03-24 09:37:00 +00:00
compat Implement Linux mincore() system call. 2017-03-25 15:47:29 +00:00
conf Use inline asm instead of unportable intrinsics for the SSE4 crc32 2017-03-26 10:31:48 +00:00
contrib Copy needed include files from EDK2. This is a minimal set gleened 2017-03-08 02:47:59 +00:00
crypto Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
ddb Fix printing of negative offsets (typically from frame pointers) again. 2017-03-26 18:46:35 +00:00
dev iwn: fix debug message 2017-03-26 18:06:51 +00:00
fs remove procfs ctl interface 2017-03-05 03:05:24 +00:00
gdb
geom After r315112 I broke the tests with eli, instead to pass 0, I should pass 2017-03-13 13:56:01 +00:00
gnu Update our device tree files to a Linux 4.10 2017-03-07 13:56:49 +00:00
i386 Fix printing of negative offsets (typically from frame pointers) again. 2017-03-26 18:46:35 +00:00
isa Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
kern dtrace sched:::preempt should fire only when there is preemption 2017-03-25 19:08:51 +00:00
kgssapi
libkern Use inline asm instead of unportable intrinsics for the SSE4 crc32 2017-03-26 10:31:48 +00:00
mips Fix printing of negative offsets (typically from frame pointers) again. 2017-03-26 18:46:35 +00:00
modules Add a module to build imx5 dtb files. 2017-03-19 19:10:23 +00:00
net Correct handling of ALTQ with epair(4) interfaces but presenting that ALTQ(9) is supported. 2017-03-24 00:55:16 +00:00
net80211 net80211: fix possible panic when wlan(4) interface is destroyed. 2017-03-24 22:29:51 +00:00
netgraph mppc - Finish pluging NETGRAPH_MPPC_COMPRESSION. 2017-01-20 00:02:11 +00:00
netinet Fix reference count leak with L2 caching. 2017-03-25 15:06:28 +00:00
netinet6 Fix reference count leak with L2 caching. 2017-03-25 15:06:28 +00:00
netipsec Introduce the concept of IPsec security policies scope. 2017-03-07 00:13:53 +00:00
netnatm
netpfil pf: Fix possible shutdown race 2017-03-22 21:18:18 +00:00
netsmb
nfs Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nfsclient Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nfsserver Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nlm
ofed Add full VNET support to the inet_get_local_port_range() function in 2017-03-22 15:46:31 +00:00
opencrypto
powerpc Fix printing of negative offsets (typically from frame pointers) again. 2017-03-26 18:46:35 +00:00
riscv Fix printing of negative offsets (typically from frame pointers) again. 2017-03-26 18:46:35 +00:00
rpc Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
security Audit 'fd' and 'cmd' arguments to fcntl(2), and when generating BSM, 2016-11-22 00:41:24 +00:00
sparc64 Fix printing of negative offsets (typically from frame pointers) again. 2017-03-26 18:46:35 +00:00
sys move thread switch tracing from mi_switch to sched_switch 2017-03-23 08:57:04 +00:00
teken Fix bright colors for syscons, and make them work for the first time 2017-03-18 11:13:54 +00:00
tests
tools [fdt] Make DTBs generated by make_dtb.sh overlay-ready 2017-03-10 22:45:07 +00:00
ufs Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
vm Two changes to vm_fault_populate(): 2017-03-19 19:52:47 +00:00
x86 Provide less laborius way to enable busdma DMAR to only short list of devices. 2017-03-26 00:40:35 +00:00
xdr
xen xenstore: fix suspension when using the xenstore device 2017-03-07 09:17:48 +00:00
Makefile Remove pc98 support completely. 2017-01-28 02:22:15 +00:00