diff options
author | Mike Frysinger <michael.frysinger@analog.com> | 2007-07-24 22:11:42 -0400 |
---|---|---|
committer | Bryan Wu <bryan.wu@analog.com> | 2007-07-24 22:11:42 -0400 |
commit | e208f83a7aa4ebf6c0a68e814903e8aa33f9439a (patch) | |
tree | a45d34fa199c8e5d75878d8a2f15e944eadce852 /arch/blackfin/mach-common/cache.S | |
parent | 36a1548f99e54520f049a703e1b91bae95e72481 (diff) |
Blackfin arch: use HI/LO macros rather than masking the bit ranges ourselves
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Diffstat (limited to 'arch/blackfin/mach-common/cache.S')
-rw-r--r-- | arch/blackfin/mach-common/cache.S | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/blackfin/mach-common/cache.S b/arch/blackfin/mach-common/cache.S index 7063795eb7c0..0521b1588204 100644 --- a/arch/blackfin/mach-common/cache.S +++ b/arch/blackfin/mach-common/cache.S | |||
@@ -79,8 +79,8 @@ ENTRY(_icache_invalidate) | |||
79 | ENTRY(_invalidate_entire_icache) | 79 | ENTRY(_invalidate_entire_icache) |
80 | [--SP] = ( R7:5); | 80 | [--SP] = ( R7:5); |
81 | 81 | ||
82 | P0.L = (IMEM_CONTROL & 0xFFFF); | 82 | P0.L = LO(IMEM_CONTROL); |
83 | P0.H = (IMEM_CONTROL >> 16); | 83 | P0.H = HI(IMEM_CONTROL); |
84 | R7 = [P0]; | 84 | R7 = [P0]; |
85 | 85 | ||
86 | /* Clear the IMC bit , All valid bits in the instruction | 86 | /* Clear the IMC bit , All valid bits in the instruction |
@@ -197,8 +197,8 @@ ENTRY(_invalidate_entire_dcache) | |||
197 | ENTRY(_dcache_invalidate) | 197 | ENTRY(_dcache_invalidate) |
198 | [--SP] = ( R7:6); | 198 | [--SP] = ( R7:6); |
199 | 199 | ||
200 | P0.L = (DMEM_CONTROL & 0xFFFF); | 200 | P0.L = LO(DMEM_CONTROL); |
201 | P0.H = (DMEM_CONTROL >> 16); | 201 | P0.H = HI(DMEM_CONTROL); |
202 | R7 = [P0]; | 202 | R7 = [P0]; |
203 | 203 | ||
204 | /* Clear the DMC[1:0] bits, All valid bits in the data | 204 | /* Clear the DMC[1:0] bits, All valid bits in the data |