Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xenomai
ipipe
Commits
ba748d22
Commit
ba748d22
authored
Mar 03, 2008
by
Ingo Molnar
Browse files
x86: warn about RAM pages in ioremap()
Signed-off-by:
Ingo Molnar
<
mingo@elte.hu
>
parent
320a6b2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
arch/x86/mm/ioremap.c
View file @
ba748d22
...
...
@@ -149,9 +149,11 @@ static void __iomem *__ioremap(resource_size_t phys_addr, unsigned long size,
for
(
pfn
=
phys_addr
>>
PAGE_SHIFT
;
(
pfn
<<
PAGE_SHIFT
)
<
last_addr
;
pfn
++
)
{
if
(
page_is_ram
(
pfn
)
&&
pfn_valid
(
pfn
)
&&
!
PageReserved
(
pfn_to_page
(
pfn
)))
int
is_ram
=
page_is_ram
(
pfn
);
if
(
is_ram
&&
pfn_valid
(
pfn
)
&&
!
PageReserved
(
pfn_to_page
(
pfn
)))
return
NULL
;
WARN_ON_ONCE
(
is_ram
);
}
switch
(
mode
)
{
...
...
Write
Preview
Supports
Markdown
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