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
fcfd7ef7
Commit
fcfd7ef7
authored
Sep 17, 2003
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Ensure that MM initialisation warnings are reported as bugs.
parent
8dbc7365
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
arch/arm/mm/mm-armv.c
arch/arm/mm/mm-armv.c
+9
-2
No files found.
arch/arm/mm/mm-armv.c
View file @
fcfd7ef7
...
@@ -392,12 +392,19 @@ static void __init create_mapping(struct map_desc *md)
...
@@ -392,12 +392,19 @@ static void __init create_mapping(struct map_desc *md)
long
off
;
long
off
;
if
(
md
->
virtual
!=
vectors_base
()
&&
md
->
virtual
<
PAGE_OFFSET
)
{
if
(
md
->
virtual
!=
vectors_base
()
&&
md
->
virtual
<
PAGE_OFFSET
)
{
printk
(
KERN_WARNING
"
MM
: not creating mapping for "
printk
(
KERN_WARNING
"
BUG
: not creating mapping for "
"0x%08lx at 0x%08lx in user region
\n
"
,
"0x%08lx at 0x%08lx in user region
\n
"
,
md
->
physical
,
md
->
virtual
);
md
->
physical
,
md
->
virtual
);
return
;
return
;
}
}
if
(
md
->
type
==
MT_DEVICE
&&
md
->
virtual
>=
PAGE_OFFSET
&&
md
->
virtual
<
VMALLOC_END
)
{
printk
(
KERN_WARNING
"BUG: mapping for 0x%08lx at 0x%08lx "
"overlaps vmalloc space
\n
"
,
md
->
physical
,
md
->
virtual
);
}
domain
=
mem_types
[
md
->
type
].
domain
;
domain
=
mem_types
[
md
->
type
].
domain
;
prot_pte
=
__pgprot
(
mem_types
[
md
->
type
].
prot_pte
);
prot_pte
=
__pgprot
(
mem_types
[
md
->
type
].
prot_pte
);
prot_l1
=
mem_types
[
md
->
type
].
prot_l1
|
PMD_DOMAIN
(
domain
);
prot_l1
=
mem_types
[
md
->
type
].
prot_l1
|
PMD_DOMAIN
(
domain
);
...
@@ -409,7 +416,7 @@ static void __init create_mapping(struct map_desc *md)
...
@@ -409,7 +416,7 @@ static void __init create_mapping(struct map_desc *md)
if
(
mem_types
[
md
->
type
].
prot_l1
==
0
&&
if
(
mem_types
[
md
->
type
].
prot_l1
==
0
&&
(
virt
&
0xfffff
||
(
virt
+
off
)
&
0xfffff
||
(
virt
+
length
)
&
0xfffff
))
{
(
virt
&
0xfffff
||
(
virt
+
off
)
&
0xfffff
||
(
virt
+
length
)
&
0xfffff
))
{
printk
(
KERN_WARNING
"
MM
: map for 0x%08lx at 0x%08lx can not "
printk
(
KERN_WARNING
"
BUG
: map for 0x%08lx at 0x%08lx can not "
"be mapped using pages, ignoring.
\n
"
,
"be mapped using pages, ignoring.
\n
"
,
md
->
physical
,
md
->
virtual
);
md
->
physical
,
md
->
virtual
);
return
;
return
;
...
...
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