freebsd-dev/sys/riscv/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
_types.h Define the vm_ooffset_t and vm_pindex_t types as machine-independend. 2017-02-04 12:26:38 +00:00
asm.h o Add support for long double. 2016-11-03 13:06:17 +00:00
atomic.h Implement atomic_fcmpset_*() for RISC-V. 2017-02-05 00:32:12 +00:00
bus_dma.h
bus.h
clock.h
counter.h
cpu.h Update RISC-V port to Privileged Architecture Version 1.9. 2016-08-02 14:50:14 +00:00
cpufunc.h o Remove operation in machine mode. 2016-08-10 12:41:36 +00:00
db_machdep.h Fix printing of negative offsets (typically from frame pointers) again. 2017-03-26 18:46:35 +00:00
dump.h
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
endian.h
exec.h
float.h o Add support for long double. 2016-11-03 13:06:17 +00:00
floatingpoint.h
fpe.h Add full softfloat and hardfloat support for RISC-V. 2016-11-16 15:21:32 +00:00
frame.h Add RISC-V support for truss(1) 2017-01-24 09:41:44 +00:00
ieeefp.h
in_cksum.h
intr.h Update RISC-V port to Privileged Architecture Version 1.9. 2016-08-02 14:50:14 +00:00
kdb.h
machdep.h
md_var.h
memdev.h
minidump.h
ofw_machdep.h
param.h Add support for symmetric multiprocessing (SMP). 2016-02-24 16:50:34 +00:00
pcb.h Add full softfloat and hardfloat support for RISC-V. 2016-11-16 15:21:32 +00:00
pcpu.h o Remove operation in machine mode. 2016-08-10 12:41:36 +00:00
pmap.h Rework the list of all pmaps: embed the list link into pmap. 2016-04-26 14:38:18 +00:00
pmc_mdep.h
proc.h
profile.h
psl.h
pte.h Update RISC-V port to Privileged Architecture Version 1.9. 2016-08-02 14:50:14 +00:00
ptrace.h
reg.h Add full softfloat and hardfloat support for RISC-V. 2016-11-16 15:21:32 +00:00
reloc.h
resource.h
riscv_opcode.h Add support for ddb(4). 2016-03-10 15:51:43 +00:00
riscvreg.h Add full softfloat and hardfloat support for RISC-V. 2016-11-16 15:21:32 +00:00
runq.h
sbi.h o Remove operation in machine mode. 2016-08-10 12:41:36 +00:00
setjmp.h Increase the size and alignment of the setjmp buffer. 2016-05-26 10:03:30 +00:00
sf_buf.h
signal.h
smp.h Add support for symmetric multiprocessing (SMP). 2016-02-24 16:50:34 +00:00
stack.h Add support for ddb(4). 2016-03-10 15:51:43 +00:00
stdarg.h
sysarch.h
trap.h
ucontext.h Use better form representing 32 x 128-bit floating-point registers. 2016-02-17 14:24:25 +00:00
vdso.h
vm.h
vmparam.h Disable superpages reservations as we don't have implemented them yet. 2016-11-21 12:00:31 +00:00