diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1997-04-07 21:21:55 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1997-04-07 21:21:55 +0000 |
commit | 424ab48994dae9f9665401e9c5aff00efda7ed92 (patch) | |
tree | 189c4367979e0fcb5fb4456a69c5ceeab0b5cef8 /c/src/exec/score | |
parent | added test to avoid spurious error (diff) | |
download | rtems-424ab48994dae9f9665401e9c5aff00efda7ed92.tar.bz2 |
added volatile to Switch_necessary structure member to avoid warning.
Diffstat (limited to 'c/src/exec/score')
-rw-r--r-- | c/src/exec/score/cpu/powerpc/cpu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/c/src/exec/score/cpu/powerpc/cpu.h b/c/src/exec/score/cpu/powerpc/cpu.h index bb7b1fea49..b64ad914d8 100644 --- a/c/src/exec/score/cpu/powerpc/cpu.h +++ b/c/src/exec/score/cpu/powerpc/cpu.h @@ -505,7 +505,7 @@ SCORE_EXTERN struct { unsigned32 Default_r13; #endif #endif - boolean *Switch_necessary; + volatile boolean *Switch_necessary; boolean *Signal; } _CPU_IRQ_info CPU_STRUCTURE_ALIGNMENT; @@ -653,7 +653,7 @@ SCORE_EXTERN struct { #define _CPU_ISR_Set_level( new_level ) \ { \ - register unsigned32 tmp; \ + register unsigned32 tmp = 0; \ asm volatile ( \ "mfmsr %0; andc %0,%0,%1; and %2, %2, %1; or %0, %0, %2; mtmsr %0" : \ "=r" ((tmp)) : \ |