freebsd-skq/sys/powerpc/include
bde 254458ab34 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 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
_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
altivec.h
asm.h Introduce 64-bit PowerPC Book-E support 2017-03-17 21:40:14 +00:00
atomic.h Don't retry a lost reservation in atomic_fcmpset() 2017-01-31 03:40:13 +00:00
bat.h
bus_dma.h Revert r303890 for now here as camdd fails to build on powerpc* 2016-08-11 15:06:12 +00:00
bus.h Increase booke bus max address to 36-bits. 2016-03-18 01:30:58 +00:00
clock.h
counter.h Replace a number of conflations of mp_ncpus and mp_maxid with either 2016-07-06 14:09:49 +00:00
cpu.h Add the SPE feature mask for e500v1 and e500v2 2016-10-29 01:24:30 +00:00
cpufunc.h Bring back r313037, with fixes for mips: 2017-02-19 02:03:09 +00:00
db_machdep.h Fix printing of negative offsets (typically from frame pointers) again. 2017-03-26 18:46:35 +00:00
dbdma.h
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 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
exec.h
float.h
floatingpoint.h
fpu.h
frame.h Hide the 'MOREARGS' macro, it conflicts with contrib code, and is only used in one file. 2017-01-22 06:30:55 +00:00
gdb_machdep.h
hid.h Set EN_MAS7_UPDATE HID0 bit for e500 core. 2016-08-07 19:09:56 +00:00
ieee.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
ieeefp.h
in_cksum.h
intr_machdep.h Add support for the Freescale dTSEC DPAA-based ethernet controller. 2016-02-29 03:38:00 +00:00
kdb.h
limits.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
machdep.h Remove booke_enable_l3_cache declaration and remaining definition. 2016-07-17 19:24:28 +00:00
md_var.h
memdev.h
metadata.h
mmuvar.h
ofw_machdep.h
openpicreg.h
openpicvar.h
param.h Create a new MACHINE_ARCH for Freescale PowerPC e500v2 2016-10-22 01:57:15 +00:00
pcb.h Use setjmp() instead of the identical-except-for-having-a-wrong-prototype 2016-01-10 16:42:14 +00:00
pcpu.h Introduce 64-bit PowerPC Book-E support 2017-03-17 21:40:14 +00:00
pio.h
platform.h Extend idle support for newer Book-E cores. 2016-01-01 02:47:40 +00:00
platformvar.h
pmap.h Introduce 64-bit PowerPC Book-E support 2017-03-17 21:40:14 +00:00
pmc_mdep.h
proc.h
profile.h
psl.h Introduce 64-bit PowerPC Book-E support 2017-03-17 21:40:14 +00:00
pte.h Introduce 64-bit PowerPC Book-E support 2017-03-17 21:40:14 +00:00
ptrace.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
reg.h Restore the ABI of 'struct fpreg' on powerpc. 2016-02-01 23:12:04 +00:00
reloc.h
resource.h
rtas.h
runq.h
sc_machdep.h
setjmp.h Use setjmp() instead of the identical-except-for-having-a-wrong-prototype 2016-01-10 16:42:14 +00:00
sigframe.h
signal.h
slb.h
smp.h
spr.h Introduce 64-bit PowerPC Book-E support 2017-03-17 21:40:14 +00:00
sr.h
stack.h
stdarg.h
sysarch.h
tlb.h Introduce 64-bit PowerPC Book-E support 2017-03-17 21:40:14 +00:00
trap.h Unbreak kernel breakpoints, broken for ~4 years now 2017-02-28 04:13:20 +00:00
ucontext.h POSIX states that #include <signal.h> shall make both mcontext_t and 2016-02-12 07:38:19 +00:00
varargs.h
vdso.h
vm.h
vmparam.h Introduce 64-bit PowerPC Book-E support 2017-03-17 21:40:14 +00:00