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
fde3505c
Commit
fde3505c
authored
Apr 03, 2006
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MIPS] Fixup damage done by
22a9835c
.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
9c1f1257
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
arch/mips/mips-boards/generic/memory.c
arch/mips/mips-boards/generic/memory.c
+3
-2
arch/mips/mips-boards/sim/sim_mem.c
arch/mips/mips-boards/sim/sim_mem.c
+3
-2
No files found.
arch/mips/mips-boards/generic/memory.c
View file @
fde3505c
...
...
@@ -22,6 +22,7 @@
#include <linux/init.h>
#include <linux/mm.h>
#include <linux/bootmem.h>
#include <linux/pfn.h>
#include <linux/string.h>
#include <asm/bootinfo.h>
...
...
@@ -104,10 +105,10 @@ struct prom_pmemblock * __init prom_getmdesc(void)
mdesc
[
3
].
type
=
yamon_dontuse
;
mdesc
[
3
].
base
=
0x00100000
;
mdesc
[
3
].
size
=
CPHYSADDR
(
P
AGE
_ALIGN
((
unsigned
long
)
&
_end
))
-
mdesc
[
3
].
base
;
mdesc
[
3
].
size
=
CPHYSADDR
(
P
FN
_ALIGN
((
unsigned
long
)
&
_end
))
-
mdesc
[
3
].
base
;
mdesc
[
4
].
type
=
yamon_free
;
mdesc
[
4
].
base
=
CPHYSADDR
(
P
AGE
_ALIGN
(
&
_end
));
mdesc
[
4
].
base
=
CPHYSADDR
(
P
FN
_ALIGN
(
&
_end
));
mdesc
[
4
].
size
=
memsize
-
mdesc
[
4
].
base
;
return
&
mdesc
[
0
];
...
...
arch/mips/mips-boards/sim/sim_mem.c
View file @
fde3505c
...
...
@@ -18,6 +18,7 @@
#include <linux/init.h>
#include <linux/mm.h>
#include <linux/bootmem.h>
#include <linux/pfn.h>
#include <asm/bootinfo.h>
#include <asm/page.h>
...
...
@@ -59,10 +60,10 @@ struct prom_pmemblock * __init prom_getmdesc(void)
mdesc
[
2
].
type
=
simmem_reserved
;
mdesc
[
2
].
base
=
0x00100000
;
mdesc
[
2
].
size
=
CPHYSADDR
(
P
AGE
_ALIGN
(
&
_end
))
-
mdesc
[
2
].
base
;
mdesc
[
2
].
size
=
CPHYSADDR
(
P
FN
_ALIGN
(
&
_end
))
-
mdesc
[
2
].
base
;
mdesc
[
3
].
type
=
simmem_free
;
mdesc
[
3
].
base
=
CPHYSADDR
(
P
AGE
_ALIGN
(
&
_end
));
mdesc
[
3
].
base
=
CPHYSADDR
(
P
FN
_ALIGN
(
&
_end
));
mdesc
[
3
].
size
=
memsize
-
mdesc
[
3
].
base
;
return
&
mdesc
[
0
];
...
...
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