5 #include "entry_frame.h"
15 class Trap_state : public Trap_state_regs, public Syscall_frame,
19 typedef int (*Handler)(Trap_state*, unsigned cpu);
29 Trap_state::sanitize_user_state()
36 Trap_state::ip() const
41 Trap_state::trapno() const
42 { return error_code; }
46 Trap_state::error() const
51 Trap_state::set_ipc_upcall()
53 error_code = 0x10000000; // see Msr
58 Trap_state::set_pagefault(Mword pfa, Mword error)
66 Trap_state::is_debug_exception() const
73 char const *excpts[] =
74 {"reset","machine check"};
76 printf("EXCEPTION: pfa=%08lx, error=%08lx\n",
77 //excpts[((error_code & ~0xff) >> 8) - 1]
78 pf_address, error_code);
80 printf("SP: %08lx LR: %08lx SRR0: %08lx SRR1 %08lx\n\n"
82 "R[3]: %08lx %08lx %08lx %08lx %08lx\n"
83 "R[8]: %08lx %08lx %08lx %08lx %08lx\n",
85 r[0], r[1], r[2], r[3], r[4], r[5], r[6], r[7],