diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-12-06 15:32:40 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-12-06 15:32:40 +0000 |
commit | 5d7bfce333f0ef42400e9970adb3b144eb73bbc0 (patch) | |
tree | c6352e42ab757ecf524c1c366e7d05982623ae1d /cpukit/score/cpu/mips/rtems/score/cpu.h | |
parent | 2000-12-06 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-5d7bfce333f0ef42400e9970adb3b144eb73bbc0.tar.bz2 |
2000-12-06 Joel Sherrill <joel@OARcorp.com>
* rtems/score/cpu.h: When mips ISA level is 1, registers in the
context should be 32 not 64 bits.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/cpu/mips/rtems/score/cpu.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cpukit/score/cpu/mips/rtems/score/cpu.h b/cpukit/score/cpu/mips/rtems/score/cpu.h index 7527ddecdf..a12c4369c4 100644 --- a/cpukit/score/cpu/mips/rtems/score/cpu.h +++ b/cpukit/score/cpu/mips/rtems/score/cpu.h @@ -360,6 +360,21 @@ extern void mips_fatal_error ( int error ); /* WARNING: If this structure is modified, the constants in cpu.h must be updated. */ typedef struct { +#if __mips == 1 + unsigned32 s0; + unsigned32 s1; + unsigned32 s2; + unsigned32 s3; + unsigned32 s4; + unsigned32 s5; + unsigned32 s6; + unsigned32 s7; + unsigned32 sp; + unsigned32 fp; + unsigned32 ra; + unsigned32 c0_sr; + unsigned32 c0_epc; +#else unsigned64 s0; unsigned64 s1; unsigned64 s2; @@ -373,6 +388,7 @@ typedef struct { unsigned64 ra; unsigned64 c0_sr; unsigned64 c0_epc; +#endif } Context_Control; /* WARNING: If this structure is modified, the constants in cpu.h must be updated. */ |