2010-07-14 17:51:49 +08:00
|
|
|
/*
|
|
|
|
* File : mips.inc
|
|
|
|
* This file is part of RT-Thread RTOS
|
|
|
|
* COPYRIGHT (C) 2010, RT-Thread Development Team
|
|
|
|
*
|
|
|
|
* The license and distribution terms for this file may be
|
|
|
|
* found in the file LICENSE in this distribution or at
|
|
|
|
* http://www.rt-thread.org/license/LICENSE
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2010-05-17 sangwei first version
|
|
|
|
*/
|
|
|
|
#ifndef __MIPS_INC__
|
|
|
|
#define __MIPS_INC__
|
|
|
|
|
2010-10-16 07:40:44 +08:00
|
|
|
#define zero $0 /* wired zero */
|
|
|
|
// #define at $1
|
|
|
|
#define v0 $2 /* return value */
|
2010-07-14 17:51:49 +08:00
|
|
|
#define v1 $3
|
2010-10-16 07:40:44 +08:00
|
|
|
#define a0 $4 /* argument registers */
|
2010-07-14 17:51:49 +08:00
|
|
|
#define a1 $5
|
|
|
|
#define a2 $6
|
|
|
|
#define a3 $7
|
2010-10-16 07:40:44 +08:00
|
|
|
#define t0 $8 /* caller saved */
|
2010-07-14 17:51:49 +08:00
|
|
|
#define t1 $9
|
|
|
|
#define t2 $10
|
|
|
|
#define t3 $11
|
|
|
|
#define t4 $12
|
|
|
|
#define t5 $13
|
|
|
|
#define t6 $14
|
|
|
|
#define t7 $15
|
2010-10-16 07:40:44 +08:00
|
|
|
#define s0 $16 /* callee saved */
|
2010-07-14 17:51:49 +08:00
|
|
|
#define s1 $17
|
|
|
|
#define s2 $18
|
|
|
|
#define s3 $19
|
|
|
|
#define s4 $20
|
|
|
|
#define s5 $21
|
|
|
|
#define s6 $22
|
|
|
|
#define s7 $23
|
2010-10-16 07:40:44 +08:00
|
|
|
#define t8 $24 /* caller saved */
|
2010-07-14 17:51:49 +08:00
|
|
|
#define t9 $25
|
2010-10-16 07:40:44 +08:00
|
|
|
#define jp $25 /* PIC jump register */
|
|
|
|
#define k0 $26 /* kernel scratch */
|
2010-07-14 17:51:49 +08:00
|
|
|
#define k1 $27
|
2010-10-16 07:40:44 +08:00
|
|
|
#define gp $28 /* global pointer */
|
|
|
|
#define sp $29 /* stack pointer */
|
|
|
|
#define fp $30 /* frame pointer */
|
|
|
|
#define s8 $30 /* same like fp! */
|
|
|
|
#define ra $31 /* return address */
|
2010-07-14 17:51:49 +08:00
|
|
|
|
|
|
|
#endif /* end of __MIPS_INC__ */
|