Skip to content

Commit

Permalink
powerpc: Fix 64-bit hibernation with 64k pages
Browse files Browse the repository at this point in the history
A bug in my initial 64-bit hibernation code breaks it when using
page sizes that aren't 4K.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Johannes Berg authored and Benjamin Herrenschmidt committed Oct 7, 2008
1 parent 0bb0810 commit 2e2b404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/kernel/swsusp_asm64.S
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ END_FTR_SECTION_IFSET(CPU_FTR_ALTIVEC)

cmpdi r12,0
beq- nothing_to_copy
li r15,512
li r15,PAGE_SIZE>>3
copyloop:
ld r13,pbe_address(r12)
ld r14,pbe_orig_address(r12)
Expand Down

0 comments on commit 2e2b404

Please sign in to comment.