Changeset 63594c0 in mainline
- Timestamp:
- 2011-01-04T22:01:13Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1ad52de
- Parents:
- c11ebb6a
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/interrupt.h
rc11ebb6a r63594c0 60 60 extern void fault_if_from_uspace(istate_t *, const char *, ...) 61 61 PRINTF_ATTRIBUTE(2, 3); 62 extern istate_t *istate_get(thread_t *); 62 63 extern iroutine_t exc_register(unsigned int, const char *, bool, iroutine_t); 63 64 extern void exc_dispatch(unsigned int, istate_t *); -
kernel/generic/src/interrupt/interrupt.c
rc11ebb6a r63594c0 209 209 } 210 210 211 istate_t *istate_get(thread_t *thread) 212 { 213 return (istate_t *) ((uint8_t *) thread->kstack + THREAD_STACK_SIZE - 214 sizeof(istate_t)); 215 } 216 211 217 #ifdef CONFIG_KCONSOLE 212 218 -
kernel/generic/src/syscall/syscall.c
rc11ebb6a r63594c0 45 45 #include <debug.h> 46 46 #include <ddi/device.h> 47 #include <interrupt.h> 47 48 #include <ipc/sysipc.h> 48 49 #include <synch/futex.h> … … 66 67 #ifdef CONFIG_UDEBUG 67 68 /* 69 * An istate_t-compatible record was created on the stack by the 70 * low-level syscall handler. This is the userspace space state 71 * structure. 72 */ 73 THREAD->udebug.uspace_state = istate_get(THREAD); 74 75 /* 68 76 * Early check for undebugged tasks. We do not lock anything as this 69 77 * test need not be precise in either direction. 70 *71 78 */ 72 79 if (THREAD->udebug.active) … … 98 105 udebug_stoppable_end(); 99 106 } 107 108 /* Clear userspace state pointer */ 109 THREAD->udebug.uspace_state = NULL; 100 110 #endif 101 111 -
uspace/app/taskdump/taskdump.c
rc11ebb6a r63594c0 326 326 327 327 sym_pc = fmt_sym_address(pc); 328 printf("Thread %p crashed at%s. FP = %p\n", (void *) thash,328 printf("Thread %p: PC = %s. FP = %p\n", (void *) thash, 329 329 sym_pc, (void *) fp); 330 330 free(sym_pc);
Note:
See TracChangeset
for help on using the changeset viewer.