entry.S (9b031c86506cef9acae45e61339fcf9deaabb793) | entry.S (e95a4f8cb985e759648b32ed0b721a472deb86a5) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2// Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. 3 4#include <linux/linkage.h> 5#include <abi/entry.h> 6#include <abi/pgtable-bits.h> 7#include <asm/errno.h> 8#include <asm/setup.h> --- 154 unchanged lines hidden (view full) --- 163 mov a0, sp 164 jbsr rseq_syscall 165#endif 166 jmpi ret_from_exception 167 168csky_syscall_trace: 169 mov a0, sp /* sp = pt_regs pointer */ 170 jbsr syscall_trace_enter | 1/* SPDX-License-Identifier: GPL-2.0 */ 2// Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. 3 4#include <linux/linkage.h> 5#include <abi/entry.h> 6#include <abi/pgtable-bits.h> 7#include <asm/errno.h> 8#include <asm/setup.h> --- 154 unchanged lines hidden (view full) --- 163 mov a0, sp 164 jbsr rseq_syscall 165#endif 166 jmpi ret_from_exception 167 168csky_syscall_trace: 169 mov a0, sp /* sp = pt_regs pointer */ 170 jbsr syscall_trace_enter |
171 cmpnei a0, 0 172 bt 1f |
|
171 /* Prepare args before do system call */ 172 ldw a0, (sp, LSAVE_A0) 173 ldw a1, (sp, LSAVE_A1) 174 ldw a2, (sp, LSAVE_A2) 175 ldw a3, (sp, LSAVE_A3) 176#if defined(__CSKYABIV2__) 177 subi sp, 8 178 ldw r9, (sp, LSAVE_A4) --- 4 unchanged lines hidden (view full) --- 183 addi sp, 8 184#else 185 ldw r6, (sp, LSAVE_A4) 186 ldw r7, (sp, LSAVE_A5) 187 jsr syscallid /* Do system call */ 188#endif 189 stw a0, (sp, LSAVE_A0) /* Save return value */ 190 | 173 /* Prepare args before do system call */ 174 ldw a0, (sp, LSAVE_A0) 175 ldw a1, (sp, LSAVE_A1) 176 ldw a2, (sp, LSAVE_A2) 177 ldw a3, (sp, LSAVE_A3) 178#if defined(__CSKYABIV2__) 179 subi sp, 8 180 ldw r9, (sp, LSAVE_A4) --- 4 unchanged lines hidden (view full) --- 185 addi sp, 8 186#else 187 ldw r6, (sp, LSAVE_A4) 188 ldw r7, (sp, LSAVE_A5) 189 jsr syscallid /* Do system call */ 190#endif 191 stw a0, (sp, LSAVE_A0) /* Save return value */ 192 |
1931: |
|
191#ifdef CONFIG_DEBUG_RSEQ 192 mov a0, sp 193 jbsr rseq_syscall 194#endif 195 mov a0, sp /* right now, sp --> pt_regs */ 196 jbsr syscall_trace_exit 197 br ret_from_exception 198 --- 152 unchanged lines hidden --- | 194#ifdef CONFIG_DEBUG_RSEQ 195 mov a0, sp 196 jbsr rseq_syscall 197#endif 198 mov a0, sp /* right now, sp --> pt_regs */ 199 jbsr syscall_trace_exit 200 br ret_from_exception 201 --- 152 unchanged lines hidden --- |