.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Port on Texas Instruments TMS320C6x architecture |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2004, 2009, 2010 Texas Instruments Incorporated |
---|
5 | 6 | * Author: Aurelien Jacquiot (aurelien.jacquiot@jaluna.com) |
---|
6 | | - * |
---|
7 | | - * This program is free software; you can redistribute it and/or modify |
---|
8 | | - * it under the terms of the GNU General Public License version 2 as |
---|
9 | | - * published by the Free Software Foundation. |
---|
10 | 7 | */ |
---|
11 | 8 | #ifndef _ASM_C6X_CACHEFLUSH_H |
---|
12 | 9 | #define _ASM_C6X_CACHEFLUSH_H |
---|
.. | .. |
---|
18 | 15 | #include <asm/mman.h> |
---|
19 | 16 | #include <asm/page.h> |
---|
20 | 17 | #include <asm/string.h> |
---|
21 | | - |
---|
22 | | -/* |
---|
23 | | - * virtually-indexed cache management (our cache is physically indexed) |
---|
24 | | - */ |
---|
25 | | -#define flush_cache_all() do {} while (0) |
---|
26 | | -#define flush_cache_mm(mm) do {} while (0) |
---|
27 | | -#define flush_cache_dup_mm(mm) do {} while (0) |
---|
28 | | -#define flush_cache_range(mm, start, end) do {} while (0) |
---|
29 | | -#define flush_cache_page(vma, vmaddr, pfn) do {} while (0) |
---|
30 | | -#define flush_cache_vmap(start, end) do {} while (0) |
---|
31 | | -#define flush_cache_vunmap(start, end) do {} while (0) |
---|
32 | | -#define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 0 |
---|
33 | | -#define flush_dcache_page(page) do {} while (0) |
---|
34 | | -#define flush_dcache_mmap_lock(mapping) do {} while (0) |
---|
35 | | -#define flush_dcache_mmap_unlock(mapping) do {} while (0) |
---|
36 | 18 | |
---|
37 | 19 | /* |
---|
38 | 20 | * physically-indexed cache management |
---|
.. | .. |
---|
52 | 34 | (unsigned long) page_address(page) + PAGE_SIZE)); \ |
---|
53 | 35 | } while (0) |
---|
54 | 36 | |
---|
55 | | - |
---|
56 | 37 | #define copy_to_user_page(vma, page, vaddr, dst, src, len) \ |
---|
57 | 38 | do { \ |
---|
58 | 39 | memcpy(dst, src, len); \ |
---|
59 | 40 | flush_icache_range((unsigned) (dst), (unsigned) (dst) + (len)); \ |
---|
60 | 41 | } while (0) |
---|
61 | 42 | |
---|
62 | | -#define copy_from_user_page(vma, page, vaddr, dst, src, len) \ |
---|
63 | | - memcpy(dst, src, len) |
---|
| 43 | +#include <asm-generic/cacheflush.h> |
---|
64 | 44 | |
---|
65 | 45 | #endif /* _ASM_C6X_CACHEFLUSH_H */ |
---|