Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24812
b: refs/heads/master
c: ba57583
h: refs/heads/master
v: v3
  • Loading branch information
James Bottomley authored and Kyle McMartin committed Mar 30, 2006
1 parent e5bbbe3 commit 6fbb26d
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ab43227c8a568119a3aebc952a95ac3023e1730d
refs/heads/master: ba57583396585a1ca509e2a84d970a2ff3f9bbfb
6 changes: 3 additions & 3 deletions trunk/arch/parisc/kernel/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ update_mmu_cache(struct vm_area_struct *vma, unsigned long address, pte_t pte)
if (pfn_valid(page_to_pfn(page)) && page_mapping(page) &&
test_bit(PG_dcache_dirty, &page->flags)) {

flush_kernel_dcache_page(page_address(page));
flush_kernel_dcache_page(page);
clear_bit(PG_dcache_dirty, &page->flags);
}
}
Expand Down Expand Up @@ -278,7 +278,7 @@ void flush_dcache_page(struct page *page)
return;
}

flush_kernel_dcache_page(page_address(page));
flush_kernel_dcache_page(page);

if (!mapping)
return;
Expand Down Expand Up @@ -317,7 +317,7 @@ EXPORT_SYMBOL(flush_dcache_page);

/* Defined in arch/parisc/kernel/pacache.S */
EXPORT_SYMBOL(flush_kernel_dcache_range_asm);
EXPORT_SYMBOL(flush_kernel_dcache_page);
EXPORT_SYMBOL(flush_kernel_dcache_page_asm);
EXPORT_SYMBOL(flush_data_cache_local);
EXPORT_SYMBOL(flush_kernel_icache_range_asm);

Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/parisc/kernel/pacache.S
Original file line number Diff line number Diff line change
Expand Up @@ -621,9 +621,9 @@ __clear_user_page_asm:

.procend

.export flush_kernel_dcache_page
.export flush_kernel_dcache_page_asm

flush_kernel_dcache_page:
flush_kernel_dcache_page_asm:
.proc
.callinfo NO_CALLS
.entry
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-parisc/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ extern void flush_user_icache_range_asm(unsigned long, unsigned long);
extern void flush_kernel_icache_range_asm(unsigned long, unsigned long);
extern void flush_user_dcache_range_asm(unsigned long, unsigned long);
extern void flush_kernel_dcache_range_asm(unsigned long, unsigned long);
extern void flush_kernel_dcache_page(void *);
extern void flush_kernel_dcache_page_asm(void *);
extern void flush_kernel_icache_page(void *);
extern void disable_sr_hashing(void); /* turns off space register hashing */
extern void disable_sr_hashing_asm(int); /* low level support for above */
Expand Down
9 changes: 8 additions & 1 deletion trunk/include/asm-parisc/cacheflush.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ extern void flush_dcache_page(struct page *page);
#define flush_dcache_mmap_unlock(mapping) \
write_unlock_irq(&(mapping)->tree_lock)

#define flush_icache_page(vma,page) do { flush_kernel_dcache_page(page_address(page)); flush_kernel_icache_page(page_address(page)); } while (0)
#define flush_icache_page(vma,page) do { flush_kernel_dcache_page(page); flush_kernel_icache_page(page_address(page)); } while (0)

#define flush_icache_range(s,e) do { flush_kernel_dcache_range_asm(s,e); flush_kernel_icache_range_asm(s,e); } while (0)

Expand Down Expand Up @@ -192,6 +192,13 @@ flush_anon_page(struct page *page, unsigned long vmaddr)
}
#define ARCH_HAS_FLUSH_ANON_PAGE

static inline void
flush_kernel_dcache_page(struct page *page)
{
flush_kernel_dcache_page_asm(page_address(page));
}
#define ARCH_HAS_FLUSH_KERNEL_DCACHE_PAGE

#ifdef CONFIG_DEBUG_RODATA
void mark_rodata_ro(void);
#endif
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-parisc/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static inline void
copy_user_page(void *vto, void *vfrom, unsigned long vaddr, struct page *pg)
{
copy_user_page_asm(vto, vfrom);
flush_kernel_dcache_page(vto);
flush_kernel_dcache_page_asm(vto);
/* XXX: ppc flushes icache too, should we? */
}

Expand Down

0 comments on commit 6fbb26d

Please sign in to comment.