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
f2e2013f
Commit
f2e2013f
authored
Feb 13, 2015
by
Vineet Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARC: mem init spring cleaning - No functional changes
Signed-off-by:
Vineet Gupta
<
vgupta@synopsys.com
>
parent
a44ec8bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
arch/arc/mm/init.c
arch/arc/mm/init.c
+5
-4
No files found.
arch/arc/mm/init.c
View file @
f2e2013f
...
...
@@ -71,7 +71,7 @@ early_param("initrd", early_initrd);
*/
void
__init
setup_arch_memory
(
void
)
{
unsigned
long
zones_size
[
MAX_NR_ZONES
]
=
{
0
,
0
}
;
unsigned
long
zones_size
[
MAX_NR_ZONES
];
unsigned
long
end_mem
=
CONFIG_LINUX_LINK_BASE
+
arc_mem_sz
;
init_mm
.
start_code
=
(
unsigned
long
)
_text
;
...
...
@@ -90,7 +90,7 @@ void __init setup_arch_memory(void)
/*------------- externs in mm need setting up ---------------*/
/* first page of system - kernel .vector starts here */
min_low_pfn
=
PFN_DOWN
(
CONFIG_LINUX_LINK_BASE
)
;
min_low_pfn
=
ARCH_PFN_OFFSET
;
/* Last usable page of low mem (no HIGHMEM yet for ARC port) */
max_low_pfn
=
max_pfn
=
PFN_DOWN
(
end_mem
);
...
...
@@ -111,7 +111,7 @@ void __init setup_arch_memory(void)
/*-------------- node setup --------------------------------*/
memset
(
zones_size
,
0
,
sizeof
(
zones_size
));
zones_size
[
ZONE_NORMAL
]
=
max_
low_pfn
-
min_low_pfn
;
zones_size
[
ZONE_NORMAL
]
=
max_
mapnr
;
/*
* We can't use the helper free_area_init(zones[]) because it uses
...
...
@@ -123,6 +123,8 @@ void __init setup_arch_memory(void)
zones_size
,
/* num pages per zone */
min_low_pfn
,
/* first pfn of node */
NULL
);
/* NO holes */
high_memory
=
(
void
*
)
end_mem
;
}
/*
...
...
@@ -133,7 +135,6 @@ void __init setup_arch_memory(void)
*/
void
__init
mem_init
(
void
)
{
high_memory
=
(
void
*
)(
CONFIG_LINUX_LINK_BASE
+
arc_mem_sz
);
free_all_bootmem
();
mem_init_print_info
(
NULL
);
}
...
...
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