https://github.com/torvalds/linux
Revision 6f354e5f40f433da98fab4103cd3a0aef1c18bde authored by Russell King on 27 August 2011, 10:37:58 UTC, committed by Russell King on 28 August 2011, 09:39:53 UTC
r1 stores the v:p offset from the CPU invariant resume code, and is
expected to be preserved by the CPU specific code.  Overwriting it is
not a good idea.

We've managed to get away with it on sa1100 platforms because most
happen to have PHYS_OFFSET == PAGE_OFFSET, but that may not be the
case depending on kernel configuration.  So fix this latent bug.

This fixes xsc3 as well which was saving and restoring this register
independently.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent 0f81bb6
History
Tip revision: 6f354e5f40f433da98fab4103cd3a0aef1c18bde authored by Russell King on 27 August 2011, 10:37:58 UTC
ARM: pm: CPU specific code should not overwrite r1 (v:p offset)
Tip revision: 6f354e5
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1014 bytes
.mailmap -rw-r--r-- 4.1 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 92.6 KB
Kbuild -rw-r--r-- 2.4 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 196.2 KB
Makefile -rw-r--r-- 52.3 KB
README -rw-r--r-- 17.0 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top