Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57779
b: refs/heads/master
c: 093d0fa
h: refs/heads/master
i:
  57777: 5506e95
  57775: cc763bc
v: v3
  • Loading branch information
Haavard Skinnemoen committed Jun 14, 2007
1 parent 1918f08 commit 57b31eb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2fdfe8d9a2687718b07a35196b89fbf48ba0c82f
refs/heads/master: 093d0faf57e59feee224217273f944e10e4e3562
9 changes: 9 additions & 0 deletions trunk/include/asm-avr32/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
#define L1_CACHE_SHIFT 5
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)

/*
* Memory returned by kmalloc() may be used for DMA, so we must make
* sure that all such allocations are cache aligned. Otherwise,
* unrelated code may cause parts of the buffer to be read into the
* cache before the transfer is done, causing old data to be seen by
* the CPU.
*/
#define ARCH_KMALLOC_MINALIGN L1_CACHE_BYTES

#ifndef __ASSEMBLER__
struct cache_info {
unsigned int ways;
Expand Down

0 comments on commit 57b31eb

Please sign in to comment.