linux/arch/x86/power
Zhimin Gu 6bae499a0a x86-32, hibernate: Switch to relocated restore code during resume on 32bit system
On 64bit system, code should be executed in a safe page
during page restoring, as the page where instruction is
running during resume might be scribbled and causes issues.

Although on 32 bit, we only suspend resuming by same kernel
that did the suspend, we'd like to remove that restriction
in the future.

Porting corresponding code from
64bit system: Allocate a safe page, and copy the restore
code to it, then jump to the safe page to run the code.

Signed-off-by: Zhimin Gu <kookoo.gu@intel.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
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:34 +02:00
..
cpu.c Merge branch 'WIP.x86-pti.entry-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2017-12-18 08:59:15 -08:00
hibernate_32.c x86-32, hibernate: Switch to relocated restore code during resume on 32bit system 2018-10-03 11:56:34 +02:00
hibernate_64.c x86, hibernate: Rename temp_level4_pgt to temp_pgt 2018-10-03 11:56:34 +02:00
hibernate_asm_32.S x86-32, hibernate: Switch to relocated restore code during resume on 32bit system 2018-10-03 11:56:34 +02:00
hibernate_asm_64.S x86, hibernate: Rename temp_level4_pgt to temp_pgt 2018-10-03 11:56:34 +02:00
hibernate.c x86-32, hibernate: Switch to relocated restore code during resume on 32bit system 2018-10-03 11:56:34 +02:00
Makefile x86, hibernate: Extract the common code of 64/32 bit system 2018-10-03 11:56:33 +02:00