Rev 1507 | Rev 1621 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1507 | Rev 1595 | ||
---|---|---|---|
Line 111... | Line 111... | ||
111 | { |
111 | { |
112 | istate->cr_iip = retaddr; |
112 | istate->cr_iip = retaddr; |
113 | istate->cr_ipsr.ri = 0; /* return to instruction slot #0 */ |
113 | istate->cr_ipsr.ri = 0; /* return to instruction slot #0 */ |
114 | } |
114 | } |
115 | 115 | ||
- | 116 | static inline __native istate_get_pc(istate_t *istate) |
|
- | 117 | { |
|
- | 118 | return istate->cr_iip; |
|
- | 119 | } |
|
- | 120 | #include <panic.h> |
|
- | 121 | static inline int istate_from_uspace(istate_t *istate) |
|
- | 122 | { |
|
- | 123 | panic("TODO: istate_from_uspace not yet implemented"); |
|
- | 124 | return 0; |
|
- | 125 | } |
|
- | 126 | ||
116 | extern void *ivt; |
127 | extern void *ivt; |
117 | 128 | ||
118 | extern void general_exception(__u64 vector, istate_t *istate); |
129 | extern void general_exception(__u64 vector, istate_t *istate); |
119 | extern int break_instruction(__u64 vector, istate_t *istate); |
130 | extern int break_instruction(__u64 vector, istate_t *istate); |
120 | extern void universal_handler(__u64 vector, istate_t *istate); |
131 | extern void universal_handler(__u64 vector, istate_t *istate); |