diff options
| -rw-r--r-- | arch/powerpc/kernel/epapr_paravirt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/epapr_paravirt.c b/arch/powerpc/kernel/epapr_paravirt.c index 7898be90f2dc..d9b79358b833 100644 --- a/arch/powerpc/kernel/epapr_paravirt.c +++ b/arch/powerpc/kernel/epapr_paravirt.c | |||
| @@ -47,9 +47,10 @@ static int __init early_init_dt_scan_epapr(unsigned long node, | |||
| 47 | return -1; | 47 | return -1; |
| 48 | 48 | ||
| 49 | for (i = 0; i < (len / 4); i++) { | 49 | for (i = 0; i < (len / 4); i++) { |
| 50 | patch_instruction(epapr_hypercall_start + i, insts[i]); | 50 | u32 inst = be32_to_cpu(insts[i]); |
| 51 | patch_instruction(epapr_hypercall_start + i, inst); | ||
| 51 | #if !defined(CONFIG_64BIT) || defined(CONFIG_PPC_BOOK3E_64) | 52 | #if !defined(CONFIG_64BIT) || defined(CONFIG_PPC_BOOK3E_64) |
| 52 | patch_instruction(epapr_ev_idle_start + i, insts[i]); | 53 | patch_instruction(epapr_ev_idle_start + i, inst); |
| 53 | #endif | 54 | #endif |
| 54 | } | 55 | } |
| 55 | 56 | ||
