Changeset 1ad52de in mainline


Ignore:
Timestamp:
2011-01-04T22:32:37Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cd22764
Parents:
63594c0
Message:

Add comment.

File:
1 edited

Legend:

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

    r63594c0 r1ad52de  
    209209}
    210210
     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 */
    211220istate_t *istate_get(thread_t *thread)
    212221{
     222        /*
     223         * The istate structure should be right at the bottom of the kernel
     224         * stack.
     225         */
    213226        return (istate_t *) ((uint8_t *) thread->kstack + THREAD_STACK_SIZE -
    214227            sizeof(istate_t));
Note: See TracChangeset for help on using the changeset viewer.