entry.S (c006d5d691481acebb34f49b4017dd536e906a2e) entry.S (a45728fd4120011c78af1d056e571b84d47dfcc1)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
4 *
5 * Derived from MIPS:
6 * Copyright (C) 1994 - 2000, 2001, 2003 Ralf Baechle
7 * Copyright (C) 1999, 2000 Silicon Graphics, Inc.
8 * Copyright (C) 2001 MIPS Technologies, Inc.

--- 59 unchanged lines hidden (view full) ---

68
69 move u0, t0
70 li.d tp, ~_THREAD_MASK
71 and tp, tp, sp
72
73 move a0, sp
74 bl do_syscall
75
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
4 *
5 * Derived from MIPS:
6 * Copyright (C) 1994 - 2000, 2001, 2003 Ralf Baechle
7 * Copyright (C) 1999, 2000 Silicon Graphics, Inc.
8 * Copyright (C) 2001 MIPS Technologies, Inc.

--- 59 unchanged lines hidden (view full) ---

68
69 move u0, t0
70 li.d tp, ~_THREAD_MASK
71 and tp, tp, sp
72
73 move a0, sp
74 bl do_syscall
75
76 STACKLEAK_ERASE
76 RESTORE_ALL_AND_RET
77SYM_CODE_END(handle_syscall)
78_ASM_NOKPROBE(handle_syscall)
79
80SYM_CODE_START(ret_from_fork_asm)
81 UNWIND_HINT_REGS
82 move a1, sp
83 bl ret_from_fork
77 RESTORE_ALL_AND_RET
78SYM_CODE_END(handle_syscall)
79_ASM_NOKPROBE(handle_syscall)
80
81SYM_CODE_START(ret_from_fork_asm)
82 UNWIND_HINT_REGS
83 move a1, sp
84 bl ret_from_fork
85 STACKLEAK_ERASE
84 RESTORE_STATIC
85 RESTORE_SOME
86 RESTORE_SP_AND_RET
87SYM_CODE_END(ret_from_fork_asm)
88
89SYM_CODE_START(ret_from_kernel_thread_asm)
90 UNWIND_HINT_REGS
91 move a1, sp
92 move a2, s0
93 move a3, s1
94 bl ret_from_kernel_thread
86 RESTORE_STATIC
87 RESTORE_SOME
88 RESTORE_SP_AND_RET
89SYM_CODE_END(ret_from_fork_asm)
90
91SYM_CODE_START(ret_from_kernel_thread_asm)
92 UNWIND_HINT_REGS
93 move a1, sp
94 move a2, s0
95 move a3, s1
96 bl ret_from_kernel_thread
97 STACKLEAK_ERASE
95 RESTORE_STATIC
96 RESTORE_SOME
97 RESTORE_SP_AND_RET
98SYM_CODE_END(ret_from_kernel_thread_asm)
98 RESTORE_STATIC
99 RESTORE_SOME
100 RESTORE_SP_AND_RET
101SYM_CODE_END(ret_from_kernel_thread_asm)