Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376293
b: refs/heads/master
c: 7bb66f6
h: refs/heads/master
i:
  376291: a9ba5a2
v: v3
  • Loading branch information
Vineet Gupta committed May 25, 2013
1 parent 8d685da commit 2d13d4e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 20 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: 006dfb3c9c44192f06093d65b3a876fa5ad1319a
refs/heads/master: 7bb66f6e6eecdd8e10ed3a63bd28c1e9105adc79
9 changes: 0 additions & 9 deletions trunk/arch/arc/include/asm/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@
#define clear_page(paddr) memset((paddr), 0, PAGE_SIZE)
#define copy_page(to, from) memcpy((to), (from), PAGE_SIZE)

#ifndef CONFIG_ARC_CACHE_VIPT_ALIASING

#define clear_user_page(addr, vaddr, pg) clear_page(addr)
#define copy_user_page(vto, vfrom, vaddr, pg) copy_page(vto, vfrom)

#else /* VIPT aliasing dcache */

struct vm_area_struct;
struct page;

Expand All @@ -35,8 +28,6 @@ void copy_user_highpage(struct page *to, struct page *from,
unsigned long u_vaddr, struct vm_area_struct *vma);
void clear_user_page(void *to, unsigned long u_vaddr, struct page *page);

#endif /* CONFIG_ARC_CACHE_VIPT_ALIASING */

#undef STRICT_MM_TYPECHECKS

#ifdef STRICT_MM_TYPECHECKS
Expand Down
21 changes: 11 additions & 10 deletions trunk/arch/arc/mm/cache_arc700.c
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,17 @@ void flush_cache_range(struct vm_area_struct *vma, unsigned long start,
flush_cache_all();
}

void flush_anon_page(struct vm_area_struct *vma, struct page *page,
unsigned long u_vaddr)
{
/* TBD: do we really need to clear the kernel mapping */
__flush_dcache_page(page_address(page), u_vaddr);
__flush_dcache_page(page_address(page), page_address(page));

}

#endif

void copy_user_highpage(struct page *to, struct page *from,
unsigned long u_vaddr, struct vm_area_struct *vma)
{
Expand Down Expand Up @@ -725,16 +736,6 @@ void clear_user_page(void *to, unsigned long u_vaddr, struct page *page)
set_bit(PG_arch_1, &page->flags);
}

void flush_anon_page(struct vm_area_struct *vma, struct page *page,
unsigned long u_vaddr)
{
/* TBD: do we really need to clear the kernel mapping */
__flush_dcache_page(page_address(page), u_vaddr);
__flush_dcache_page(page_address(page), page_address(page));

}

#endif

/**********************************************************************
* Explicit Cache flush request from user space via syscall
Expand Down

0 comments on commit 2d13d4e

Please sign in to comment.