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
c1502b7c
Commit
c1502b7c
authored
Mar 15, 2004
by
John S. Marvin
Committed by
David Mosberger
Mar 15, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
yia64: Fix show_mem() panic
parent
28505ef9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
arch/ia64/mm/contig.c
arch/ia64/mm/contig.c
+2
-0
arch/ia64/mm/discontig.c
arch/ia64/mm/discontig.c
+2
-0
arch/ia64/mm/init.c
arch/ia64/mm/init.c
+4
-1
No files found.
arch/ia64/mm/contig.c
View file @
c1502b7c
...
@@ -46,6 +46,8 @@ show_mem (void)
...
@@ -46,6 +46,8 @@ show_mem (void)
printk
(
"Free swap: %6dkB
\n
"
,
nr_swap_pages
<<
(
PAGE_SHIFT
-
10
));
printk
(
"Free swap: %6dkB
\n
"
,
nr_swap_pages
<<
(
PAGE_SHIFT
-
10
));
i
=
max_mapnr
;
i
=
max_mapnr
;
while
(
i
--
>
0
)
{
while
(
i
--
>
0
)
{
if
(
!
pfn_valid
(
i
))
continue
;
total
++
;
total
++
;
if
(
PageReserved
(
mem_map
+
i
))
if
(
PageReserved
(
mem_map
+
i
))
reserved
++
;
reserved
++
;
...
...
arch/ia64/mm/discontig.c
View file @
c1502b7c
...
@@ -499,6 +499,8 @@ void show_mem(void)
...
@@ -499,6 +499,8 @@ void show_mem(void)
for_each_pgdat
(
pgdat
)
{
for_each_pgdat
(
pgdat
)
{
printk
(
"Node ID: %d
\n
"
,
pgdat
->
node_id
);
printk
(
"Node ID: %d
\n
"
,
pgdat
->
node_id
);
for
(
i
=
0
;
i
<
pgdat
->
node_spanned_pages
;
i
++
)
{
for
(
i
=
0
;
i
<
pgdat
->
node_spanned_pages
;
i
++
)
{
if
(
!
ia64_pfn_valid
(
pgdat
->
node_start_pfn
+
i
))
continue
;
if
(
PageReserved
(
pgdat
->
node_mem_map
+
i
))
if
(
PageReserved
(
pgdat
->
node_mem_map
+
i
))
reserved
++
;
reserved
++
;
else
if
(
PageSwapCache
(
pgdat
->
node_mem_map
+
i
))
else
if
(
PageSwapCache
(
pgdat
->
node_mem_map
+
i
))
...
...
arch/ia64/mm/init.c
View file @
c1502b7c
...
@@ -459,8 +459,11 @@ int
...
@@ -459,8 +459,11 @@ int
ia64_pfn_valid
(
unsigned
long
pfn
)
ia64_pfn_valid
(
unsigned
long
pfn
)
{
{
char
byte
;
char
byte
;
struct
page
*
pg
=
pfn_to_page
(
pfn
);
return
__get_user
(
byte
,
(
char
*
)
pfn_to_page
(
pfn
))
==
0
;
return
(
__get_user
(
byte
,
(
char
*
)
pg
)
==
0
)
&&
((((
u64
)
pg
&
PAGE_MASK
)
==
(((
u64
)(
pg
+
1
)
-
1
)
&
PAGE_MASK
))
||
(
__get_user
(
byte
,
(
char
*
)
(
pg
+
1
)
-
1
)
==
0
));
}
}
EXPORT_SYMBOL
(
ia64_pfn_valid
);
EXPORT_SYMBOL
(
ia64_pfn_valid
);
...
...
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