diff options
author | Anson Huang <Anson.Huang@freescale.com> | 2015-12-07 12:09:19 +0300 |
---|---|---|
committer | Zefan Li <lizefan@huawei.com> | 2016-10-26 18:15:38 +0300 |
commit | 0629784cfde7ab2adf0118c981271e48aeeb6dbd (patch) | |
tree | 09dce8bc8aba8e17c141326e47275f8dd20bbe3d /scripts | |
parent | efd171004345809f4f4ce7e147028d865ab78f68 (diff) | |
download | linux-0629784cfde7ab2adf0118c981271e48aeeb6dbd.tar.xz |
ARM: 8471/1: need to save/restore arm register(r11) when it is corrupted
commit fa0708b320f6da4c1104fe56e01b7abf66fd16ad upstream.
In cpu_v7_do_suspend routine, r11 is used while it is NOT
saved/restored, different compiler may have different usage
of ARM general registers, so it may cause issues during
calling cpu_v7_do_suspend.
We meet kernel fault occurs when using GCC 4.8.3, r11 contains
valid value before calling into cpu_v7_do_suspend, but when returned
from this routine, r11 is corrupted and lead to kernel fault.
Doing save/restore for those corrupted registers is a must in
assemble code.
Signed-off-by: Anson Huang <Anson.Huang@freescale.com>
Reviewed-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
[lizf: Backported to 3.4: adjust context]
Signed-off-by: Zefan Li <lizefan@huawei.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions