/* This is here deliberately so it's only used in this file */
void enter_rtas(unsigned long);
-static inline void do_enter_rtas(unsigned long args)
+static void do_enter_rtas(struct rtas_args *args)
{
unsigned long msr;
hard_irq_disable(); /* Ensure MSR[EE] is disabled on PPC64 */
- enter_rtas(args);
+ enter_rtas(__pa(args));
srr_regs_clobbered(); /* rtas uses SRRs, invalidate */
}
save_args = rtas_args;
rtas_args = err_args;
- do_enter_rtas(__pa(&rtas_args));
+ do_enter_rtas(&rtas_args);
err_args = rtas_args;
rtas_args = save_args;
for (i = 0; i < nret; ++i)
args->rets[i] = 0;
- do_enter_rtas(__pa(args));
+ do_enter_rtas(args);
}
void rtas_call_unlocked(struct rtas_args *args, int token, int nargs, int nret, ...)
raw_spin_lock_irqsave(&rtas_lock, flags);
rtas_args = args;
- do_enter_rtas(__pa(&rtas_args));
+ do_enter_rtas(&rtas_args);
args = rtas_args;
/* A -1 return code indicates that the last command couldn't