Subversion Repositories HelenOS-historic

Rev

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

Rev 1328 Rev 1374
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
    pht_init();
44
    asm volatile (
44
    asm volatile (
45
        "mtsprg0 %0\n"
45
        "mtsprg0 %0\n"
46
        :
46
        :
47
        : "r" (KA2PA(&THREAD->kstack[THREAD_STACK_SIZE - SP_DELTA]))
47
        : "r" (KA2PA(&THREAD->kstack[THREAD_STACK_SIZE - SP_DELTA]))
48
    );
48
    );