Zhimin Gu 8e5b2a3c5a x86-32/asm/power: Create stack frames in hibernate_asm_32.S
swsusp_arch_suspend() is callable non-leaf function which doesn't
honor CONFIG_FRAME_POINTER, which can result in bad stack traces.
Also it's not annotated as ELF callable function which can confuse tooling.

Create a stack frame for it when CONFIG_FRAME_POINTER is enabled and
give it proper ELF function annotation.

Also in this patch introduces the restore_registers() symbol and
gives it ELF function annotation, thus to prepare for later register
restore.

Analogous changes were made for 64bit before in commit ef0f3ed5a4ac
(x86/asm/power: Create stack frames in hibernate_asm_64.S) and
commit 4ce827b4cc58 (x86/power/64: Fix hibernation return address
corruption).

Signed-off-by: Zhimin Gu <kookoo.gu@intel.com>
Signed-off-by: Chen Yu <yu.c.chen@intel.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2018-10-03 11:56:33 +02:00
..
2018-08-19 10:38:36 -07:00
2018-09-03 12:41:41 +02:00
2018-02-15 01:15:50 +01:00
2018-07-25 11:53:59 +02:00
2018-03-20 10:01:57 +01:00
2018-01-30 15:08:27 +01:00
2018-05-19 13:55:40 +02:00
2018-08-19 10:38:36 -07:00
2018-08-15 13:44:10 -07:00
2017-12-22 20:13:04 +01:00
2017-12-04 10:56:53 +10:00
2017-12-22 20:13:01 +01:00
2018-08-19 10:38:36 -07:00
2017-07-26 13:18:20 +02:00
2018-05-07 07:15:41 +02:00
2018-06-07 10:23:33 -07:00
2018-07-20 01:11:45 +02:00
2017-11-15 18:21:05 -08:00
2018-03-28 22:47:06 +02:00
2018-03-20 10:01:57 +01:00
2018-05-09 21:41:38 +02:00
2018-09-01 23:01:56 +02:00
2017-11-15 18:21:04 -08:00