diff options
Diffstat (limited to 'cpukit/score/cpu/mips/rtems/score/cpu.h')
-rw-r--r-- | cpukit/score/cpu/mips/rtems/score/cpu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/cpu/mips/rtems/score/cpu.h b/cpukit/score/cpu/mips/rtems/score/cpu.h index 4ff4a1fe24..b4bdf7424d 100644 --- a/cpukit/score/cpu/mips/rtems/score/cpu.h +++ b/cpukit/score/cpu/mips/rtems/score/cpu.h @@ -857,8 +857,8 @@ void _CPU_ISR_Set_level( uint32_t ); /* in cpu.c */ (uintptr_t)(_stack_base) + (_size) - CPU_STACK_ALIGNMENT; \ uintptr_t _intlvl = _isr & 0xff; \ _stack_tmp &= ~(CPU_STACK_ALIGNMENT - 1); \ - (_the_context)->sp = _stack_tmp; \ - (_the_context)->fp = _stack_tmp; \ + (_the_context)->sp = (__MIPS_REGISTER_TYPE) _stack_tmp; \ + (_the_context)->fp = (__MIPS_REGISTER_TYPE) _stack_tmp; \ (_the_context)->ra = (__MIPS_REGISTER_TYPE)_entry_point; \ (_the_context)->c0_sr = ((_intlvl==0)?(mips_interrupt_mask() | 0x300 | _INTON): \ ( ((_intlvl<<9) & mips_interrupt_mask()) | 0x300 | ((_intlvl & 1)?_INTON:0)) ) | \ |