From 8eacefcc8b6411ea7c32199b09578590b6926e05 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 29 Feb 2000 16:35:45 +0000 Subject: BSP now compiles and links with CAVSL board information. This includes linkcmds updated, simio references removed, and switch to libchip for serial ports from simio. Added a MEMORY_MAP file to capture information about the various addresses on this board. In addition, many of the beta patches are now included. --- cpukit/score/cpu/c4x/rtems/score/c4x.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpukit/score/cpu') diff --git a/cpukit/score/cpu/c4x/rtems/score/c4x.h b/cpukit/score/cpu/c4x/rtems/score/c4x.h index fe1d2cd139..d3ef758693 100644 --- a/cpukit/score/cpu/c4x/rtems/score/c4x.h +++ b/cpukit/score/cpu/c4x/rtems/score/c4x.h @@ -329,7 +329,7 @@ static inline void * c4x_get_ittp(void) register unsigned int _if_value; __asm__( "ldi if, %0" : "=r" (_if_value) ); - return (void *)((_if_value & 0xffff) >> 8); + return (void *)((_if_value & 0xffff0000) >> 8); } static inline void c4x_set_ittp(void *_ittp_value) @@ -343,8 +343,8 @@ static inline void c4x_set_ittp(void *_ittp_value) _if_value = c3x_get_if(); #endif _if_value &= 0xffff; - _ittp_field = (((unsigned int) _ittp_value) << 8); - _if_value |= _ittp_field; + _ittp_field = (((unsigned int) _ittp_value) >> 8); + _if_value |= _ittp_field << 16 ; #ifdef _TMS320C40 c4x_set_iif( _if_value ); #else -- cgit v1.2.3