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
9eaddc6e
Commit
9eaddc6e
authored
Mar 23, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Implement file-offset-in-pte.
parent
b2b1832b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
include/asm-sparc64/pgtable.h
include/asm-sparc64/pgtable.h
+7
-0
No files found.
include/asm-sparc64/pgtable.h
View file @
9eaddc6e
...
...
@@ -123,6 +123,7 @@
#define _PAGE_G 0x0000000000000001
/* Global */
/* Here are the SpitFire software bits we use in the TTE's. */
#define _PAGE_FILE 0x0000000000001000
/* Pagecache page */
#define _PAGE_MODIFIED 0x0000000000000800
/* Modified Page (ie. dirty) */
#define _PAGE_ACCESSED 0x0000000000000400
/* Accessed Page (ie. referenced) */
#define _PAGE_READ 0x0000000000000200
/* Readable SW Bit */
...
...
@@ -311,6 +312,12 @@ static inline pte_t mk_pte_io(unsigned long page, pgprot_t prot, int space)
#define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
#define __swp_entry_to_pte(x) ((pte_t) { (x).val })
/* File offset in PTE support. */
#define pte_file(pte) (pte_val(pte) & _PAGE_FILE)
#define pte_to_pgoff(pte) (pte_val(pte) >> PAGE_SHIFT)
#define pgoff_to_pte(off) (__pte(((off) << PAGE_SHIFT) | _PAGE_FILE))
#define PTE_FILE_MAX_BITS (64UL - PAGE_SHIFT - 1UL)
extern
unsigned
long
prom_virt_to_phys
(
unsigned
long
,
int
*
);
static
__inline__
unsigned
long
...
...
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