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>
12 #include <asm/regdef.h>
16 LEAF(swsusp_arch_suspend)
31 END(swsusp_arch_suspend)
33 LEAF(swsusp_arch_resume)
34 PTR_L t0, restore_pblist
36 PTR_L t1, PBE_ADDRESS(t0) /* source */
37 PTR_L t2, PBE_ORIG_ADDRESS(t0) /* destination */
38 PTR_ADDIU t3, t1, PAGE_SIZE
42 PTR_ADDIU t1, t1, SZREG
43 PTR_ADDIU t2, t2, SZREG
45 PTR_L t0, PBE_NEXT(t0)
62 END(swsusp_arch_resume)