path: root/arch/avr32/mm/cache.c
Commit message (Collapse)AuthorAgeFilesLines
* Replace <asm/uaccess.h> with <linux/uaccess.h> globallyLinus Torvalds2016-12-241-1/+1
| | | | | | | | | | | | | This was entirely automated, using the script by Al: PATT='^[[:blank:]]*#[[:blank:]]*include[[:blank:]]*<asm/uaccess.h>' sed -i -e "s!$PATT!#include <linux/uaccess.h>!" \ $(git grep -l "$PATT"|grep -v ^include/linux/uaccess.h) to do the replacement at the end of the merge window. Requested-by: Al Viro <> Signed-off-by: Linus Torvalds <>
* arch/avr32/mm/cache.c: export symbol flush_icache_range() for module usingChen Gang2014-03-311-0/+1
| | | | | | | | | | | | | | Need export symbol flush_icache_range() to modules, just like another platforms have done, or can not pass compiling. The related error (with allmodconfig under avr32): ERROR: "flush_icache_range" [drivers/misc/lkdtm.ko] undefined! make[1]: *** [__modpost] Error 1 make: *** [modules] Error 2 Signed-off-by: Chen Gang <> Acked-by: Hans-Christian Egtvedt <>
* mm: Fix out-of-date comments which refers non-existent functionsRyota Ozaki2011-02-171-1/+1
| | | | | | | | | | | do_file_page and do_no_page don't exist anymore, but some comments still refers them. The patch fixes them by replacing them with existing ones. Signed-off-by: Ryota Ozaki <> Acked-by: KAMEZAWA Hiroyuki <> Reviewed-by: Minchan Kim <> Signed-off-by: Jiri Kosina <>
* avr32: Introducing asm/syscalls.hJaswinder Singh2008-12-171-0/+1
| | | | | | | Declaring arch-dependent syscalls for avr32 architecture Signed-off-by: Jaswinder Singh <> Signed-off-by: Haavard Skinnemoen <>
* [AVR32] Fix copy_to_user_page() breakageHaavard Skinnemoen2007-12-071-10/+10
| | | | | | | | | | | | The current implementation of copy_to_user_page() gives "vaddr" to the cache instruction when trying to sync the icache with the dcache. If vaddr does not exist in the TLB, the CPU will silently abort the operation, which may result in the caches staying out of sync. To fix this, pass the "dst" parameter to flush_icache_range() instead -- we know this is valid because we just wrote to it. Signed-off-by: Haavard Skinnemoen <>
* [AVR32] Fix bug in invalidate_dcache_region()Haavard Skinnemoen2007-06-231-9/+5
| | | | | | | | | | | | | If (start + size) is not cacheline aligned and (start & mask) > (end & mask), the last but one cacheline won't be invalidated as it should. Fix this by rounding `end' down to the nearest cacheline boundary if it gets adjusted due to misalignment. Also flush the write buffer unconditionally -- if the dcache wrote back a line just before we invalidated it, the dirty data may be sitting in the write buffer waiting to corrupt our buffer later. Signed-off-by: Haavard Skinnemoen <>
* [AVR32] Don't use kmap() in flush_icache_page()Haavard Skinnemoen2007-03-071-2/+1
| | | | | | | flush_icache_page() can be called from atomic context, so we can't use kmap(). Use page_address() instead. Signed-off-by: Haavard Skinnemoen <>
* [AVR32] Fix incorrect invalidation of shared cachelinesDavid Brownell2007-02-091-8/+24
| | | | | | | | | | Fix bug in dma_map_single(..., DMA_FROM_DEVICE) caused by incorrect invalidation of shared cachelines at the beginning and/or end of the specified buffer. Those shared cachelines need to be flushed, since they may hold valid data (which must not be discarded). Signed-off-by: David Brownell <> Signed-off-by: Haavard Skinnemoen <>
* [PATCH] avr32 architectureHaavard Skinnemoen2006-09-261-0/+150
This adds support for the Atmel AVR32 architecture as well as the AT32AP7000 CPU and the AT32STK1000 development board. AVR32 is a new high-performance 32-bit RISC microprocessor core, designed for cost-sensitive embedded applications, with particular emphasis on low power consumption and high code density. The AVR32 architecture is not binary compatible with earlier 8-bit AVR architectures. The AVR32 architecture, including the instruction set, is described by the AVR32 Architecture Manual, available from The Atmel AT32AP7000 is the first CPU implementing the AVR32 architecture. It features a 7-stage pipeline, 16KB instruction and data caches and a full Memory Management Unit. It also comes with a large set of integrated peripherals, many of which are shared with the AT91 ARM-based controllers from Atmel. Full data sheet is available from while the CPU core implementation including caches and MMU is documented by the AVR32 AP Technical Reference, available from Information about the AT32STK1000 development board can be found at including a BSP CD image with an earlier version of this patch, development tools (binaries and source/patches) and a root filesystem image suitable for booting from SD card. Alternatively, there's a preliminary "getting started" guide available at which provides links to the sources and patches you will need in order to set up a cross-compiling environment for avr32-linux. This patch, as well as the other patches included with the BSP and the toolchain patches, is actively supported by Atmel Corporation. [ Fix more pxx_page macro locations] [ fix `make defconfig'] Signed-off-by: Haavard Skinnemoen <> Signed-off-by: Adrian Bunk <> Signed-off-by: Dave McCracken <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>