From: Arnd Bergmann <[email protected]> The pxa3xx_cpu_pm_suspend() implementation hardcodes the default PAGE_OFFSET value for CONFIG_VMSPLIT_3G. This has always been broken for other configurations but becomes much worse now that the default is changing.
Fix this to use the correct compile-time constant instead. Reported-by: [email protected] Fixes: c4d1fb627ff3 ("[ARM] pxa: add preliminary suspend/resume code for pxa3xx") Cc: [email protected] Link: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Arnd Bergmann <[email protected]> --- arch/arm/mach-pxa/pxa3xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-pxa/pxa3xx.c b/arch/arm/mach-pxa/pxa3xx.c index 06c578ea658e..253770075a8b 100644 --- a/arch/arm/mach-pxa/pxa3xx.c +++ b/arch/arm/mach-pxa/pxa3xx.c @@ -103,7 +103,7 @@ static void pxa3xx_cpu_standby(unsigned int pwrmode) */ static void pxa3xx_cpu_pm_suspend(void) { - volatile unsigned long *p = (volatile void *)0xc0000000; + volatile unsigned long *p = (volatile void *)PAGE_OFFSET; unsigned long saved_data = *p; #ifndef CONFIG_IWMMXT u64 acc0; -- 2.53.0
