2 * Hibernation support specific for mips - temporary page tables
4 * Licensed under the GPLv2
6 * Copyright (C) 2009 Lemote Inc. & Insititute of Computing Technology
7 * Author: Hu Hongbing <huhb@lemote.com>
8 * Wu Zhangjin <wuzj@lemote.com>
10 #include <asm/asm-offsets.h>
11 #include <asm/regdef.h>
15 LEAF(swsusp_arch_suspend)
30 END(swsusp_arch_suspend)
32 LEAF(swsusp_arch_resume)
33 PTR_L t0, restore_pblist
35 PTR_L t1, PBE_ADDRESS(t0) /* source */
36 PTR_L t2, PBE_ORIG_ADDRESS(t0) /* destination */
37 PTR_ADDIU t3, t1, _PAGE_SIZE
41 PTR_ADDIU t1, t1, SZREG
42 PTR_ADDIU t2, t2, SZREG
44 PTR_L t0, PBE_NEXT(t0)
61 END(swsusp_arch_resume)