cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

regdef.h (871B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2/*
      3 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
      4 */
      5#ifndef _ASM_REGDEF_H
      6#define _ASM_REGDEF_H
      7
      8#define zero	$r0	/* wired zero */
      9#define ra	$r1	/* return address */
     10#define tp	$r2
     11#define sp	$r3	/* stack pointer */
     12#define a0	$r4	/* argument registers, a0/a1 reused as v0/v1 for return value */
     13#define a1	$r5
     14#define a2	$r6
     15#define a3	$r7
     16#define a4	$r8
     17#define a5	$r9
     18#define a6	$r10
     19#define a7	$r11
     20#define t0	$r12	/* caller saved */
     21#define t1	$r13
     22#define t2	$r14
     23#define t3	$r15
     24#define t4	$r16
     25#define t5	$r17
     26#define t6	$r18
     27#define t7	$r19
     28#define t8	$r20
     29#define u0	$r21
     30#define fp	$r22	/* frame pointer */
     31#define s0	$r23	/* callee saved */
     32#define s1	$r24
     33#define s2	$r25
     34#define s3	$r26
     35#define s4	$r27
     36#define s5	$r28
     37#define s6	$r29
     38#define s7	$r30
     39#define s8	$r31
     40
     41#endif /* _ASM_REGDEF_H */