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
96ac7f8e
Commit
96ac7f8e
authored
Jun 01, 2002
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: Add CONFIG_CMDLINE, from ppc32
parent
b5e01cf3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
arch/ppc64/config.in
arch/ppc64/config.in
+5
-0
arch/ppc64/kernel/setup.c
arch/ppc64/kernel/setup.c
+6
-1
No files found.
arch/ppc64/config.in
View file @
96ac7f8e
...
@@ -67,6 +67,11 @@ source drivers/parport/Config.in
...
@@ -67,6 +67,11 @@ source drivers/parport/Config.in
if [ "$CONFIG_PPC_ISERIES" != "y" ]; then
if [ "$CONFIG_PPC_ISERIES" != "y" ]; then
bool 'Support for Open Firmware device tree in /proc' CONFIG_PROC_DEVICETREE
bool 'Support for Open Firmware device tree in /proc' CONFIG_PROC_DEVICETREE
bool 'Default bootloader kernel arguments' CONFIG_CMDLINE_BOOL
if [ "$CONFIG_CMDLINE_BOOL" = "y" ] ; then
string 'Initial kernel command string' CONFIG_CMDLINE "console=ttyS0,9600 console=tty0 root=/dev/sda2"
fi
fi
fi
endmenu
endmenu
...
...
arch/ppc64/kernel/setup.c
View file @
96ac7f8e
...
@@ -379,10 +379,15 @@ void parse_cmd_line(unsigned long r3, unsigned long r4, unsigned long r5,
...
@@ -379,10 +379,15 @@ void parse_cmd_line(unsigned long r3, unsigned long r4, unsigned long r5,
#endif
#endif
cmd_line
[
0
]
=
0
;
cmd_line
[
0
]
=
0
;
#ifdef CONFIG_CMDLINE
strcpy
(
cmd_line
,
CONFIG_CMDLINE
);
#endif
/* CONFIG_CMDLINE */
chosen
=
find_devices
(
"chosen"
);
chosen
=
find_devices
(
"chosen"
);
if
(
chosen
!=
NULL
)
{
if
(
chosen
!=
NULL
)
{
p
=
get_property
(
chosen
,
"bootargs"
,
NULL
);
p
=
get_property
(
chosen
,
"bootargs"
,
NULL
);
if
(
p
!=
NULL
)
if
(
p
!=
NULL
&&
p
[
0
]
!=
0
)
strncpy
(
cmd_line
,
p
,
sizeof
(
cmd_line
));
strncpy
(
cmd_line
,
p
,
sizeof
(
cmd_line
));
}
}
cmd_line
[
sizeof
(
cmd_line
)
-
1
]
=
0
;
cmd_line
[
sizeof
(
cmd_line
)
-
1
]
=
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