1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
8 #define zero $r0 /* wired zero */
9 #define ra $r1 /* return address */
11 #define sp $r3 /* stack pointer */
12 #define a0 $r4 /* argument registers, a0/a1 reused as v0/v1 for return value */
20 #define t0 $r12 /* caller saved */
30 #define fp $r22 /* frame pointer */
31 #define s0 $r23 /* callee saved */
41 #endif /* _ASM_REGDEF_H */