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
6a9f6b3f
Commit
6a9f6b3f
authored
Apr 02, 2004
by
Richard Henderson
Committed by
Richard Henderson
Apr 02, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ALPHA] DISCONTIGMEM fix
From Ivan Kokshaysky <ink@jurassic.park.msu.ru>.
parent
802e66fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
arch/alpha/mm/numa.c
arch/alpha/mm/numa.c
+4
-2
No files found.
arch/alpha/mm/numa.c
View file @
6a9f6b3f
...
@@ -158,8 +158,10 @@ setup_memory_node(int nid, void *kernel_end)
...
@@ -158,8 +158,10 @@ setup_memory_node(int nid, void *kernel_end)
if
(
!
nid
&&
(
node_max_pfn
<
end_kernel_pfn
||
node_min_pfn
>
start_kernel_pfn
))
if
(
!
nid
&&
(
node_max_pfn
<
end_kernel_pfn
||
node_min_pfn
>
start_kernel_pfn
))
panic
(
"kernel loaded out of ram"
);
panic
(
"kernel loaded out of ram"
);
/* Zone start phys-addr must be 2^(MAX_ORDER-1) aligned */
/* Zone start phys-addr must be 2^(MAX_ORDER-1) aligned.
node_min_pfn
=
(
node_min_pfn
+
((
1UL
<<
(
MAX_ORDER
-
1
))
-
1
))
&
~
((
1UL
<<
(
MAX_ORDER
-
1
))
-
1
);
Note that we round this down, not up - node memory
has much larger alignment than 8Mb, so it's safe. */
node_min_pfn
&=
~
((
1UL
<<
(
MAX_ORDER
-
1
))
-
1
);
/* We need to know how many physically contiguous pages
/* We need to know how many physically contiguous pages
we'll need for the bootmap. */
we'll need for the bootmap. */
...
...
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