Ignore:
File:
1 edited

Legend:

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

    re4d96e9 r8f4f444  
    5454#include <proc/thread.h>
    5555#include <arch/cycle.h>
    56 #include <arch/stack.h>
    5756#include <str.h>
    5857#include <trace.h>
     
    167166}
    168167
    169 static NO_TRACE
    170 void fault_from_uspace_core(istate_t *istate, const char *fmt, va_list args)
     168static NO_TRACE void fault_from_uspace_core(istate_t *istate, const char *fmt, va_list args)
    171169{
    172170        printf("Task %s (%" PRIu64 ") killed due to an exception at "
     
    223221        /*
    224222         * The istate structure should be right at the bottom of the kernel
    225          * memory stack.
     223         * stack.
    226224         */
    227         return (istate_t *) &thread->kstack[MEM_STACK_SIZE - sizeof(istate_t)];
     225        return (istate_t *) ((uint8_t *)
     226            thread->kstack + STACK_SIZE - sizeof(istate_t));
    228227}
    229228
Note: See TracChangeset for help on using the changeset viewer.