提交 daacf8bc 编写于 作者: S Shaohua Li 提交者: Linus Torvalds

[PATCH] move do_suspend_lowlevel to correct segment

Move do_suspend_lowlevel to correct segment.  If it is in the same hugepage
with ro data, mark_rodata_ro will make it unexecutable.
Signed-off-by: NShaohua Li <shaohua.li@intel.com>
Cc: Len Brown <len.brown@intel.com>
Cc: Pavel Machek <pavel@ucw.cz>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 e084dbd3
...@@ -265,11 +265,6 @@ ENTRY(acpi_copy_wakeup_routine) ...@@ -265,11 +265,6 @@ ENTRY(acpi_copy_wakeup_routine)
movl $0x12345678, saved_magic movl $0x12345678, saved_magic
ret ret
.data
ALIGN
ENTRY(saved_magic) .long 0
ENTRY(saved_eip) .long 0
save_registers: save_registers:
leal 4(%esp), %eax leal 4(%esp), %eax
movl %eax, saved_context_esp movl %eax, saved_context_esp
...@@ -304,7 +299,11 @@ ret_point: ...@@ -304,7 +299,11 @@ ret_point:
call restore_processor_state call restore_processor_state
ret ret
.data
ALIGN ALIGN
ENTRY(saved_magic) .long 0
ENTRY(saved_eip) .long 0
# saved registers # saved registers
saved_gdt: .long 0,0 saved_gdt: .long 0,0
saved_idt: .long 0,0 saved_idt: .long 0,0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册