summaryrefslogtreecommitdiff
path: root/arch/sparc/kernel/utrap.S
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2016-04-27 17:27:37 -0400
committerSasha Levin <sasha.levin@oracle.com>2016-07-10 23:07:30 -0400
commit693b8dc4b23b853c5636fc04909bff48e44758cc (patch)
treed2a03aece4c8c2a8be15eb51ea2810443677cbaf /arch/sparc/kernel/utrap.S
parentd2e4e89ae871295c539334f50368bb48f74c3caf (diff)
sparc64: Fix bootup regressions on some Kconfig combinations.
[ Upstream commit 49fa5230462f9f2c4e97c81356473a6bdf06c422 ] The system call tracing bug fix mentioned in the Fixes tag below increased the amount of assembler code in the sequence of assembler files included by head_64.S This caused to total set of code to exceed 0x4000 bytes in size, which overflows the expression in head_64.S that works to place swapper_tsb at address 0x408000. When this is violated, the TSB is not properly aligned, and also the trap table is not aligned properly either. All of this together results in failed boots. So, do two things: 1) Simplify some code by using ba,a instead of ba/nop to get those bytes back. 2) Add a linker script assertion to make sure that if this happens again the build will fail. Fixes: 1a40b95374f6 ("sparc: Fix system call tracing register handling.") Reported-by: Meelis Roos <mroos@linux.ee> Reported-by: Joerg Abraham <joerg.abraham@nokia.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'arch/sparc/kernel/utrap.S')
-rw-r--r--arch/sparc/kernel/utrap.S3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/sparc/kernel/utrap.S b/arch/sparc/kernel/utrap.S
index b7f0f3f3a909..c731e8023d3e 100644
--- a/arch/sparc/kernel/utrap.S
+++ b/arch/sparc/kernel/utrap.S
@@ -11,8 +11,7 @@ utrap_trap: /* %g3=handler,%g4=level */
mov %l4, %o1
call bad_trap
add %sp, PTREGS_OFF, %o0
- ba,pt %xcc, rtrap
- nop
+ ba,a,pt %xcc, rtrap
invoke_utrap:
sllx %g3, 3, %g3