freebsd-dev/sys/powerpc/powerpc
John Baldwin c79408a059 Implement db_print_backtrace() if DDB is compiled into the kernel. This
MD function is just a wrapper around db_stack_trace_cmd() that prints out
a backtrace of curthread.  Currently, this function is only implemented
on i386 and alpha (and the alpha version isn't quite tested yet, will do
that in a bit).  Other changes:

- For i386, fix a bug in the raw frame address case.  The eip we extract
  from the passed in frame address does not match the frame we received.
  Thus, instead of printing a bogus frame with the wrong eip, go ahead
  and advance frame down to the same frame as the eip we are using.
- For alpha, attempt to add a way of doing a raw trace for alpha.  Instead
  of passing a frame address in 'addr', pass in a pointer to a structure
  containing PC and KSP and use those to start the backtrace.  The alpha
  db_print_backtrace() uses asm to read in the current PC and KSP values
  into such a request.

Tested on:	i386
Requested by:	many
2002-09-19 18:46:29 +00:00
..
atomic.s This commit (along with one pending in sys/dev/ofw and one in sys/conf) give 2001-06-16 07:14:07 +00:00
atomic.S This commit (along with one pending in sys/dev/ofw and one in sys/conf) give 2001-06-16 07:14:07 +00:00
autoconf.c - removed unnecessary includes 2002-09-19 04:28:45 +00:00
bcopy.c mempcy/bcopy handles overlapping copies so make ovbcopy call it. 2002-06-29 09:34:54 +00:00
busdma_machdep.c 1) Add busdma machdep code. 2002-07-09 12:47:14 +00:00
clock.c Many fixes to low-level trap and interrupt handling: 2002-06-29 09:28:21 +00:00
copyinout.c Deorbit suibyte(). It was only used for split address space systems 2002-06-20 07:13:35 +00:00
copystr.c Bring in NetBSD code used in the PowerPC port. 2001-06-10 02:39:37 +00:00
critical.c Stage-2 commit of the critical*() code. This re-inlines cpu_critical_enter() 2002-04-01 23:51:23 +00:00
db_disasm.c Add DDB support. 2002-07-10 12:21:54 +00:00
db_hwwatch.c Add DDB support. 2002-07-10 12:21:54 +00:00
db_interface.c Add DDB support. 2002-07-10 12:21:54 +00:00
db_memrw.c Add DDB support. 2002-07-10 12:21:54 +00:00
db_trace.c Implement db_print_backtrace() if DDB is compiled into the kernel. This 2002-09-19 18:46:29 +00:00
elf_machdep.c Added fields for VM_MIN_ADDRESS, PS_STRINGS and stack protections to 2002-09-01 21:41:24 +00:00
extintr.c Remove __P. 2002-03-20 23:17:50 +00:00
fpu.c Fix commenting around NetBSD version string. 2002-05-17 01:41:01 +00:00
fuswintr.c Complete rework of the PowerPC pmap and a number of other bits in the early 2002-02-14 01:39:11 +00:00
genassym.c - rationalised includes 2002-09-19 04:29:07 +00:00
in_cksum.c in_cksum et al. 2002-06-29 09:49:26 +00:00
interrupt.c - moved intrcnt/intrnames to locore.s to fix sysctl -a panic 2002-09-19 04:29:59 +00:00
intr_machdep.c Add interrupt handling support code. 2002-07-09 11:12:20 +00:00
locore.s - moved intrcnt/intrnames to locore.s to fix sysctl -a panic 2002-09-19 04:29:59 +00:00
locore.S - moved intrcnt/intrnames to locore.s to fix sysctl -a panic 2002-09-19 04:29:59 +00:00
machdep.c - implemented sendsig/sigreturn 2002-09-19 04:30:43 +00:00
mmu_oea.c - use BAT registers to map device space and physical memory 2002-09-19 04:36:20 +00:00
mp_machdep.c - Do not handle the per-CPU containers in mbuf code as though the cpuids 2001-07-26 18:47:46 +00:00
nexus.c psim device support 2002-09-19 04:31:04 +00:00
ofw_machdep.c Clear on-demand BAT entries to properly restore OpenFirmware's 2002-09-19 04:31:39 +00:00
ofwmagic.s Bring in NetBSD code used in the PowerPC port. 2001-06-10 02:39:37 +00:00
ofwmagic.S Bring in NetBSD code used in the PowerPC port. 2001-06-10 02:39:37 +00:00
openpic.c - psim device support 2002-09-19 04:32:25 +00:00
pic_if.m Add interrupt handling support code. 2002-07-09 11:12:20 +00:00
pmap.c - use BAT registers to map device space and physical memory 2002-09-19 04:36:20 +00:00
setjmp.S Add setjmp (needed for DDB). 2002-07-10 12:26:17 +00:00
sigcode.S - use symbol for user-context offset 2002-09-19 04:36:44 +00:00
suswintr.c Bring in NetBSD code used in the PowerPC port. 2001-06-10 02:39:37 +00:00
swtch.s Set the thread state of the newly chosen to run thread to TDS_RUNNING in 2002-07-12 18:34:22 +00:00
swtch.S Set the thread state of the newly chosen to run thread to TDS_RUNNING in 2002-07-12 18:34:22 +00:00
syncicache.c Add sync before isync for G4 cpus 2002-09-19 04:37:39 +00:00
sys_machdep.c Update PowerPC MD code to compile and do initial bootstrap based on 2001-09-20 00:47:17 +00:00
trap_subr.S - make sure recoverable interrupts are re-enabled in the trap handler 2002-09-19 04:39:04 +00:00
trap.c - worked around 32-bit big-endian syscall return value problem 2002-09-19 04:38:35 +00:00
vm_machdep.c - bring vm_mapbuf/unmapbuf in line with other archs 2002-09-19 04:39:28 +00:00