Changes in kernel/generic/src/interrupt/interrupt.c [1ad52de:7e752b2] in mainline
- File:
-
- 1 edited
-
kernel/generic/src/interrupt/interrupt.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/interrupt/interrupt.c
r1ad52de r7e752b2 197 197 /* Notify the subscriber that a fault occurred. */ 198 198 event_notify_3(EVENT_FAULT, LOWER32(TASK->taskid), 199 UPPER32(TASK->taskid), ( sysarg_t) THREAD);199 UPPER32(TASK->taskid), (unative_t) THREAD); 200 200 201 201 #ifdef CONFIG_UDEBUG … … 207 207 task_kill(TASK->taskid); 208 208 thread_exit(); 209 }210 211 /** Get istate structure of a thread.212 *213 * Get pointer to the istate structure at the bottom of the kernel stack.214 *215 * This function can be called in interrupt or user context. In interrupt216 * context the istate structure is created by the low-level exception217 * handler. In user context the istate structure is created by the218 * low-level syscall handler.219 */220 istate_t *istate_get(thread_t *thread)221 {222 /*223 * The istate structure should be right at the bottom of the kernel224 * stack.225 */226 return (istate_t *) ((uint8_t *) thread->kstack + THREAD_STACK_SIZE -227 sizeof(istate_t));228 209 } 229 210 … … 282 263 283 264 const char *symbol = 284 symtab_fmt_name_lookup(( sysarg_t) exc_table[i].handler);265 symtab_fmt_name_lookup((unative_t) exc_table[i].handler); 285 266 286 267 #ifdef __32_BITS__
Note:
See TracChangeset
for help on using the changeset viewer.
