nommu.c (c95baf12f5077419db01313ab61c2aac007d40cd) | nommu.c (f358afc52c3066f4e8cd7b3a2d75b31e822519e9) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * linux/arch/arm/mm/nommu.c 4 * 5 * ARM uCLinux supporting functions. 6 */ 7#include <linux/module.h> 8#include <linux/mm.h> --- 152 unchanged lines hidden (view full) --- 161} 162 163void flush_dcache_page(struct page *page) 164{ 165 __cpuc_flush_dcache_area(page_address(page), PAGE_SIZE); 166} 167EXPORT_SYMBOL(flush_dcache_page); 168 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * linux/arch/arm/mm/nommu.c 4 * 5 * ARM uCLinux supporting functions. 6 */ 7#include <linux/module.h> 8#include <linux/mm.h> --- 152 unchanged lines hidden (view full) --- 161} 162 163void flush_dcache_page(struct page *page) 164{ 165 __cpuc_flush_dcache_area(page_address(page), PAGE_SIZE); 166} 167EXPORT_SYMBOL(flush_dcache_page); 168 |
169void flush_kernel_dcache_page(struct page *page) 170{ 171 __cpuc_flush_dcache_area(page_address(page), PAGE_SIZE); 172} 173EXPORT_SYMBOL(flush_kernel_dcache_page); 174 | |
175void copy_to_user_page(struct vm_area_struct *vma, struct page *page, 176 unsigned long uaddr, void *dst, const void *src, 177 unsigned long len) 178{ 179 memcpy(dst, src, len); 180 if (vma->vm_flags & VM_EXEC) 181 __cpuc_coherent_user_range(uaddr, uaddr + len); 182} --- 67 unchanged lines hidden --- | 169void copy_to_user_page(struct vm_area_struct *vma, struct page *page, 170 unsigned long uaddr, void *dst, const void *src, 171 unsigned long len) 172{ 173 memcpy(dst, src, len); 174 if (vma->vm_flags & VM_EXEC) 175 __cpuc_coherent_user_range(uaddr, uaddr + len); 176} --- 67 unchanged lines hidden --- |