freebsd-dev/sys/sparc64/include
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
..
_align.h
_bus.h
_inttypes.h
_limits.h
_stdint.h Make the wchar_t type machine dependent. 2012-06-24 04:15:58 +00:00
_types.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
asi.h
asm.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
asmacros.h - Use atomic operations rather than sched_lock for safely assigning pm_active 2011-10-06 11:01:31 +00:00
atomic.h sparc64: add atomic_fcmpset 2017-01-10 21:10:20 +00:00
bus_common.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
bus_dma.h Add bus_dmamap_load_ma() function to load map with the array of 2013-10-27 21:39:16 +00:00
bus_private.h Move the implementation of bus_space_barrier(9) to the inline function in 2013-10-24 17:06:41 +00:00
bus.h Since r296250 it is no longer possible for devices to use bus space 2016-04-10 22:43:36 +00:00
cache.h
ccr.h
clock.h Now that we have a working OF_printf() since r230631 and a OF_panic() 2012-01-27 23:21:54 +00:00
cmt.h
counter.h Fix issues with zeroing and fetching the counters, on x86 and ppc64. 2013-07-01 02:48:27 +00:00
cpu.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
cpufunc.h
db_machdep.h Fix printing of negative offsets (typically from frame pointers) again. 2017-03-26 18:46:35 +00:00
dcr.h
dump.h - Unbreak dumpsys(9) on sparc64 after r276772 2015-11-16 23:02:33 +00:00
efi.h Fix building on i386 and arm. But 'public domain' headers on the files 2016-10-13 06:56:23 +00:00
elf.h Reserve AT_TIMEKEEP auxv entry for providing usermode the pointer to 2012-06-22 06:38:31 +00:00
endian.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
exec.h
fireplane.h
float.h Rationalize BSD license on sys/*/include/float.h 2015-08-05 17:05:35 +00:00
floatingpoint.h
fp.h
frame.h
fsr.h Add a global MD macro for the VIS block size instead of duplicating 2012-08-31 11:15:01 +00:00
gdb_machdep.h
idprom.h
ieee.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
ieeefp.h People porting FreeBSD to new architectures ought not have to 2011-10-21 06:41:46 +00:00
in_cksum.h Rationalize BSD license on sys/*/include/in_cksum.h 2015-08-05 19:05:12 +00:00
instr.h
intr_machdep.h - Give PIL_PREEMPT the lowest priority just above low/stray interrupts. 2012-10-20 12:07:48 +00:00
iommureg.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
iommuvar.h
jbus.h
kdb.h
kerneldump.h Add support to libkvm for reading vmcores from other architectures. 2015-11-27 18:58:26 +00:00
ktr.h Change the - hopefully - last piece of ktr(9) to use PCPU_GET(cpuid) 2015-12-30 18:57:29 +00:00
limits.h
lsu.h
mcntl.h
md_var.h Merge from r290547: 2015-11-21 02:49:33 +00:00
memdev.h
metadata.h
nexusvar.h
ofw_machdep.h Make using the #address-cells property on the interrupt parent in device 2016-01-02 19:28:35 +00:00
ofw_mem.h
ofw_nexus.h
param.h Add fueword(9) and casueword(9) functions. They are like fuword(9) 2014-10-28 15:22:13 +00:00
pcb.h Add a convenience macro for the returns_twice attribute, and apply it to 2012-04-29 11:04:31 +00:00
pcpu.h Bring back r313037, with fixes for mips: 2017-02-19 02:03:09 +00:00
pmap.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
pmc_mdep.h
proc.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
profile.h
pstate.h
ptrace.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
reg.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
reloc.h
resource.h
runq.h
sc_machdep.h
setjmp.h
sf_buf.h On sparc64, do not keep mappings for the destroyed sf_bufs. Sparc64 2014-08-10 16:59:39 +00:00
sigframe.h
signal.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
smp.h Merge r286374 from x86: 2015-09-13 00:08:04 +00:00
stack.h
stdarg.h
sysarch.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
tick.h
tlb.h
trap.h
tsb.h
tstate.h
tte.h
ucontext.h POSIX states that #include <signal.h> shall make both mcontext_t and 2016-02-12 07:38:19 +00:00
upa.h
utrap.h
varargs.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
vdso.h Implement mechanism to export some kernel timekeeping data to 2012-06-22 07:06:40 +00:00
ver.h
vm.h Add new bus methods for mapping resources. 2016-05-20 17:57:47 +00:00
vmparam.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
watch.h
wstate.h