Changeset 7ed2d8f in mainline for kernel/generic
- Timestamp:
- 2009-01-07T22:55:52Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c571f42
- Parents:
- 06b2b7f
- Location:
- kernel/generic
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/interrupt.h
r06b2b7f r7ed2d8f 45 45 typedef void (* iroutine)(int n, istate_t *istate); 46 46 47 #define fault_if_from_uspace(istate, cmd, ...) \47 #define fault_if_from_uspace(istate, fmt, ...) \ 48 48 { \ 49 49 if (istate_from_uspace(istate)) { \ 50 50 task_t *task = TASK; \ 51 51 printf("Task %" PRIu64 " killed due to an exception at %p.", task->taskid, istate_get_pc(istate)); \ 52 printf(" " cmd, ##__VA_ARGS__); \52 printf(" " fmt "\n", ##__VA_ARGS__); \ 53 53 task_kill(task->taskid); \ 54 54 thread_exit(); \ -
kernel/generic/src/interrupt/interrupt.c
r06b2b7f r7ed2d8f 106 106 static void exc_undef(int n, istate_t *istate) 107 107 { 108 fault_if_from_uspace(istate, "Unhandled exception %d .", n);109 panic("Unhandled exception %d .", n);108 fault_if_from_uspace(istate, "Unhandled exception %d", n); 109 panic("Unhandled exception %d", n); 110 110 } 111 111
Note:
See TracChangeset
for help on using the changeset viewer.