Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ppc32/src/proc/scheduler.c

    rd92bf462 rdf4ed85  
    3939#include <arch.h>
    4040
    41 /** Perform ppc32 specific tasks needed before the new task is run.
    42  *
    43  */
     41/** Perform ppc32 specific tasks needed before the new task is run. */
    4442void before_task_runs_arch(void)
    4543{
    4644}
    4745
    48 /** Perform ppc32 specific tasks needed before the new thread is scheduled.
    49  *
    50  */
     46/** Perform ppc32 specific tasks needed before the new thread is scheduled. */
    5147void before_thread_runs_arch(void)
    5248{
    5349        tlb_invalidate_all();
    54        
    5550        asm volatile (
    56                 "mtsprg0 %[ksp]\n"
    57                 :: [ksp] "r" (KA2PA(&THREAD->kstack[THREAD_STACK_SIZE - SP_DELTA]))
     51                "mtsprg0 %0\n"
     52                :
     53                : "r" (KA2PA(&THREAD->kstack[THREAD_STACK_SIZE - SP_DELTA]))
    5854        );
    5955}
Note: See TracChangeset for help on using the changeset viewer.