summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-02-29 16:35:45 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-02-29 16:35:45 +0000
commit8eacefcc8b6411ea7c32199b09578590b6926e05 (patch)
tree75d1595ab925561a47726894eeda5f3f38864fd4 /cpukit/score/cpu
parent6f645ff33ad20374c1b719f250bc1cef91a39833 (diff)
downloadrtems-8eacefcc8b6411ea7c32199b09578590b6926e05.tar.bz2
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.
Diffstat (limited to 'cpukit/score/cpu')
-rw-r--r--cpukit/score/cpu/c4x/rtems/score/c4x.h6
1 files changed, 3 insertions, 3 deletions
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