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
9ff2d536
Commit
9ff2d536
authored
May 23, 2002
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up tlb_start/end_vma.
parent
fce9505f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
9 deletions
+8
-9
include/asm-i386/tlb.h
include/asm-i386/tlb.h
+2
-2
include/asm-sparc64/tlb.h
include/asm-sparc64/tlb.h
+4
-4
mm/memory.c
mm/memory.c
+2
-3
No files found.
include/asm-i386/tlb.h
View file @
9ff2d536
...
...
@@ -5,8 +5,8 @@
* x86 doesn't need any special per-pte or
* per-vma handling..
*/
#define tlb_start_vma(tlb, vma
, start, end
) do { } while (0)
#define tlb_end_vma(tlb, vma
, start, end
) do { } while (0)
#define tlb_start_vma(tlb, vma) do { } while (0)
#define tlb_end_vma(tlb, vma) do { } while (0)
#define tlb_remove_tlb_entry(tlb, pte, address) do { } while (0)
/*
...
...
include/asm-sparc64/tlb.h
View file @
9ff2d536
...
...
@@ -3,10 +3,10 @@
#define tlb_flush(tlb) flush_tlb_mm((tlb)->mm)
#define tlb_start_vma(tlb, vma
, start, end
) \
flush_cache_range(vma,
start,
end)
#define tlb_end_vma(tlb, vma
, start, end
) \
flush_tlb_range(vma,
start,
end)
#define tlb_start_vma(tlb, vma) \
flush_cache_range(vma,
vma->vm_start, vma->vm_
end)
#define tlb_end_vma(tlb, vma) \
flush_tlb_range(vma,
vma->vm_start, vma->vm_
end)
#define tlb_remove_tlb_entry(tlb, pte, address) do { } while (0)
...
...
mm/memory.c
View file @
9ff2d536
...
...
@@ -387,19 +387,18 @@ static void zap_pmd_range(mmu_gather_t *tlb, pgd_t * dir, unsigned long address,
void
unmap_page_range
(
mmu_gather_t
*
tlb
,
struct
vm_area_struct
*
vma
,
unsigned
long
address
,
unsigned
long
end
)
{
unsigned
long
start
=
address
;
pgd_t
*
dir
;
if
(
address
>=
end
)
BUG
();
dir
=
pgd_offset
(
vma
->
vm_mm
,
address
);
tlb_start_vma
(
tlb
,
vma
,
start
,
end
);
tlb_start_vma
(
tlb
,
vma
);
do
{
zap_pmd_range
(
tlb
,
dir
,
address
,
end
-
address
);
address
=
(
address
+
PGDIR_SIZE
)
&
PGDIR_MASK
;
dir
++
;
}
while
(
address
&&
(
address
<
end
));
tlb_end_vma
(
tlb
,
vma
,
start
,
end
);
tlb_end_vma
(
tlb
,
vma
);
}
/*
...
...
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