Skip to content

Commit

Permalink
modified start.S for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
jad13041 committed Jan 14, 2020
1 parent 8061162 commit f63af60
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion arch/powerpc/cpu/mpc85xx/start.S
Original file line number Diff line number Diff line change
Expand Up @@ -1247,9 +1247,11 @@ _start_of_vectors:
MCK_EXCEPTION(0x200, MachineCheck, MachineCheckException)

/* Data Storage exception. */
printf("data\n");
STD_EXCEPTION(0x0300, DataStorage, UnknownException)

/* Instruction Storage exception. */
printf("inst\n");
STD_EXCEPTION(0x0400, InstStorage, UnknownException)

/* External Interrupt exception. */
Expand Down Expand Up @@ -1278,10 +1280,14 @@ ProgramCheck:
STD_EXCEPTION(0x0800, FPUnavailable, UnknownException)
STD_EXCEPTION(0x0900, SystemCall, UnknownException)
STD_EXCEPTION(0x0a00, Decrementer, timer_interrupt)
printf("interval\n");
STD_EXCEPTION(0x0b00, IntervalTimer, UnknownException)
printf("watchdog\n");
STD_EXCEPTION(0x0c00, WatchdogTimer, UnknownException)


printf("dataTLB\n");
STD_EXCEPTION(0x0d00, DataTLBError, UnknownException)
printf("tlbe\n");
STD_EXCEPTION(0x0e00, InstructionTLBError, UnknownException)

CRIT_EXCEPTION(0x0f00, DebugBreakpoint, DebugException )
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/cpu/mpc85xx/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ static void print_backtrace(unsigned long *sp)
void show_regs(struct pt_regs *regs)
{
int i;
printf("confirm I'm in mpc85xx\n");
printf("confirm I'm in traps.c for mpc85xx \n");
printf("NIP: %08lX XER: %08lX LR: %08lX REGS: %p TRAP: %04lx DAR: %08lX\n",
regs->nip, regs->xer, regs->link, regs, regs->trap, regs->dar);
printf("MSR: %08lx EE: %01x PR: %01x FP: %01x ME: %01x IR/DR: %01x%01x\n",
Expand Down

0 comments on commit f63af60

Please sign in to comment.