Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * Hibernation support specific for mips - temporary page tables
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * Copyright (C) 2009 Lemote Inc.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  * Author: Hu Hongbing <huhb@lemote.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  *	   Wu Zhangjin <wuzhangjin@gmail.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #include <asm/asm-offsets.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #include <asm/regdef.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #include <asm/asm.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) .text
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) LEAF(swsusp_arch_suspend)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 	PTR_LA t0, saved_regs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 	PTR_S ra, PT_R31(t0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 	PTR_S sp, PT_R29(t0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 	PTR_S fp, PT_R30(t0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 	PTR_S gp, PT_R28(t0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	PTR_S s0, PT_R16(t0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 	PTR_S s1, PT_R17(t0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 	PTR_S s2, PT_R18(t0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 	PTR_S s3, PT_R19(t0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 	PTR_S s4, PT_R20(t0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 	PTR_S s5, PT_R21(t0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 	PTR_S s6, PT_R22(t0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 	PTR_S s7, PT_R23(t0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 	j swsusp_save
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) END(swsusp_arch_suspend)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) LEAF(restore_image)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 	PTR_L t0, restore_pblist
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 0:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 	PTR_L t1, PBE_ADDRESS(t0)   /* source */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 	PTR_L t2, PBE_ORIG_ADDRESS(t0) /* destination */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 	PTR_ADDU t3, t1, _PAGE_SIZE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 1:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 	REG_L t8, (t1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) 	REG_S t8, (t2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 	PTR_ADDIU t1, t1, SZREG
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) 	PTR_ADDIU t2, t2, SZREG
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) 	bne t1, t3, 1b
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) 	PTR_L t0, PBE_NEXT(t0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) 	bnez t0, 0b
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) 	PTR_LA t0, saved_regs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) 	PTR_L ra, PT_R31(t0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) 	PTR_L sp, PT_R29(t0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) 	PTR_L fp, PT_R30(t0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) 	PTR_L gp, PT_R28(t0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) 	PTR_L s0, PT_R16(t0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) 	PTR_L s1, PT_R17(t0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) 	PTR_L s2, PT_R18(t0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) 	PTR_L s3, PT_R19(t0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) 	PTR_L s4, PT_R20(t0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) 	PTR_L s5, PT_R21(t0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) 	PTR_L s6, PT_R22(t0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) 	PTR_L s7, PT_R23(t0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) 	PTR_LI v0, 0x0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) 	jr ra
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) END(restore_image)