Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
5e3679c5
Commit
5e3679c5
authored
Oct 10, 2009
by
Paul Mundt
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'sh/cachetlb'
parents
a469f627
f9e2bdfd
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
87 additions
and
425 deletions
+87
-425
arch/sh/include/asm/fixmap.h
arch/sh/include/asm/fixmap.h
+3
-3
arch/sh/mm/cache-sh4.c
arch/sh/mm/cache-sh4.c
+75
-421
arch/sh/mm/cache.c
arch/sh/mm/cache.c
+6
-0
arch/sh/mm/kmap.c
arch/sh/mm/kmap.c
+3
-1
No files found.
arch/sh/include/asm/fixmap.h
View file @
5e3679c5
...
...
@@ -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
...
...
@@ -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 */
...
...
arch/sh/mm/cache-sh4.c
View file @
5e3679c5
This diff is collapsed.
Click to expand it.
arch/sh/mm/cache.c
View file @
5e3679c5
...
...
@@ -164,11 +164,17 @@ void flush_cache_all(void)
void
flush_cache_mm
(
struct
mm_struct
*
mm
)
{
if
(
boot_cpu_data
.
dcache
.
n_aliases
==
0
)
return
;
cacheop_on_each_cpu
(
local_flush_cache_mm
,
mm
,
1
);
}
void
flush_cache_dup_mm
(
struct
mm_struct
*
mm
)
{
if
(
boot_cpu_data
.
dcache
.
n_aliases
==
0
)
return
;
cacheop_on_each_cpu
(
local_flush_cache_dup_mm
,
mm
,
1
);
}
...
...
arch/sh/mm/kmap.c
View file @
5e3679c5
...
...
@@ -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
)));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment