55 typedef void (*trap_exception_handler_t)(exception_type_t type,
exception_frame_t *ex);
57 #define DCIC_WR (1 << 27)
58 #define DCIC_RD (1 << 26)
59 #define DCIC_DA (1 << 25)
60 #define DCIC_PC (1 << 24)
62 extern const char *get_exception_name(exception_type_t type);
68 extern exception_type_t dbg_setjmp();
71 extern trap_exception_handler_t set_exception_handler(exception_type_t type, trap_exception_handler_t handler);
72 extern trap_exception_handler_t get_exception_handler(exception_type_t type);
75 extern void set_dba(u32 v);
76 extern void set_dbam(u32 v);
77 extern void set_dcic(u32 v);
79 extern u32 get_dbam();
80 extern u32 get_dcic();
82 #define ioptrap_IMPORTS_start DECLARE_IMPORT_TABLE(ioptrap, 1, 1)
83 #define ioptrap_IMPORTS_end END_IMPORT_TABLE
85 #define I_get_exception_name DECLARE_IMPORT(4, get_exception_name)
86 #define I_dbg_setjmp DECLARE_IMPORT(5, dbg_setjmp)
87 #define I_set_exception_handler DECLARE_IMPORT(6, set_exception_handler)
88 #define I_get_exception_handler DECLARE_IMPORT(7, get_exception_handler)
89 #define I_set_dba DECLARE_IMPORT(8, set_dba)
90 #define I_set_dbam DECLARE_IMPORT(9, set_dbam)
91 #define I_set_dcic DECLARE_IMPORT(10, set_dcic)
92 #define I_get_dba DECLARE_IMPORT(11, get_dba)
93 #define I_get_dbam DECLARE_IMPORT(12, get_dbam)
94 #define I_get_dcic DECLARE_IMPORT(13, get_dcic)