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
e93e59ac
Commit
e93e59ac
authored
Oct 30, 2019
by
Vineet Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARC: mm: pmd_populate* to use the canonical set_pmd (and drop pmd_set)
Signed-off-by:
Vineet Gupta
<
vgupta@kernel.org
>
parent
da773cf2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
arch/arc/include/asm/pgalloc.h
arch/arc/include/asm/pgalloc.h
+10
-4
arch/arc/include/asm/pgtable.h
arch/arc/include/asm/pgtable.h
+0
-6
No files found.
arch/arc/include/asm/pgalloc.h
View file @
e93e59ac
...
...
@@ -35,13 +35,19 @@
static
inline
void
pmd_populate_kernel
(
struct
mm_struct
*
mm
,
pmd_t
*
pmd
,
pte_t
*
pte
)
{
pmd_set
(
pmd
,
pte
);
/*
* The cast to long below is OK in 32-bit PAE40 regime with long long pte
* Despite "wider" pte, the pte table needs to be in non-PAE low memory
* as all higher levels can only hold long pointers.
*
* The cast itself is needed given simplistic definition of set_pmd()
*/
set_pmd
(
pmd
,
__pmd
((
unsigned
long
)
pte
));
}
static
inline
void
pmd_populate
(
struct
mm_struct
*
mm
,
pmd_t
*
pmd
,
pgtable_t
ptep
)
static
inline
void
pmd_populate
(
struct
mm_struct
*
mm
,
pmd_t
*
pmd
,
pgtable_t
pte
)
{
pmd_set
(
pmd
,
(
pte_t
*
)
ptep
);
set_pmd
(
pmd
,
__pmd
((
unsigned
long
)
pte
)
);
}
static
inline
int
__get_order_pgd
(
void
)
...
...
arch/arc/include/asm/pgtable.h
View file @
e93e59ac
...
...
@@ -222,12 +222,6 @@ extern char empty_zero_page[PAGE_SIZE];
/* find the logical addr (phy for ARC) of the Page Tbl ref by PMD entry */
#define pmd_page_vaddr(pmd) (pmd_val(pmd) & PAGE_MASK)
/* In a 2 level sys, setup the PGD entry with PTE value */
static
inline
void
pmd_set
(
pmd_t
*
pmdp
,
pte_t
*
ptep
)
{
pmd_val
(
*
pmdp
)
=
(
unsigned
long
)
ptep
;
}
#define pte_none(x) (!pte_val(x))
#define pte_present(x) (pte_val(x) & _PAGE_PRESENT)
#define pte_clear(mm, addr, ptep) set_pte_at(mm, addr, ptep, __pte(0))
...
...
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