Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173376
b: refs/heads/master
c: f9e2bdf
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mundt committed Sep 9, 2009
1 parent c7e6df7 commit 3e05d52
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 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: c4845a4b2288a9e5d96a0558e474809028c8aff3
refs/heads/master: f9e2bdfdbb4c9da13422b349227be8c7b41dbd44
6 changes: 3 additions & 3 deletions trunk/arch/sh/include/asm/fixmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
#define _ASM_FIXMAP_H

#include <linux/kernel.h>
#include <linux/threads.h>
#include <asm/page.h>
#ifdef CONFIG_HIGHMEM
#include <linux/threads.h>
#include <asm/kmap_types.h>
#endif

Expand Down Expand Up @@ -46,9 +46,9 @@
* fix-mapped?
*/
enum fixed_addresses {
#define FIX_N_COLOURS 16
#define FIX_N_COLOURS 8
FIX_CMAP_BEGIN,
FIX_CMAP_END = FIX_CMAP_BEGIN + FIX_N_COLOURS,
FIX_CMAP_END = FIX_CMAP_BEGIN + (FIX_N_COLOURS * NR_CPUS),
FIX_UNCACHED,
#ifdef CONFIG_HIGHMEM
FIX_KMAP_BEGIN, /* reserved pte's for temporary kernel mappings */
Expand Down
4 changes: 3 additions & 1 deletion trunk/arch/sh/mm/kmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ void *kmap_coherent(struct page *page, unsigned long addr)
pagefault_disable();

idx = FIX_CMAP_END -
((addr & current_cpu_data.dcache.alias_mask) >> PAGE_SHIFT);
(((addr >> PAGE_SHIFT) & (FIX_N_COLOURS - 1)) +
(FIX_N_COLOURS * smp_processor_id()));

vaddr = __fix_to_virt(idx);

BUG_ON(!pte_none(*(kmap_coherent_pte - idx)));
Expand Down

0 comments on commit 3e05d52

Please sign in to comment.