summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/exceptions-64e.S
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2021-06-17 17:51:02 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2021-06-24 16:06:55 +0200
commit1df7d5e4baeac74d14c1bee18b2dff9302b3efbc (patch)
tree0a2153f84ec8eeae5ecaa79d07f93dc42ca9e9af /arch/powerpc/kernel/exceptions-64e.S
parentpowerpc: remove interrupt exit helpers unused argument (diff)
downloadlinux-1df7d5e4baeac74d14c1bee18b2dff9302b3efbc.tar.xz
linux-1df7d5e4baeac74d14c1bee18b2dff9302b3efbc.zip
powerpc/64s: introduce different functions to return from SRR vs HSRR interrupts
This makes no real difference yet except that HSRR type interrupts will use hrfid to return. This is important for the next patch. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20210617155116.2167984-4-npiggin@gmail.com
Diffstat (limited to 'arch/powerpc/kernel/exceptions-64e.S')
-rw-r--r--arch/powerpc/kernel/exceptions-64e.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/exceptions-64e.S b/arch/powerpc/kernel/exceptions-64e.S
index f1ae710274bc..b35c97c7082f 100644
--- a/arch/powerpc/kernel/exceptions-64e.S
+++ b/arch/powerpc/kernel/exceptions-64e.S
@@ -26,6 +26,10 @@
#include <asm/feature-fixups.h>
#include <asm/context_tracking.h>
+/* 64e interrupt returns always use SRR registers */
+#define fast_interrupt_return fast_interrupt_return_srr
+#define interrupt_return interrupt_return_srr
+
/* XXX This will ultimately add space for a special exception save
* structure used to save things like SRR0/SRR1, SPRGs, MAS, etc...
* when taking special interrupts. For now we don't support that,