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
9c7e40ba
Commit
9c7e40ba
authored
Jan 30, 2005
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge intel.com:/home/lenb/src/26-stable-dev
into intel.com:/home/lenb/src/26-latest-dev
parents
872898de
7ba183e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
arch/i386/kernel/setup.c
arch/i386/kernel/setup.c
+7
-4
No files found.
arch/i386/kernel/setup.c
View file @
9c7e40ba
...
@@ -675,6 +675,8 @@ static void __init parse_cmdline_early (char ** cmdline_p)
...
@@ -675,6 +675,8 @@ static void __init parse_cmdline_early (char ** cmdline_p)
saved_command_line
[
COMMAND_LINE_SIZE
-
1
]
=
'\0'
;
saved_command_line
[
COMMAND_LINE_SIZE
-
1
]
=
'\0'
;
for
(;;)
{
for
(;;)
{
if
(
c
!=
' '
)
goto
next_char
;
/*
/*
* "mem=nopentium" disables the 4MB page tables.
* "mem=nopentium" disables the 4MB page tables.
* "mem=XXX[kKmM]" defines a memory region from HIGH_MEM
* "mem=XXX[kKmM]" defines a memory region from HIGH_MEM
...
@@ -685,7 +687,7 @@ static void __init parse_cmdline_early (char ** cmdline_p)
...
@@ -685,7 +687,7 @@ static void __init parse_cmdline_early (char ** cmdline_p)
* HPA tells me bootloaders need to parse mem=, so no new
* HPA tells me bootloaders need to parse mem=, so no new
* option should be mem= [also see Documentation/i386/boot.txt]
* option should be mem= [also see Documentation/i386/boot.txt]
*/
*/
if
(
c
==
' '
&&
!
memcmp
(
from
,
"mem="
,
4
))
{
if
(
!
memcmp
(
from
,
"mem="
,
4
))
{
if
(
to
!=
command_line
)
if
(
to
!=
command_line
)
to
--
;
to
--
;
if
(
!
memcmp
(
from
+
4
,
"nopentium"
,
9
))
{
if
(
!
memcmp
(
from
+
4
,
"nopentium"
,
9
))
{
...
@@ -707,7 +709,7 @@ static void __init parse_cmdline_early (char ** cmdline_p)
...
@@ -707,7 +709,7 @@ static void __init parse_cmdline_early (char ** cmdline_p)
}
}
}
}
if
(
c
==
' '
&&
!
memcmp
(
from
,
"memmap="
,
7
))
{
else
if
(
!
memcmp
(
from
,
"memmap="
,
7
))
{
if
(
to
!=
command_line
)
if
(
to
!=
command_line
)
to
--
;
to
--
;
if
(
!
memcmp
(
from
+
7
,
"exactmap"
,
8
))
{
if
(
!
memcmp
(
from
+
7
,
"exactmap"
,
8
))
{
...
@@ -819,7 +821,7 @@ static void __init parse_cmdline_early (char ** cmdline_p)
...
@@ -819,7 +821,7 @@ static void __init parse_cmdline_early (char ** cmdline_p)
* This works even on boxes that have no highmem otherwise.
* This works even on boxes that have no highmem otherwise.
* This also works to reduce highmem size on bigger boxes.
* This also works to reduce highmem size on bigger boxes.
*/
*/
if
(
c
==
' '
&&
!
memcmp
(
from
,
"highmem="
,
8
))
else
if
(
!
memcmp
(
from
,
"highmem="
,
8
))
highmem_pages
=
memparse
(
from
+
8
,
&
from
)
>>
PAGE_SHIFT
;
highmem_pages
=
memparse
(
from
+
8
,
&
from
)
>>
PAGE_SHIFT
;
/*
/*
...
@@ -827,9 +829,10 @@ static void __init parse_cmdline_early (char ** cmdline_p)
...
@@ -827,9 +829,10 @@ static void __init parse_cmdline_early (char ** cmdline_p)
* bytes. This can be used to increase (or decrease) the
* bytes. This can be used to increase (or decrease) the
* vmalloc area - the default is 128m.
* vmalloc area - the default is 128m.
*/
*/
if
(
c
==
' '
&&
!
memcmp
(
from
,
"vmalloc="
,
8
))
else
if
(
!
memcmp
(
from
,
"vmalloc="
,
8
))
__VMALLOC_RESERVE
=
memparse
(
from
+
8
,
&
from
);
__VMALLOC_RESERVE
=
memparse
(
from
+
8
,
&
from
);
next_char:
c
=
*
(
from
++
);
c
=
*
(
from
++
);
if
(
!
c
)
if
(
!
c
)
break
;
break
;
...
...
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