Ignore:
Timestamp:
2011-01-23T20:09:13Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fdb9982c
Parents:
cead2aa (diff), 7e36c8d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

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

    rcead2aa r357b5f5  
    197197                /* Notify the subscriber that a fault occurred. */
    198198                event_notify_3(EVENT_FAULT, LOWER32(TASK->taskid),
    199                     UPPER32(TASK->taskid), (unative_t) THREAD);
     199                    UPPER32(TASK->taskid), (sysarg_t) THREAD);
    200200               
    201201#ifdef CONFIG_UDEBUG
     
    207207        task_kill(TASK->taskid);
    208208        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 interrupt
     216 * context the istate structure is created by the low-level exception
     217 * handler. In user context the istate structure is created by the
     218 * low-level syscall handler.
     219 */
     220istate_t *istate_get(thread_t *thread)
     221{
     222        /*
     223         * The istate structure should be right at the bottom of the kernel
     224         * stack.
     225         */
     226        return (istate_t *) ((uint8_t *) thread->kstack + THREAD_STACK_SIZE -
     227            sizeof(istate_t));
    209228}
    210229
     
    263282               
    264283                const char *symbol =
    265                     symtab_fmt_name_lookup((unative_t) exc_table[i].handler);
     284                    symtab_fmt_name_lookup((sysarg_t) exc_table[i].handler);
    266285               
    267286#ifdef __32_BITS__
Note: See TracChangeset for help on using the changeset viewer.