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
9fab2278
Commit
9fab2278
authored
Feb 16, 2005
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge nuts.davemloft.net:/disk1/BK/sparcwork-2.6
into nuts.davemloft.net:/disk1/BK/sparc-2.6
parents
157c9052
97a4e84b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
include/asm-generic/4level-fixup.h
include/asm-generic/4level-fixup.h
+1
-1
mm/memory.c
mm/memory.c
+10
-6
No files found.
include/asm-generic/4level-fixup.h
View file @
9fab2278
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
#define pud_bad(pud) 0
#define pud_bad(pud) 0
#define pud_present(pud) 1
#define pud_present(pud) 1
#define pud_ERROR(pud) do { } while (0)
#define pud_ERROR(pud) do { } while (0)
#define pud_clear(pud)
do { } while (0
)
#define pud_clear(pud)
pgd_clear(pud
)
#undef pud_free_tlb
#undef pud_free_tlb
#define pud_free_tlb(tlb, x) do { } while (0)
#define pud_free_tlb(tlb, x) do { } while (0)
...
...
mm/memory.c
View file @
9fab2278
...
@@ -98,7 +98,8 @@ static inline void clear_pmd_range(struct mmu_gather *tlb, pmd_t *pmd, unsigned
...
@@ -98,7 +98,8 @@ static inline void clear_pmd_range(struct mmu_gather *tlb, pmd_t *pmd, unsigned
pmd_clear
(
pmd
);
pmd_clear
(
pmd
);
return
;
return
;
}
}
if
(
!
(
start
&
~
PMD_MASK
)
&&
!
(
end
&
~
PMD_MASK
))
{
if
(
!
((
start
|
end
)
&
~
PMD_MASK
))
{
/* Only clear full, aligned ranges */
page
=
pmd_page
(
*
pmd
);
page
=
pmd_page
(
*
pmd
);
pmd_clear
(
pmd
);
pmd_clear
(
pmd
);
dec_page_state
(
nr_page_table_pages
);
dec_page_state
(
nr_page_table_pages
);
...
@@ -131,7 +132,8 @@ static inline void clear_pud_range(struct mmu_gather *tlb, pud_t *pud, unsigned
...
@@ -131,7 +132,8 @@ static inline void clear_pud_range(struct mmu_gather *tlb, pud_t *pud, unsigned
addr
=
next
;
addr
=
next
;
}
while
(
addr
&&
(
addr
<
end
));
}
while
(
addr
&&
(
addr
<
end
));
if
(
!
(
start
&
~
PUD_MASK
)
&&
!
(
end
&
~
PUD_MASK
))
{
if
(
!
((
start
|
end
)
&
~
PUD_MASK
))
{
/* Only clear full, aligned ranges */
pud_clear
(
pud
);
pud_clear
(
pud
);
pmd_free_tlb
(
tlb
,
__pmd
);
pmd_free_tlb
(
tlb
,
__pmd
);
}
}
...
@@ -162,7 +164,8 @@ static inline void clear_pgd_range(struct mmu_gather *tlb, pgd_t *pgd, unsigned
...
@@ -162,7 +164,8 @@ static inline void clear_pgd_range(struct mmu_gather *tlb, pgd_t *pgd, unsigned
addr
=
next
;
addr
=
next
;
}
while
(
addr
&&
(
addr
<
end
));
}
while
(
addr
&&
(
addr
<
end
));
if
(
!
(
start
&
~
PGDIR_MASK
)
&&
!
(
end
&
~
PGDIR_MASK
))
{
if
(
!
((
start
|
end
)
&
~
PGDIR_MASK
))
{
/* Only clear full, aligned ranges */
pgd_clear
(
pgd
);
pgd_clear
(
pgd
);
pud_free_tlb
(
tlb
,
__pud
);
pud_free_tlb
(
tlb
,
__pud
);
}
}
...
@@ -358,7 +361,7 @@ static int copy_pmd_range(struct mm_struct *dst_mm, struct mm_struct *src_mm,
...
@@ -358,7 +361,7 @@ static int copy_pmd_range(struct mm_struct *dst_mm, struct mm_struct *src_mm,
for
(;
addr
<
end
;
addr
=
next
,
src_pmd
++
,
dst_pmd
++
)
{
for
(;
addr
<
end
;
addr
=
next
,
src_pmd
++
,
dst_pmd
++
)
{
next
=
(
addr
+
PMD_SIZE
)
&
PMD_MASK
;
next
=
(
addr
+
PMD_SIZE
)
&
PMD_MASK
;
if
(
next
>
end
)
if
(
next
>
end
||
next
<=
addr
)
next
=
end
;
next
=
end
;
if
(
pmd_none
(
*
src_pmd
))
if
(
pmd_none
(
*
src_pmd
))
continue
;
continue
;
...
@@ -390,7 +393,7 @@ static int copy_pud_range(struct mm_struct *dst_mm, struct mm_struct *src_mm,
...
@@ -390,7 +393,7 @@ static int copy_pud_range(struct mm_struct *dst_mm, struct mm_struct *src_mm,
for
(;
addr
<
end
;
addr
=
next
,
src_pud
++
,
dst_pud
++
)
{
for
(;
addr
<
end
;
addr
=
next
,
src_pud
++
,
dst_pud
++
)
{
next
=
(
addr
+
PUD_SIZE
)
&
PUD_MASK
;
next
=
(
addr
+
PUD_SIZE
)
&
PUD_MASK
;
if
(
next
>
end
)
if
(
next
>
end
||
next
<=
addr
)
next
=
end
;
next
=
end
;
if
(
pud_none
(
*
src_pud
))
if
(
pud_none
(
*
src_pud
))
continue
;
continue
;
...
@@ -1041,7 +1044,8 @@ static inline int zeromap_pud_range(struct mm_struct *mm, pud_t * pud,
...
@@ -1041,7 +1044,8 @@ static inline int zeromap_pud_range(struct mm_struct *mm, pud_t * pud,
error
=
-
ENOMEM
;
error
=
-
ENOMEM
;
if
(
!
pmd
)
if
(
!
pmd
)
break
;
break
;
error
=
zeromap_pmd_range
(
mm
,
pmd
,
address
,
end
-
address
,
prot
);
error
=
zeromap_pmd_range
(
mm
,
pmd
,
base
+
address
,
end
-
address
,
prot
);
if
(
error
)
if
(
error
)
break
;
break
;
address
=
(
address
+
PUD_SIZE
)
&
PUD_MASK
;
address
=
(
address
+
PUD_SIZE
)
&
PUD_MASK
;
...
...
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