diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-10-24 21:48:33 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-10-24 21:48:33 +0000 |
commit | fda47cd1b90921c52ec995ec946560c51307c553 (patch) | |
tree | 2fbe1e7496e494b835a9e0a00cccdc81550f18d9 /cpukit/score/cpu/mips/rtems/mips/iregdef.h | |
parent | 2000-10-23 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-fda47cd1b90921c52ec995ec946560c51307c553.tar.bz2 |
2000-10-24 Alan Cudmore <alanc@linuxstart.com> and
Joel Sherrill <joel@OARcorp.com>
* This is a major reworking of the mips64orion port to use
gcc predefines as much as possible and a big push to multilib
the mips port. The mips64orion port was copied/renamed to mips
to be more like other GNU tools. Alan did most of the technical
work of determining how to map old macro names used by the mips64orion
port to standard compiler macro definitions. Joel did the merge
with CVS magic to keep individual file history and did the BSP
modifications. Details follow:
* Makefile.am: idtmon.h in mips64orion port not present.
* asm.h: MIPS64ORION replaced with MIPS. Frame setup macros added.
* cpu.c: Comments added.
* cpu_asm.S: Conditionals changed. MIPS ISA level 1 support added.
First attempt at exception/interrupt processing for ISA level 1
and minus any use of IDT/MON added.
* idtcpu.h: Conditionals changed to use gcc predefines.
* iregdef.h: Ditto.
* cpu_asm.h: No real change. Merger required commit.
* rtems/Makefile.am: Ditto.
* rtems/score/Makefile.am: Ditto.
* rtems/score/cpu.h: Change MIPS64ORION to MIPS.
* rtems/score/mips64orion.h: Change MIPS64ORION to MIPS. Convert
from using RTEMS_CPU_MODEL to gcc predefines to figre things out.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/cpu/mips/rtems/mips/iregdef.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cpukit/score/cpu/mips/rtems/mips/iregdef.h b/cpukit/score/cpu/mips/rtems/mips/iregdef.h index f0953da852..ca50207a3b 100644 --- a/cpukit/score/cpu/mips/rtems/mips/iregdef.h +++ b/cpukit/score/cpu/mips/rtems/mips/iregdef.h @@ -221,10 +221,10 @@ LICENSED MATERIAL - PROGRAM PROPERTY OF IDT #define R_SR 67 #define R_CAUSE 68 #define R_TLBHI 69 -#if defined(CPU_R3000) +#if __mips == 1 #define R_TLBLO 70 #endif -#if defined(CPU_R4000) +#if __mips == 3 #define R_TLBLO0 70 #endif #define R_BADVADDR 71 @@ -236,10 +236,10 @@ LICENSED MATERIAL - PROGRAM PROPERTY OF IDT #define R_PRID 77 #define R_FCSR 78 #define R_FEIR 79 -#if defined(CPU_R3000) +#if __mips == 1 #define NREGS 80 #endif -#if defined(CPU_R4000) +#if __mips == 3 #define R_TLBLO1 80 #define R_PAGEMASK 81 #define R_WIRED 82 @@ -296,15 +296,15 @@ LICENSED MATERIAL - PROGRAM PROPERTY OF IDT #define R_RA R_R31 /* Ketan added the following */ -#ifdef CPU_R3000 +#ifdef __mips == 1 #define sreg sw #define lreg lw #define rmfc0 mfc0 #define rmtc0 mtc0 #define R_SZ 4 -#endif CPU_R3000 +#endif /* __mips == 1 */ -#ifdef CPU_R4000 +/* #ifdef __mips == 3 */ #if __mips < 3 #define sreg sw #define lreg lw @@ -318,7 +318,7 @@ LICENSED MATERIAL - PROGRAM PROPERTY OF IDT #define rmtc0 dmtc0 #define R_SZ 8 #endif -#endif CPU_R4000 +/* #endif __mips == 3 */ /* Ketan till here */ #endif /* __IREGDEF_H__ */ |