Commit 7b1f94b8 authored by Linus Torvalds's avatar Linus Torvalds

Merge branch 'for-linus' of git://git.monstr.eu/linux-2.6-microblaze

* 'for-linus' of git://git.monstr.eu/linux-2.6-microblaze:
  microblaze: Fix out_le32() macro
  microblaze: Fix cache loop function for cache range
parents 83d90add 83b4d17d
...@@ -217,7 +217,7 @@ static inline void __iomem *__ioremap(phys_addr_t address, unsigned long size, ...@@ -217,7 +217,7 @@ static inline void __iomem *__ioremap(phys_addr_t address, unsigned long size,
* Little endian * Little endian
*/ */
#define out_le32(a, v) __raw_writel(__cpu_to_le32(v), (a)); #define out_le32(a, v) __raw_writel(__cpu_to_le32(v), (a))
#define out_le16(a, v) __raw_writew(__cpu_to_le16(v), (a)) #define out_le16(a, v) __raw_writew(__cpu_to_le16(v), (a))
#define in_le32(a) __le32_to_cpu(__raw_readl(a)) #define in_le32(a) __le32_to_cpu(__raw_readl(a))
......
...@@ -172,16 +172,15 @@ do { \ ...@@ -172,16 +172,15 @@ do { \
/* It is used only first parameter for OP - for wic, wdc */ /* It is used only first parameter for OP - for wic, wdc */
#define CACHE_RANGE_LOOP_1(start, end, line_length, op) \ #define CACHE_RANGE_LOOP_1(start, end, line_length, op) \
do { \ do { \
int step = -line_length; \ int volatile temp; \
int count = end - start; \ BUG_ON(end - start <= 0); \
BUG_ON(count <= 0); \
\ \
__asm__ __volatile__ (" 1: addk %0, %0, %1; \ __asm__ __volatile__ (" 1: " #op " %1, r0; \
" #op " %0, r0; \ cmpu %0, %1, %2; \
bgtid %1, 1b; \ bgtid %0, 1b; \
addk %1, %1, %2; \ addk %1, %1, %3; \
" : : "r" (start), "r" (count), \ " : : "r" (temp), "r" (start), "r" (end),\
"r" (step) : "memory"); \ "r" (line_length) : "memory"); \
} while (0); } while (0);
static void __flush_icache_range_msr_irq(unsigned long start, unsigned long end) static void __flush_icache_range_msr_irq(unsigned long start, unsigned long end)
...@@ -313,16 +312,6 @@ static void __invalidate_dcache_all_wb(void) ...@@ -313,16 +312,6 @@ static void __invalidate_dcache_all_wb(void)
pr_debug("%s\n", __func__); pr_debug("%s\n", __func__);
CACHE_ALL_LOOP2(cpuinfo.dcache_size, cpuinfo.dcache_line_length, CACHE_ALL_LOOP2(cpuinfo.dcache_size, cpuinfo.dcache_line_length,
wdc.clear) wdc.clear)
#if 0
unsigned int i;
pr_debug("%s\n", __func__);
/* Just loop through cache size and invalidate it */
for (i = 0; i < cpuinfo.dcache_size; i += cpuinfo.dcache_line_length)
__invalidate_dcache(0, i);
#endif
} }
static void __invalidate_dcache_range_wb(unsigned long start, static void __invalidate_dcache_range_wb(unsigned long start,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment