summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/rtas_entry.S
Commit message (Collapse)AuthorAgeFilesLines
* powerpc/rtas: Leave MSR[RI] enabled over RTAS callNicholas Piggin2022-05-191-9/+2
| | | | | | | | | | | | PAPR specifies that RTAS may be called with MSR[RI] enabled if the calling context is recoverable, and RTAS will manage RI as necessary. Call the rtas entry point with RI enabled, and add a check to ensure the caller has RI enabled. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20220308135047.478297-10-npiggin@gmail.com
* powerpc/rtas: PACA can be restored directly from SPRGNicholas Piggin2022-05-191-9/+4
| | | | | | | | | | | | On 64-bit, PACA is saved in a SPRG so it does not need to be saved on stack. We also don't need to mask off the top bits for real mode addresses because the architecture does this for us. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Reviewed-by: Laurent Dufour <ldufour@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20220308135047.478297-8-npiggin@gmail.com
* powerpc/rtas: Call enter_rtas with MSR[EE] disabledNicholas Piggin2022-05-191-15/+0
| | | | | | | | | | Disable MSR[EE] in C code rather than asm. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Reviewed-by: Laurent Dufour <ldufour@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20220308135047.478297-5-npiggin@gmail.com
* powerpc/rtas: Fix whitespace in rtas_entry.SNicholas Piggin2022-05-191-13/+13
| | | | | | | | | The code was moved verbatim including whitespace cruft. Fix that. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20220308135047.478297-4-npiggin@gmail.com
* powerpc/rtas: Make enter_rtas a nokprobe symbol on 64-bitNicholas Piggin2022-05-191-0/+1
| | | | | | | | | This symbol is marked nokprobe on 32-bit but not 64-bit, add it. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20220308135047.478297-3-npiggin@gmail.com
* powerpc/rtas: Move rtas entry assembly into its own fileNicholas Piggin2022-05-191-0/+198
This makes working on the code a bit easier. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20220308135047.478297-2-npiggin@gmail.com