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
8b9d266a
Commit
8b9d266a
authored
Aug 15, 2004
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Move bootmem_init() call into paging_init()
parent
ffaa2a0d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
arch/arm/kernel/setup.c
arch/arm/kernel/setup.c
+0
-2
arch/arm/mm/init.c
arch/arm/mm/init.c
+4
-4
No files found.
arch/arm/kernel/setup.c
View file @
8b9d266a
...
...
@@ -57,7 +57,6 @@ extern unsigned int mem_fclk_21285;
extern
void
paging_init
(
struct
meminfo
*
,
struct
machine_desc
*
desc
);
extern
void
convert_to_tag_list
(
struct
tag
*
tags
);
extern
void
squash_mem_tags
(
struct
tag
*
tag
);
extern
void
bootmem_init
(
struct
meminfo
*
);
extern
void
reboot_setup
(
char
*
str
);
extern
int
root_mountflags
;
extern
int
_stext
,
_text
,
_etext
,
_edata
,
_end
;
...
...
@@ -720,7 +719,6 @@ void __init setup_arch(char **cmdline_p)
memcpy
(
saved_command_line
,
from
,
COMMAND_LINE_SIZE
);
saved_command_line
[
COMMAND_LINE_SIZE
-
1
]
=
'\0'
;
parse_cmdline
(
cmdline_p
,
from
);
bootmem_init
(
&
meminfo
);
paging_init
(
&
meminfo
,
mdesc
);
request_standard_resources
(
&
meminfo
,
mdesc
);
...
...
arch/arm/mm/init.c
View file @
8b9d266a
...
...
@@ -344,7 +344,7 @@ static inline void free_bootmem_node_bank(int node, struct meminfo *mi)
* Initialise the bootmem allocator for all nodes. This is called
* early during the architecture specific initialisation.
*/
void
__init
bootmem_init
(
struct
meminfo
*
mi
)
static
void
__init
bootmem_init
(
struct
meminfo
*
mi
)
{
struct
node_info
node_info
[
MAX_NUMNODES
],
*
np
=
node_info
;
unsigned
int
bootmap_pages
,
bootmap_pfn
,
map_pg
;
...
...
@@ -412,9 +412,7 @@ void __init bootmem_init(struct meminfo *mi)
}
#endif
if
(
map_pg
!=
bootmap_pfn
+
bootmap_pages
)
BUG
();
BUG_ON
(
map_pg
!=
bootmap_pfn
+
bootmap_pages
);
}
/*
...
...
@@ -426,6 +424,8 @@ void __init paging_init(struct meminfo *mi, struct machine_desc *mdesc)
void
*
zero_page
;
int
node
;
bootmem_init
(
mi
);
memcpy
(
&
meminfo
,
mi
,
sizeof
(
meminfo
));
/*
...
...
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