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
345f0c6e
Commit
345f0c6e
authored
Mar 15, 2005
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Override {pgd,pmd}_addr_end() to handle vaddr hole.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
7bcfc318
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
include/asm-generic/pgtable.h
include/asm-generic/pgtable.h
+2
-0
include/asm-sparc64/pgtable.h
include/asm-sparc64/pgtable.h
+15
-0
No files found.
include/asm-generic/pgtable.h
View file @
345f0c6e
...
...
@@ -141,10 +141,12 @@ static inline void ptep_set_wrprotect(struct mm_struct *mm, unsigned long addres
* wrap to 0 only in clear_page_range, __boundary may wrap to 0 throughout.
*/
#ifndef pgd_addr_end
#define pgd_addr_end(addr, end) \
({ unsigned long __boundary = ((addr) + PGDIR_SIZE) & PGDIR_MASK; \
(__boundary - 1 < (end) - 1)? __boundary: (end); \
})
#endif
#ifndef pud_addr_end
#define pud_addr_end(addr, end) \
...
...
include/asm-sparc64/pgtable.h
View file @
345f0c6e
...
...
@@ -432,6 +432,21 @@ extern int io_remap_page_range(struct vm_area_struct *vma, unsigned long from,
unsigned
long
offset
,
unsigned
long
size
,
pgprot_t
prot
,
int
space
);
/* Override for {pgd,pmd}_addr_end() to deal with the virtual address
* space hole. We simply sign extend bit 43.
*/
#define pgd_addr_end(addr, end) \
({ unsigned long __boundary = ((addr) + PGDIR_SIZE) & PGDIR_MASK; \
__boundary = ((long) (__boundary << 20)) >> 20; \
(__boundary - 1 < (end) - 1)? __boundary: (end); \
})
#define pmd_addr_end(addr, end) \
({ unsigned long __boundary = ((addr) + PMD_SIZE) & PMD_MASK; \
__boundary = ((long) (__boundary << 20)) >> 20; \
(__boundary - 1 < (end) - 1)? __boundary: (end); \
})
#include <asm-generic/pgtable.h>
/* We provide our own get_unmapped_area to cope with VA holes for userland */
...
...
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