freebsd-dev/sys/amd64
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
..
acpica sys/amd64: Small spelling fixes. 2016-05-03 22:13:04 +00:00
amd64 specific end of interrupt implementation for AMD Local APIC 2017-03-25 18:45:09 +00:00
cloudabi32 Stop providing the compat_3_brand. 2017-03-23 14:12:21 +00:00
cloudabi64 Stop providing the compat_3_brand. 2017-03-23 14:12:21 +00:00
conf Remove i915drm and radeondrm from NOTES and conf. 2017-03-12 00:52:16 +00:00
ia32 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
include Fix printing of negative offsets (typically from frame pointers) again. 2017-03-26 18:46:35 +00:00
linux Implement Linux mincore() system call. 2017-03-25 15:47:29 +00:00
linux32 Implement Linux mincore() system call. 2017-03-25 15:47:29 +00:00
pci Pull in r267961 and r267973 again. Fix for issues reported will follow. 2014-06-28 03:56:17 +00:00
vmm specific end of interrupt implementation for AMD Local APIC 2017-03-25 18:45:09 +00:00
Makefile Bring the tags and links entries for amd64 up to date. 2015-10-27 22:59:24 +00:00