Subversion Repositories HelenOS-historic

Rev

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

Rev 1267 Rev 1328
Line 38... Line 38...
38
}
38
}
39
 
39
 
40
/** Perform ppc32 specific tasks needed before the new thread is scheduled. */
40
/** Perform ppc32 specific tasks needed before the new thread is scheduled. */
41
void before_thread_runs_arch(void)
41
void before_thread_runs_arch(void)
42
{
42
{
-
 
43
    tlb_invalidate_all();
43
    asm volatile (
44
    asm volatile (
44
        "mtsprg0 %0\n"
45
        "mtsprg0 %0\n"
45
        :
46
        :
46
        : "r" (KA2PA(&THREAD->kstack[THREAD_STACK_SIZE - SP_DELTA]))
47
        : "r" (KA2PA(&THREAD->kstack[THREAD_STACK_SIZE - SP_DELTA]))
47
    );
48
    );