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
nexedi
linux
Commits
9488f6b2
Commit
9488f6b2
authored
Aug 12, 2002
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: avoid bitops where possible in cacheflush avoidance code
parent
659c3522
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
arch/ppc64/mm/init.c
arch/ppc64/mm/init.c
+12
-7
No files found.
arch/ppc64/mm/init.c
View file @
9488f6b2
...
...
@@ -566,7 +566,8 @@ void __init mem_init(void)
*/
void
flush_dcache_page
(
struct
page
*
page
)
{
clear_bit
(
PG_arch_1
,
&
page
->
flags
);
if
(
test_bit
(
PG_arch_1
,
&
page
->
flags
))
clear_bit
(
PG_arch_1
,
&
page
->
flags
);
}
void
flush_icache_page
(
struct
vm_area_struct
*
vma
,
struct
page
*
page
)
...
...
@@ -589,10 +590,12 @@ void clear_user_page(void *page, unsigned long vaddr, struct page *pg)
clear_page
(
page
);
/* XXX we shouldnt have to do this, but glibc requires it */
if
(
cpu_has_noexecute
())
clear_bit
(
PG_arch_1
,
&
pg
->
flags
);
else
if
(
cpu_has_noexecute
())
{
if
(
test_bit
(
PG_arch_1
,
&
pg
->
flags
))
clear_bit
(
PG_arch_1
,
&
pg
->
flags
);
}
else
{
__flush_dcache_icache
(
page
);
}
}
void
copy_user_page
(
void
*
vto
,
void
*
vfrom
,
unsigned
long
vaddr
,
...
...
@@ -609,10 +612,12 @@ void copy_user_page(void *vto, void *vfrom, unsigned long vaddr,
return;
#endif
if
(
cpu_has_noexecute
())
clear_bit
(
PG_arch_1
,
&
pg
->
flags
);
else
if
(
cpu_has_noexecute
())
{
if
(
test_bit
(
PG_arch_1
,
&
pg
->
flags
))
clear_bit
(
PG_arch_1
,
&
pg
->
flags
);
}
else
{
__flush_dcache_icache
(
vto
);
}
}
void
flush_icache_user_range
(
struct
vm_area_struct
*
vma
,
struct
page
*
page
,
...
...
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