]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sparc: kexec: Don't mess with the tl register
authorDave Kleikamp <dave.kleikamp@oracle.com>
Thu, 23 Jun 2016 19:04:30 +0000 (14:04 -0500)
committerAllen Pais <allen.pais@oracle.com>
Tue, 8 Nov 2016 10:14:47 +0000 (15:44 +0530)
commitc915fa9d5788dac3ddbb4529dc6f1abe4b282490
treeb38dd35203653cfc3c5513596b39d7e7f175c924
parent458f2bc3eebfa24c8c8ab96351fabed8f9d94b09
sparc: kexec: Don't mess with the tl register

I meddled with things I didn't fully understand while implementing commit
b43bc8f0 - "sparc64: add missing code for crash_setup_regs()"

I had changed the tl register in order to read tstate, tpc, etc. without
really knowing what I was doing. This can be a disaster if the crashing
thread takes another interrupt. Currently, the crash utitility doesn't
even use those values. They are found on the stack instead.

Orabug: 23585248

Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
(cherry picked from commit 80eb7e28d3c719bbe3af56de5a5a8c68b764dbb9)
Signed-off-by: Allen Pais <allen.pais@oracle.com>
arch/sparc/include/asm/kexec.h