The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/mips/include/regdef.h

Version: -  FREEBSD  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-2  -  FREEBSD-11-1  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-4  -  FREEBSD-10-3  -  FREEBSD-10-2  -  FREEBSD-10-1  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-3  -  FREEBSD-9-2  -  FREEBSD-9-1  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-4  -  FREEBSD-8-3  -  FREEBSD-8-2  -  FREEBSD-8-1  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-4  -  FREEBSD-7-3  -  FREEBSD-7-2  -  FREEBSD-7-1  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-4  -  FREEBSD-6-3  -  FREEBSD-6-2  -  FREEBSD-6-1  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-5  -  FREEBSD-5-4  -  FREEBSD-5-3  -  FREEBSD-5-2  -  FREEBSD-5-1  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  xnu-1456.1.26  -  xnu-1699.24.8  -  xnu-2050.18.24  -  OPENSOLARIS  -  minix-3-1-1 
SearchContext: -  none  -  3  -  10 

    1 /*-
    2  * Copyright (c) 2001, Juniper Networks, Inc.
    3  * All rights reserved.
    4  * Truman Joe, February 2001.
    5  *
    6  * regdef.h -- MIPS register definitions.
    7  *
    8  *      JNPR: regdef.h,v 1.3 2006/08/07 05:38:57 katta
    9  * $FreeBSD: stable/8/sys/mips/include/regdef.h 215938 2010-11-27 12:26:40Z jchandra $
   10  */
   11 
   12 #ifndef _MACHINE_REGDEF_H_
   13 #define _MACHINE_REGDEF_H_
   14 
   15 #include <machine/cdefs.h>              /* For API selection */
   16 
   17 #if defined(__ASSEMBLER__)
   18 /* General purpose CPU register names */
   19 #define zero    $0      /* wired zero */
   20 #define AT      $at     /* assembler temp */
   21 #define v0      $2      /* return value */
   22 #define v1      $3
   23 #define a0      $4      /* argument registers */
   24 #define a1      $5
   25 #define a2      $6
   26 #define a3      $7
   27 #if defined(__mips_n32) || defined(__mips_n64)
   28 #define a4      $8
   29 #define a5      $9
   30 #define a6      $10
   31 #define a7      $11
   32 #define t0      $12     /* Temp regs, not saved accross subroutine calls */
   33 #define t1      $13
   34 #define t2      $14
   35 #define t3      $15
   36 #else
   37 #define t0      $8      /* caller saved */
   38 #define t1      $9
   39 #define t2      $10
   40 #define t3      $11
   41 #define t4      $12     /* caller saved - 32 bit env arg reg 64 bit */
   42 #define t5      $13
   43 #define t6      $14
   44 #define t7      $15
   45 #endif
   46 #define s0      $16     /* callee saved */
   47 #define s1      $17
   48 #define s2      $18
   49 #define s3      $19
   50 #define s4      $20
   51 #define s5      $21
   52 #define s6      $22
   53 #define s7      $23
   54 #define t8      $24     /* code generator */
   55 #define t9      $25
   56 #define k0      $26     /* kernel temporary */
   57 #define k1      $27
   58 #define gp      $28     /* global pointer */
   59 #define sp      $29     /* stack pointer */
   60 #define fp      $30     /* frame pointer */
   61 #define s8      $30     /* callee saved */
   62 #define ra      $31     /* return address */
   63 
   64 /*
   65  * These are temp registers whose names can be used in either the old
   66  * or new ABI, although they map to different physical registers.  In
   67  * the old ABI, they map to t4-t7, and in the new ABI, they map to a4-a7.
   68  *
   69  * Because they overlap with the last 4 arg regs in the new ABI, ta0-ta3
   70  * should be used only when we need more than t0-t3.
   71  */
   72 #if defined(__mips_n32) || defined(__mips_n64)
   73 #define ta0     $8
   74 #define ta1     $9
   75 #define ta2     $10
   76 #define ta3     $11
   77 #else
   78 #define ta0     $12
   79 #define ta1     $13
   80 #define ta2     $14
   81 #define ta3     $15
   82 #endif /* __mips_n32 || __mips_n64 */
   83 
   84 #endif /* __ASSEMBLER__ */
   85 
   86 #endif /* !_MACHINE_REGDEF_H_ */

Cache object: 7e8392b57c14fa1054a1e6ee7e3748d3


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.