summaryrefslogtreecommitdiffstats
path: root/firmware/target/coldfire/system-target.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/coldfire/system-target.h')
-rw-r--r--firmware/target/coldfire/system-target.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/firmware/target/coldfire/system-target.h b/firmware/target/coldfire/system-target.h
index 06d2c2d603..3fbd24cbe4 100644
--- a/firmware/target/coldfire/system-target.h
+++ b/firmware/target/coldfire/system-target.h
@@ -126,8 +126,7 @@ static inline uint32_t swap_odd_even32(uint32_t value)
result[31..24],[15.. 8] = value[23..16],[ 7.. 0]
result[23..16],[ 7.. 0] = value[31..24],[15.. 8]
*/
- unsigned long mask = 0x00FF00FF;
-
+ uint32_t mask = 0x00FF00FF;
asm ( /* val = ABCD */
"and.l %[val],%[mask] \n" /* mask = .B.D */
"eor.l %[mask],%[val] \n" /* val = A.C. */
@@ -138,7 +137,6 @@ static inline uint32_t swap_odd_even32(uint32_t value)
[val] "+d"(value),
[mask]"+d"(mask)
);
-
return value;
}