2007-08-04 Ralf Corsépius <ralf.corsepius@rtems.org>

* score/cpu/mips/rtems/score/cpu.h: Use uintptr_t instead of
	  uint32_t.
This commit is contained in:
Ralf Corsepius
2007-08-04 06:06:26 +00:00
parent 31139c3371
commit 11f2bf591f
2 changed files with 8 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
2007-08-04 Ralf Corsépius <ralf.corsepius@rtems.org>
* score/cpu/mips/rtems/score/cpu.h: Use uintptr_t instead of
uint32_t.
2007-07-31 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1248/networking

View File

@@ -890,9 +890,9 @@ void _CPU_ISR_Set_level( uint32_t ); /* in cpu.c */
#define _CPU_Context_Initialize( _the_context, _stack_base, _size, _isr, _entry_point, _is_fp ) \
{ \
uint32_t _stack_tmp = \
(uint32_t )(_stack_base) + (_size) - CPU_STACK_ALIGNMENT; \
uint32_t _intlvl = _isr & 0xff; \
uintptr_t _stack_tmp = \
(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; \