Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
e148d0f8
Commit
e148d0f8
authored
Jul 29, 2016
by
Rafael J. Wysocki
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'pm-sleep'
* pm-sleep: x86/power/64: Fix hibernation return address corruption
parents
6453dbdd
4ce827b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
arch/x86/power/hibernate_asm_64.S
arch/x86/power/hibernate_asm_64.S
+1
-3
No files found.
arch/x86/power/hibernate_asm_64.S
View file @
e148d0f8
...
@@ -24,7 +24,6 @@
...
@@ -24,7 +24,6 @@
#include <asm/frame.h>
#include <asm/frame.h>
ENTRY
(
swsusp_arch_suspend
)
ENTRY
(
swsusp_arch_suspend
)
FRAME_BEGIN
movq
$saved_context
,
%
rax
movq
$saved_context
,
%
rax
movq
%
rsp
,
pt_regs_sp
(%
rax
)
movq
%
rsp
,
pt_regs_sp
(%
rax
)
movq
%
rbp
,
pt_regs_bp
(%
rax
)
movq
%
rbp
,
pt_regs_bp
(%
rax
)
...
@@ -48,6 +47,7 @@ ENTRY(swsusp_arch_suspend)
...
@@ -48,6 +47,7 @@ ENTRY(swsusp_arch_suspend)
movq
%
cr3
,
%
rax
movq
%
cr3
,
%
rax
movq
%
rax
,
restore_cr3
(%
rip
)
movq
%
rax
,
restore_cr3
(%
rip
)
FRAME_BEGIN
call
swsusp_save
call
swsusp_save
FRAME_END
FRAME_END
ret
ret
...
@@ -104,7 +104,6 @@ ENTRY(core_restore_code)
...
@@ -104,7 +104,6 @@ ENTRY(core_restore_code)
/
*
code
below
belongs
to
the
image
kernel
*/
/
*
code
below
belongs
to
the
image
kernel
*/
.
align
PAGE_SIZE
.
align
PAGE_SIZE
ENTRY
(
restore_registers
)
ENTRY
(
restore_registers
)
FRAME_BEGIN
/
*
go
back
to
the
original
page
tables
*/
/
*
go
back
to
the
original
page
tables
*/
movq
%
r9
,
%
cr3
movq
%
r9
,
%
cr3
...
@@ -145,6 +144,5 @@ ENTRY(restore_registers)
...
@@ -145,6 +144,5 @@ ENTRY(restore_registers)
/
*
tell
the
hibernation
core
that
we
've just restored the memory */
/
*
tell
the
hibernation
core
that
we
've just restored the memory */
movq
%
rax
,
in_suspend
(%
rip
)
movq
%
rax
,
in_suspend
(%
rip
)
FRAME_END
ret
ret
ENDPROC
(
restore_registers
)
ENDPROC
(
restore_registers
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment