diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-05-30 19:29:01 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-05-30 19:29:01 +0000 |
commit | 53fd6e29798cb5a4133ac28e82b02a37aa3d0693 (patch) | |
tree | 5617b3e88267788ce1e2f5c5e043fff23f546b90 /c/src/exec/score/cpu/m68k/cpu.h | |
parent | tests now specify whether they are using rtems initialization tasks (diff) | |
download | rtems-53fd6e29798cb5a4133ac28e82b02a37aa3d0693.tar.bz2 |
Eric Norum sent in new versions of the inline assembly macros which
do not generate warnings for unitialized variables.
Diffstat (limited to 'c/src/exec/score/cpu/m68k/cpu.h')
-rw-r--r-- | c/src/exec/score/cpu/m68k/cpu.h | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/c/src/exec/score/cpu/m68k/cpu.h b/c/src/exec/score/cpu/m68k/cpu.h index bc6943703f..6f2a1f9cb1 100644 --- a/c/src/exec/score/cpu/m68k/cpu.h +++ b/c/src/exec/score/cpu/m68k/cpu.h @@ -28,8 +28,6 @@ extern "C" { * in some time critical routines. */ -#define NO_UNINITIALIZED_WARNINGS - #include <rtems/score/m68k.h> #ifndef ASM #include <rtems/score/m68ktypes.h> @@ -310,27 +308,9 @@ unsigned32 _CPU_ISR_Get_level( void ); #define CPU_USE_GENERIC_BITFIELD_DATA FALSE #if ( M68K_HAS_BFFFO == 1 ) -#ifdef NO_UNINITIALIZED_WARNINGS #define _CPU_Bitfield_Find_first_bit( _value, _output ) \ - { \ - register void *__base = (void *)&(_value); \ - \ - (_output) = 0; /* avoids warnings */ \ - asm volatile( "bfffo (%0),#0,#16,%1" \ - : "=a" (__base), "=d" ((_output)) \ - : "0" (__base), "1" ((_output)) ) ; \ - } -#else -#define _CPU_Bitfield_Find_first_bit( _value, _output ) \ - { \ - register void *__base = (void *)&(_value); \ - \ - asm volatile( "bfffo (%0),#0,#16,%1" \ - : "=a" (__base), "=d" ((_output)) \ - : "0" (__base), "1" ((_output)) ) ; \ - } -#endif + asm volatile( "bfffo (%1),#0,#16,%0" : "=d" (_output), "=a" (&_value)); #else |