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
54860190
Commit
54860190
authored
Feb 09, 2003
by
Rob Radez
Committed by
David S. Miller
Feb 09, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC]: Move away from flush_page_to_ram.
parent
70a06bea
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
+12
-5
arch/sparc/mm/init.c
arch/sparc/mm/init.c
+1
-1
include/asm-sparc/cacheflush.h
include/asm-sparc/cacheflush.h
+3
-2
include/asm-sparc/page.h
include/asm-sparc/page.h
+8
-2
No files found.
arch/sparc/mm/init.c
View file @
54860190
...
@@ -525,7 +525,7 @@ void free_initrd_mem(unsigned long start, unsigned long end)
...
@@ -525,7 +525,7 @@ void free_initrd_mem(unsigned long start, unsigned long end)
}
}
#endif
#endif
void
flush_page_to_ram
(
struct
page
*
page
)
void
sparc_
flush_page_to_ram
(
struct
page
*
page
)
{
{
unsigned
long
vaddr
=
(
unsigned
long
)
page_address
(
page
);
unsigned
long
vaddr
=
(
unsigned
long
)
page_address
(
page
);
...
...
include/asm-sparc/cacheflush.h
View file @
54860190
...
@@ -62,8 +62,9 @@ BTFIXUPDEF_CALL(void, flush_sig_insns, struct mm_struct *, unsigned long)
...
@@ -62,8 +62,9 @@ BTFIXUPDEF_CALL(void, flush_sig_insns, struct mm_struct *, unsigned long)
#define __flush_page_to_ram(addr) BTFIXUP_CALL(__flush_page_to_ram)(addr)
#define __flush_page_to_ram(addr) BTFIXUP_CALL(__flush_page_to_ram)(addr)
#define flush_sig_insns(mm,insn_addr) BTFIXUP_CALL(flush_sig_insns)(mm,insn_addr)
#define flush_sig_insns(mm,insn_addr) BTFIXUP_CALL(flush_sig_insns)(mm,insn_addr)
extern
void
flush_page_to_ram
(
struct
page
*
page
);
extern
void
sparc_
flush_page_to_ram
(
struct
page
*
page
);
#define flush_dcache_page(page) do { } while (0)
#define flush_page_to_ram(page) do { } while (0)
#define flush_dcache_page(page) sparc_flush_page_to_ram(page)
#endif
/* _SPARC_CACHEFLUSH_H */
#endif
/* _SPARC_CACHEFLUSH_H */
include/asm-sparc/page.h
View file @
54860190
...
@@ -31,8 +31,14 @@
...
@@ -31,8 +31,14 @@
#define clear_page(page) memset((void *)(page), 0, PAGE_SIZE)
#define clear_page(page) memset((void *)(page), 0, PAGE_SIZE)
#define copy_page(to,from) memcpy((void *)(to), (void *)(from), PAGE_SIZE)
#define copy_page(to,from) memcpy((void *)(to), (void *)(from), PAGE_SIZE)
#define clear_user_page(addr, vaddr, page) clear_page(addr)
#define clear_user_page(addr, vaddr, page) \
#define copy_user_page(to, from, vaddr, page) copy_page(to, from)
do { clear_page(addr); \
sparc_flush_page_to_ram(page); \
} while (0)
#define copy_user_page(to, from, vaddr, page) \
do { copy_page(to, from); \
sparc_flush_page_to_ram(page); \
} while (0)
/* The following structure is used to hold the physical
/* The following structure is used to hold the physical
* memory configuration of the machine. This is filled in
* memory configuration of the machine. This is filled in
...
...
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