1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Hibernation support specific for mips - temporary page tables
5 * Copyright (C) 2009 Lemote Inc.
6 * Author: Hu Hongbing <huhb@lemote.com>
7 * Wu Zhangjin <wuzhangjin@gmail.com>
9 #include <asm/asm-offsets.h>
10 #include <asm/regdef.h>
14 LEAF(swsusp_arch_suspend)
29 END(swsusp_arch_suspend)
32 PTR_L t0, restore_pblist
34 PTR_L t1, PBE_ADDRESS(t0) /* source */
35 PTR_L t2, PBE_ORIG_ADDRESS(t0) /* destination */
36 PTR_ADDU t3, t1, _PAGE_SIZE
40 PTR_ADDIU t1, t1, SZREG
41 PTR_ADDIU t2, t2, SZREG
43 PTR_L t0, PBE_NEXT(t0)