Ignore:
Timestamp:
2012-11-22T21:42:36Z (11 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e32720ff
Parents:
1dbc43f
Message:

Postpone printing the message about killing a task due to a failed late
reservation request until it is clear the task is going to be kiiled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/interrupt/interrupt.c

    r1dbc43f r908bb96  
    166166}
    167167
    168 static NO_TRACE void fault_from_uspace_core(istate_t *istate, const char *fmt, va_list args)
    169 {
    170         if (!TASK->silent_kill) {
    171                 printf("Task %s (%" PRIu64 ") killed due to an exception at "
    172                     "program counter %p.\n", TASK->name, TASK->taskid,
    173                     (void *) istate_get_pc(istate));
    174        
    175                 istate_decode(istate);
    176                 stack_trace_istate(istate);
    177        
    178                 printf("Kill message: ");
    179                 vprintf(fmt, args);
    180                 printf("\n");
    181         }
     168static NO_TRACE
     169void fault_from_uspace_core(istate_t *istate, const char *fmt, va_list args)
     170{
     171        printf("Task %s (%" PRIu64 ") killed due to an exception at "
     172            "program counter %p.\n", TASK->name, TASK->taskid,
     173            (void *) istate_get_pc(istate));
     174       
     175        istate_decode(istate);
     176        stack_trace_istate(istate);
     177       
     178        printf("Kill message: ");
     179        vprintf(fmt, args);
     180        printf("\n");
    182181       
    183182        task_kill_self(true);
Note: See TracChangeset for help on using the changeset viewer.