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
f167edae
Commit
f167edae
authored
May 12, 2012
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sparc32: Un-btfixup pmd_{bad,present}().
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
7d9fa4aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
14 deletions
+9
-14
arch/sparc/include/asm/pgtable_32.h
arch/sparc/include/asm/pgtable_32.h
+9
-5
arch/sparc/mm/srmmu.c
arch/sparc/mm/srmmu.c
+0
-9
No files found.
arch/sparc/include/asm/pgtable_32.h
View file @
f167edae
...
...
@@ -153,17 +153,21 @@ static inline void pte_clear(struct mm_struct *mm, unsigned long addr, pte_t *pt
__pte_clear
(
ptep
);
}
BTFIXUPDEF_CALL_CONST
(
int
,
pmd_bad
,
pmd_t
)
BTFIXUPDEF_CALL_CONST
(
int
,
pmd_present
,
pmd_t
)
static
inline
int
pmd_bad
(
pmd_t
pmd
)
{
return
(
pmd_val
(
pmd
)
&
SRMMU_ET_MASK
)
!=
SRMMU_ET_PTD
;
}
static
inline
int
pmd_present
(
pmd_t
pmd
)
{
return
((
pmd_val
(
pmd
)
&
SRMMU_ET_MASK
)
==
SRMMU_ET_PTD
);
}
static
inline
int
pmd_none
(
pmd_t
pmd
)
{
return
!
pmd_val
(
pmd
);
}
#define pmd_bad(pmd) BTFIXUP_CALL(pmd_bad)(pmd)
#define pmd_present(pmd) BTFIXUP_CALL(pmd_present)(pmd)
static
inline
void
pmd_clear
(
pmd_t
*
pmdp
)
{
int
i
;
...
...
arch/sparc/mm/srmmu.c
View file @
f167edae
...
...
@@ -118,12 +118,6 @@ static inline int srmmu_pte_present(pte_t pte)
static
inline
int
srmmu_pmd_none
(
pmd_t
pmd
)
{
return
!
(
pmd_val
(
pmd
)
&
0xFFFFFFF
);
}
static
inline
int
srmmu_pmd_bad
(
pmd_t
pmd
)
{
return
(
pmd_val
(
pmd
)
&
SRMMU_ET_MASK
)
!=
SRMMU_ET_PTD
;
}
static
inline
int
srmmu_pmd_present
(
pmd_t
pmd
)
{
return
((
pmd_val
(
pmd
)
&
SRMMU_ET_MASK
)
==
SRMMU_ET_PTD
);
}
static
inline
pte_t
srmmu_pte_wrprotect
(
pte_t
pte
)
{
return
__pte
(
pte_val
(
pte
)
&
~
SRMMU_WRITE
);}
...
...
@@ -2078,9 +2072,6 @@ void __init ld_mmu_srmmu(void)
BTFIXUPSET_CALL
(
pte_present
,
srmmu_pte_present
,
BTFIXUPCALL_NORM
);
BTFIXUPSET_CALL
(
pmd_bad
,
srmmu_pmd_bad
,
BTFIXUPCALL_NORM
);
BTFIXUPSET_CALL
(
pmd_present
,
srmmu_pmd_present
,
BTFIXUPCALL_NORM
);
BTFIXUPSET_CALL
(
mk_pte
,
srmmu_mk_pte
,
BTFIXUPCALL_NORM
);
BTFIXUPSET_CALL
(
mk_pte_phys
,
srmmu_mk_pte_phys
,
BTFIXUPCALL_NORM
);
BTFIXUPSET_CALL
(
mk_pte_io
,
srmmu_mk_pte_io
,
BTFIXUPCALL_NORM
);
...
...
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