Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 110359
b: refs/heads/master
c: c171f46
h: refs/heads/master
i:
  110357: d1863e3
  110355: d6e3d19
  110351: ba14c22
v: v3
  • Loading branch information
Uros Bizjak authored and Ingo Molnar committed Aug 20, 2008
1 parent 9165e86 commit 43ff18f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7393423dd9b5790a3115873be355e9fc862bce8f
refs/heads/master: c171f465b7281f2d3b03e9145ec763d6a8bab176
14 changes: 7 additions & 7 deletions trunk/arch/x86/power/hibernate_asm_32.S
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.text

/*
* This may not use any stack, nor any variable that is not "NoSave":
*
Expand All @@ -12,17 +10,18 @@
#include <asm/segment.h>
#include <asm/page.h>
#include <asm/asm-offsets.h>
#include <asm/processor-flags.h>

.text
.text

ENTRY(swsusp_arch_suspend)

movl %esp, saved_context_esp
movl %ebx, saved_context_ebx
movl %ebp, saved_context_ebp
movl %esi, saved_context_esi
movl %edi, saved_context_edi
pushfl ; popl saved_context_eflags
pushfl
popl saved_context_eflags

call swsusp_save
ret
Expand Down Expand Up @@ -59,7 +58,7 @@ done:
movl mmu_cr4_features, %ecx
jecxz 1f # cr4 Pentium and higher, skip if zero
movl %ecx, %edx
andl $~(1<<7), %edx; # PGE
andl $~(X86_CR4_PGE), %edx
movl %edx, %cr4; # turn off PGE
1:
movl %cr3, %eax; # flush TLB
Expand All @@ -74,7 +73,8 @@ done:
movl saved_context_esi, %esi
movl saved_context_edi, %edi

pushl saved_context_eflags ; popfl
pushl saved_context_eflags
popfl

xorl %eax, %eax

Expand Down

0 comments on commit 43ff18f

Please sign in to comment.