2002-11-03 07:30:20 +08:00
|
|
|
BEDBUG Support for U-Boot
|
|
|
|
--------------------------
|
|
|
|
|
|
|
|
These changes implement the bedbug (emBEDded deBUGger) debugger in U-Boot.
|
2005-09-23 17:05:55 +08:00
|
|
|
A specific implementation is made for the AMCC 405 processor but other flavors
|
2002-11-03 07:30:20 +08:00
|
|
|
can be easily implemented.
|
|
|
|
|
|
|
|
#####################
|
|
|
|
### Modifications ###
|
|
|
|
#####################
|
|
|
|
|
|
|
|
./common/Makefile
|
|
|
|
Included cmd_bedbug.c and bedbug.c in the Makefile.
|
|
|
|
|
|
|
|
./common/command.c
|
|
|
|
Added bedbug commands to command table.
|
|
|
|
|
|
|
|
./common/board.c
|
|
|
|
Added call to initialize debugger on startup.
|
|
|
|
|
2010-04-15 22:07:28 +08:00
|
|
|
./arch/powerpc/cpu/ppc4xx/Makefile
|
2002-11-03 07:30:20 +08:00
|
|
|
Added bedbug_405.c to the Makefile.
|
|
|
|
|
2010-04-15 22:07:28 +08:00
|
|
|
./arch/powerpc/cpu/ppc4xx/start.S
|
2002-11-03 07:30:20 +08:00
|
|
|
Added code to handle the debug exception (0x2000) on the 405.
|
|
|
|
Also added code to handle critical exceptions since the debug
|
|
|
|
is treated as critical on the 405.
|
|
|
|
|
2010-04-15 22:07:28 +08:00
|
|
|
./arch/powerpc/cpu/ppc4xx/traps.c
|
2002-11-03 07:30:20 +08:00
|
|
|
Added more detailed output for the program exception to tell
|
|
|
|
if it is an illegal instruction, privileged instruction or
|
|
|
|
a trap. Also added debug trap handler.
|
|
|
|
|
|
|
|
./include/ppc_asm.tmpl
|
|
|
|
Added code to handle critical exceptions
|
|
|
|
|
|
|
|
#################
|
|
|
|
### New Stuff ###
|
|
|
|
#################
|
|
|
|
|
|
|
|
./include/bedbug/ppc.h
|
|
|
|
./include/bedbug/regs.h
|
|
|
|
./include/bedbug/bedbug.h
|
|
|
|
./include/bedbug/elf.h [obsoleted by new include/elf.h]
|
|
|
|
./include/bedbug/tables.h
|
|
|
|
./include/cmd_bedbug.h
|
|
|
|
./common/cmd_bedbug.c
|
|
|
|
./common/bedbug.c
|
|
|
|
Bedbug library includes code for assembling and disassembling
|
|
|
|
PowerPC instructions to/from memory as well as handling
|
|
|
|
hardware breakpoints and stepping through code. These
|
|
|
|
routines are common to all PowerPC processors.
|
|
|
|
|
2010-04-15 22:07:28 +08:00
|
|
|
./arch/powerpc/cpu/ppc4xx/bedbug_405.c
|
2005-09-23 17:05:55 +08:00
|
|
|
AMCC PPC405 specific debugger routines.
|
2002-11-03 07:30:20 +08:00
|
|
|
|
|
|
|
|
|
|
|
Bedbug support for the MPC860
|
|
|
|
-----------------------------
|
|
|
|
|
|
|
|
Changes:
|
|
|
|
|
|
|
|
common/cmd_bedbug.c
|
|
|
|
Added call to initialize 860 debugger.
|
|
|
|
|
2010-04-15 22:07:28 +08:00
|
|
|
arch/powerpc/cpu/mpc8xx/Makefile
|
2002-11-03 07:30:20 +08:00
|
|
|
Added new file "bedbug_860.c" to the makefile
|
|
|
|
|
2010-04-15 22:07:28 +08:00
|
|
|
arch/powerpc/cpu/mpc8xx/start.S
|
2002-11-03 07:30:20 +08:00
|
|
|
Added handler for InstructionBreakpoint (0xfd00)
|
|
|
|
|
2010-04-15 22:07:28 +08:00
|
|
|
arch/powerpc/cpu/mpc8xx/traps.c
|
2002-11-03 07:30:20 +08:00
|
|
|
Added new routine DebugException()
|
|
|
|
|
|
|
|
New Files:
|
|
|
|
|
2010-04-15 22:07:28 +08:00
|
|
|
arch/powerpc/cpu/mpc8xx/bedbug_860.c
|
2002-11-03 07:30:20 +08:00
|
|
|
CPU-specific routines for 860 debug registers.
|