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
6de02a9e
Commit
6de02a9e
authored
May 05, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sparc64: Implement pfn_pte.
parent
e8b32a28
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
include/asm-sparc64/pgtable.h
include/asm-sparc64/pgtable.h
+4
-5
No files found.
include/asm-sparc64/pgtable.h
View file @
6de02a9e
...
@@ -195,14 +195,13 @@ extern unsigned long pfn_base;
...
@@ -195,14 +195,13 @@ extern unsigned long pfn_base;
extern
struct
page
*
mem_map_zero
;
extern
struct
page
*
mem_map_zero
;
#define ZERO_PAGE(vaddr) (mem_map_zero)
#define ZERO_PAGE(vaddr) (mem_map_zero)
/* Warning: These take pointers to page structs now... */
#define pfn_pte(pfn, prot) \
#define mk_pte(page, pgprot) \
__pte((((pfn)+(pfn_base)) << PAGE_SHIFT) | pgprot_val(prot) | _PAGE_SZBITS)
__pte((((page - mem_map) << PAGE_SHIFT)+phys_base) | pgprot_val(pgprot) | _PAGE_SZBITS)
#define mk_pte(page, pgprot) pfn_pte(page_to_pfn(page), (pgprot))
#define page_pte_prot(page, prot) mk_pte(page, prot)
#define page_pte_prot(page, prot) mk_pte(page, prot)
#define page_pte(page) page_pte_prot(page, __pgprot(0))
#define page_pte(page) page_pte_prot(page, __pgprot(0))
#define mk_pte_phys(physpage, pgprot) (__pte((physpage) | pgprot_val(pgprot) | _PAGE_SZBITS))
extern
inline
pte_t
pte_modify
(
pte_t
orig_pte
,
pgprot_t
new_prot
)
extern
inline
pte_t
pte_modify
(
pte_t
orig_pte
,
pgprot_t
new_prot
)
{
{
pte_t
__pte
;
pte_t
__pte
;
...
...
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