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
366440ee
Commit
366440ee
authored
Oct 28, 2019
by
Vineet Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARC: mm: Fixes to allow STRICT_MM_TYPECHECKS
Signed-off-by:
Vineet Gupta
<
vgupta@kernel.org
>
parent
47910ca3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
arch/arc/mm/tlb.c
arch/arc/mm/tlb.c
+8
-5
No files found.
arch/arc/mm/tlb.c
View file @
366440ee
...
...
@@ -71,7 +71,7 @@ static void tlb_entry_erase(unsigned int vaddr_n_asid)
}
}
static
void
tlb_entry_insert
(
unsigned
int
pd0
,
p
te
_t
pd1
)
static
void
tlb_entry_insert
(
unsigned
int
pd0
,
p
hys_addr
_t
pd1
)
{
unsigned
int
idx
;
...
...
@@ -109,13 +109,16 @@ static void tlb_entry_erase(unsigned int vaddr_n_asid)
write_aux_reg
(
ARC_REG_TLBCOMMAND
,
TLBDeleteEntry
);
}
static
void
tlb_entry_insert
(
unsigned
int
pd0
,
p
te
_t
pd1
)
static
void
tlb_entry_insert
(
unsigned
int
pd0
,
p
hys_addr
_t
pd1
)
{
write_aux_reg
(
ARC_REG_TLBPD0
,
pd0
);
write_aux_reg
(
ARC_REG_TLBPD1
,
pd1
);
if
(
is_pae40_enabled
())
if
(
!
is_pae40_enabled
())
{
write_aux_reg
(
ARC_REG_TLBPD1
,
pd1
);
}
else
{
write_aux_reg
(
ARC_REG_TLBPD1
,
pd1
&
0xFFFFFFFF
);
write_aux_reg
(
ARC_REG_TLBPD1HI
,
(
u64
)
pd1
>>
32
);
}
write_aux_reg
(
ARC_REG_TLBCOMMAND
,
TLBInsertEntry
);
}
...
...
@@ -391,7 +394,7 @@ void create_tlb(struct vm_area_struct *vma, unsigned long vaddr, pte_t *ptep)
unsigned
long
flags
;
unsigned
int
asid_or_sasid
,
rwx
;
unsigned
long
pd0
;
p
te
_t
pd1
;
p
hys_addr
_t
pd1
;
/*
* create_tlb() assumes that current->mm == vma->mm, since
...
...
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