Subversion Repositories HelenOS-historic

Rev

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

Rev 1160 Rev 1187
Line 32... Line 32...
32
#include <arch.h>
32
#include <arch.h>
33
 
33
 
34
__address supervisor_sp;
34
__address supervisor_sp;
35
__address supervisor_sp_physical;
35
__address supervisor_sp_physical;
36
 
36
 
-
 
37
/** Perform ppc64 specific tasks needed before the new task is run. */
-
 
38
void before_task_runs_arch(void)
-
 
39
{
-
 
40
}
-
 
41
 
-
 
42
/** Perform ppc64 specific tasks needed before the new thread is scheduled. */
37
void before_thread_runs_arch(void)
43
void before_thread_runs_arch(void)
38
{
44
{
39
    supervisor_sp = (__address) &THREAD->kstack[THREAD_STACK_SIZE - SP_DELTA];
45
    supervisor_sp = (__address) &THREAD->kstack[THREAD_STACK_SIZE - SP_DELTA];
40
    supervisor_sp_physical = KA2PA(supervisor_sp_physical);
46
    supervisor_sp_physical = KA2PA(supervisor_sp_physical);
41
}
47
}