5 #include "entry_frame.h"
15 class Trap_state : public Trap_state_regs, public Syscall_frame,
19 typedef int (*Handler)(Trap_state*, unsigned cpu);
20 bool exclude_logging() { return false; }
30 Trap_state::sanitize_user_state()
37 Trap_state::ip() const
42 Trap_state::trapno() const
43 { return error_code; }
47 Trap_state::error() const
52 Trap_state::set_ipc_upcall()
54 error_code = 0x10000000; // see Msr
59 Trap_state::set_pagefault(Mword pfa, Mword error)
67 Trap_state::is_debug_exception() const
74 char const *excpts[] =
75 {"reset","machine check"};
77 printf("EXCEPTION: pfa=%08lx, error=%08lx\n",
78 //excpts[((error_code & ~0xff) >> 8) - 1]
79 pf_address, error_code);
81 printf("SP: %08lx LR: %08lx SRR0: %08lx SRR1 %08lx\n\n"
83 "R[3]: %08lx %08lx %08lx %08lx %08lx\n"
84 "R[8]: %08lx %08lx %08lx %08lx %08lx\n",
86 r[0], r[1], r[2], r[3], r[4], r[5], r[6], r[7],