Skip to content

Commit

Permalink
microblaze: Move cache macro from cache.h to cacheflush.h
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Simek <monstr@monstr.eu>
  • Loading branch information
Michal Simek committed Dec 14, 2009
1 parent 6a8dfe1 commit a1f5511
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
16 changes: 0 additions & 16 deletions arch/microblaze/include/asm/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,4 @@

#define SMP_CACHE_BYTES L1_CACHE_BYTES

void _enable_icache(void);
void _disable_icache(void);
void _invalidate_icache(unsigned int addr);

#define __enable_icache() _enable_icache()
#define __disable_icache() _disable_icache()
#define __invalidate_icache(addr) _invalidate_icache(addr)

void _enable_dcache(void);
void _disable_dcache(void);
void _invalidate_dcache(unsigned int addr);

#define __enable_dcache() _enable_dcache()
#define __disable_dcache() _disable_dcache()
#define __invalidate_dcache(addr) _invalidate_dcache(addr)

#endif /* _ASM_MICROBLAZE_CACHE_H */
17 changes: 17 additions & 0 deletions arch/microblaze/include/asm/cacheflush.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,23 @@
#define flush_cache_vmap(start, end) do { } while (0)
#define flush_cache_vunmap(start, end) do { } while (0)


void _enable_icache(void);
void _disable_icache(void);
void _invalidate_icache(unsigned int addr);

#define __enable_icache() _enable_icache()
#define __disable_icache() _disable_icache()
#define __invalidate_icache(addr) _invalidate_icache(addr)

void _enable_dcache(void);
void _disable_dcache(void);
void _invalidate_dcache(unsigned int addr);

#define __enable_dcache() _enable_dcache()
#define __disable_dcache() _disable_dcache()
#define __invalidate_dcache(addr) _invalidate_dcache(addr)

struct page;
struct mm_struct;
struct vm_area_struct;
Expand Down
1 change: 1 addition & 0 deletions arch/microblaze/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <linux/bitops.h>
#include <asm/system.h>
#include <asm/pgalloc.h>
#include <asm/cacheflush.h>

void show_regs(struct pt_regs *regs)
{
Expand Down

0 comments on commit a1f5511

Please sign in to comment.