use address object to avoid direct pointer arithmetic

This commit is contained in:
Joel Sherrill
1996-09-18 20:47:39 +00:00
parent d1193c7e82
commit 2069773571
6 changed files with 6 additions and 6 deletions

View File

@@ -419,7 +419,7 @@ unsigned32 _CPU_ISR_Get_level( void );
} while (0)
#define _CPU_Context_Fp_start( _base, _offset ) \
( (void *) (_base) + (_offset) )
( (void *) _Addresses_Add_offset( (_base), (_offset) ) )
#define _CPU_Context_Initialize_fp( _destination ) \
do { \

View File

@@ -656,7 +656,7 @@ unsigned32 _CPU_ISR_Get_level( void );
*/
#define _CPU_Context_Fp_start( _base, _offset ) \
( (char *) (_base) + (_offset) )
( (void *) _Addresses_Add_offset( (_base), (_offset) ) )
/*
* This routine initializes the FP context area passed to it to.

View File

@@ -572,7 +572,7 @@ SCORE_EXTERN void (*_CPU_Thread_dispatch_pointer)();
*/
#define _CPU_Context_Fp_start( _base, _offset ) \
( (void *) (_base) + (_offset) )
( (void *) _Addresses_Add_offset( (_base), (_offset) ) )
/*
* This routine initializes the FP context area passed to it to.

View File

@@ -767,7 +767,7 @@ unsigned32 _CPU_ISR_Get_level( void );
*/
#define _CPU_Context_Fp_start( _base, _offset ) \
( (void *) (_base) + (_offset) )
( (void *) _Addresses_Add_offset( (_base), (_offset) ) )
/*
* This routine initializes the FP context area passed to it to.

View File

@@ -789,7 +789,7 @@ void _CPU_Context_Initialize(
*/
#define _CPU_Context_Fp_start( _base, _offset ) \
( (void *) (_base) + (_offset) )
( (void *) _Addresses_Add_offset( (_base), (_offset) ) )
/*
* This routine initializes the FP context area passed to it to.

View File

@@ -706,7 +706,7 @@ unsigned32 _CPU_ISR_Get_level( void );
*/
#define _CPU_Context_Fp_start( _base, _offset ) \
( (void *) (_base) + (_offset) )
( (void *) _Addresses_Add_offset( (_base), (_offset) ) )
/*
* This routine initializes the FP context area passed to it to.