From 5d7bfce333f0ef42400e9970adb3b144eb73bbc0 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 6 Dec 2000 15:32:40 +0000 Subject: 2000-12-06 Joel Sherrill * rtems/score/cpu.h: When mips ISA level is 1, registers in the context should be 32 not 64 bits. --- cpukit/score/cpu/mips/rtems/score/cpu.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'cpukit/score/cpu/mips/rtems/score/cpu.h') 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. */ -- cgit v1.2.3