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
d6fa5d1a
Commit
d6fa5d1a
authored
Oct 18, 2004
by
Richard Russon
Browse files
Options
Browse Files
Download
Plain Diff
Merge flatcap.org:/home/flatcap/backup/bk/ntfs-2.6
into flatcap.org:/home/flatcap/backup/bk/ntfs-2.6-devel
parents
30788d3f
9b9407e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
arch/ppc64/kernel/prom_init.c
arch/ppc64/kernel/prom_init.c
+7
-6
No files found.
arch/ppc64/kernel/prom_init.c
View file @
d6fa5d1a
...
...
@@ -587,19 +587,20 @@ static unsigned long __init prom_next_cell(int s, cell_t **cellp)
static
void
reserve_mem
(
unsigned
long
base
,
unsigned
long
size
)
{
unsigned
long
offset
=
reloc_offset
();
unsigned
long
top
=
base
+
size
;
unsigned
long
cnt
=
RELOC
(
mem_reserve_cnt
);
if
(
!
size
)
if
(
size
==
0
)
return
;
base
=
_ALIGN_DOWN
(
base
,
PAGE_SIZE
);
size
=
_ALIGN_UP
(
size
,
PAGE_SIZE
);
/*
* We need to always keep one empty entry so that we
/* We need to always keep one empty entry so that we
* have our terminator with "size" set to 0 since we are
* dumb and just copy this entire array to the boot params
*/
base
=
_ALIGN_DOWN
(
base
,
PAGE_SIZE
);
top
=
_ALIGN_UP
(
top
,
PAGE_SIZE
);
size
=
top
-
base
;
if
(
cnt
>=
(
MEM_RESERVE_MAP_SIZE
-
1
))
prom_panic
(
"Memory reserve map exhausted !
\n
"
);
RELOC
(
mem_reserve_map
)[
cnt
].
base
=
base
;
...
...
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