Changeset View
Changeset View
Standalone View
Standalone View
sys/mips/include/regnum.h
Show All 38 Lines | |||||
* @(#)reg.h 8.2 (Berkeley) 1/11/94 | * @(#)reg.h 8.2 (Berkeley) 1/11/94 | ||||
* JNPR: regnum.h,v 1.6 2007/08/09 11:23:32 katta | * JNPR: regnum.h,v 1.6 2007/08/09 11:23:32 katta | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef _MACHINE_REGNUM_H_ | #ifndef _MACHINE_REGNUM_H_ | ||||
#define _MACHINE_REGNUM_H_ | #define _MACHINE_REGNUM_H_ | ||||
#define NUMSAVEREGS 40 | |||||
#define NUMFPREGS 34 | |||||
/* | /* | ||||
* Location of the saved registers relative to ZERO. | * Location of the saved registers relative to ZERO. | ||||
* This must match struct trapframe defined in frame.h exactly. | * This must match struct trapframe defined in frame.h exactly. | ||||
* This must also match regdef.h. | * This must also match regdef.h. | ||||
*/ | */ | ||||
#if defined(_KERNEL) || defined(_WANT_MIPS_REGNUM) | |||||
#define ZERO 0 | #define ZERO 0 | ||||
#define AST 1 | #define AST 1 | ||||
#define V0 2 | #define V0 2 | ||||
#define V1 3 | #define V1 3 | ||||
#define A0 4 | #define A0 4 | ||||
#define A1 5 | #define A1 5 | ||||
#define A2 6 | #define A2 6 | ||||
#define A3 7 | #define A3 7 | ||||
Show All 40 Lines | |||||
#define CAUSE 36 | #define CAUSE 36 | ||||
#define PC 37 | #define PC 37 | ||||
/* | /* | ||||
* IC is valid only on RM7K and RM9K processors. Access to this is | * IC is valid only on RM7K and RM9K processors. Access to this is | ||||
* controlled by IC_INT_REG which defined in kernel config | * controlled by IC_INT_REG which defined in kernel config | ||||
*/ | */ | ||||
#define IC 38 | #define IC 38 | ||||
#define DUMMY 39 /* for 8 byte alignment */ | #define DUMMY 39 /* for 8 byte alignment */ | ||||
#define NUMSAVEREGS 40 | |||||
/* | /* | ||||
* Pseudo registers so we save a complete set of registers regardless of | * Pseudo registers so we save a complete set of registers regardless of | ||||
* the ABI. See regdef.h for a more complete explanation. | * the ABI. See regdef.h for a more complete explanation. | ||||
*/ | */ | ||||
#if defined(__mips_n32) || defined(__mips_n64) | #if defined(__mips_n32) || defined(__mips_n64) | ||||
#define TA0 8 | #define TA0 8 | ||||
#define TA1 9 | #define TA1 9 | ||||
▲ Show 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | |||||
#define F26 (FPBASE+26) | #define F26 (FPBASE+26) | ||||
#define F27 (FPBASE+27) | #define F27 (FPBASE+27) | ||||
#define F28 (FPBASE+28) | #define F28 (FPBASE+28) | ||||
#define F29 (FPBASE+29) | #define F29 (FPBASE+29) | ||||
#define F30 (FPBASE+30) | #define F30 (FPBASE+30) | ||||
#define F31 (FPBASE+31) | #define F31 (FPBASE+31) | ||||
#define FSR (FPBASE+32) | #define FSR (FPBASE+32) | ||||
#define FIR (FPBASE+33) | #define FIR (FPBASE+33) | ||||
#define NUMFPREGS 34 | |||||
#define NREGS (NUMSAVEREGS + NUMFPREGS) | |||||
/* | /* | ||||
jhb: I think you can kill this entirely (can't find it used in the kernel or libc) | |||||
* Index of FP registers in 'struct frame', relative to the base | * Index of FP registers in 'struct frame', relative to the base | ||||
* of the FP registers in frame (i.e., *not* including the general | * of the FP registers in frame (i.e., *not* including the general | ||||
* registers). | * registers). | ||||
*/ | */ | ||||
#define F0_NUM (0) | #define F0_NUM (0) | ||||
#define F1_NUM (1) | #define F1_NUM (1) | ||||
#define F2_NUM (2) | #define F2_NUM (2) | ||||
#define F3_NUM (3) | #define F3_NUM (3) | ||||
Show All 22 Lines | |||||
#define F26_NUM (26) | #define F26_NUM (26) | ||||
#define F27_NUM (27) | #define F27_NUM (27) | ||||
#define F28_NUM (28) | #define F28_NUM (28) | ||||
#define F29_NUM (29) | #define F29_NUM (29) | ||||
#define F30_NUM (30) | #define F30_NUM (30) | ||||
#define F31_NUM (31) | #define F31_NUM (31) | ||||
#define FSR_NUM (32) | #define FSR_NUM (32) | ||||
#define FIR_NUM (33) | #define FIR_NUM (33) | ||||
#endif /* _KERNEL || _WANT_MIPS_REGNUM */ | |||||
#endif /* !_MACHINE_REGNUM_H_ */ | #endif /* !_MACHINE_REGNUM_H_ */ |
I think you can kill this entirely (can't find it used in the kernel or libc)