Ignore:
File:
1 edited

Legend:

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

    re4d96e9 r908bb96  
    5454#include <proc/thread.h>
    5555#include <arch/cycle.h>
    56 #include <arch/stack.h>
    5756#include <str.h>
    5857#include <trace.h>
     
    223222        /*
    224223         * The istate structure should be right at the bottom of the kernel
    225          * memory stack.
     224         * stack.
    226225         */
    227         return (istate_t *) &thread->kstack[MEM_STACK_SIZE - sizeof(istate_t)];
     226        return (istate_t *) ((uint8_t *)
     227            thread->kstack + STACK_SIZE - sizeof(istate_t));
    228228}
    229229
Note: See TracChangeset for help on using the changeset viewer.