Subversion Repositories HelenOS-historic

Rev

Rev 911 | Rev 916 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 911 Rev 912
Line 28... Line 28...
28
 
28
 
29
#include <proc/scheduler.h>
29
#include <proc/scheduler.h>
30
#include <proc/thread.h>
30
#include <proc/thread.h>
31
#include <arch.h>
31
#include <arch.h>
32
#include <arch/register.h>
32
#include <arch/register.h>
-
 
33
#include <arch/context.h>
33
#include <arch/mm/tlb.h>
34
#include <arch/mm/tlb.h>
34
#include <config.h>
35
#include <config.h>
35
#include <align.h>
36
#include <align.h>
36
 
37
 
37
/** Record kernel stack address in bank 0 r23 and make sure it is mapped in DTR. */
38
/** Record kernel stack address in bank 0 r23 and make sure it is mapped in DTR. */
Line 55... Line 56...
55
     */
56
     */
56
    __asm__ volatile (
57
    __asm__ volatile (
57
        "bsw.0\n"
58
        "bsw.0\n"
58
        "mov r23 = %0\n"
59
        "mov r23 = %0\n"
59
        "bsw.1\n"
60
        "bsw.1\n"
60
         : : "r" (THREAD->kstack));
61
         : : "r" (&THREAD->kstack[THREAD_STACK_SIZE - SP_DELTA]));
61
}
62
}
62
 
63
 
63
void after_thread_ran_arch(void)
64
void after_thread_ran_arch(void)
64
{
65
{
65
}
66
}