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
7ba183e8
Commit
7ba183e8
authored
Jan 30, 2005
by
Len Brown
Committed by
Len Brown
Jan 30, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ACPI] tell parse_cmdline_early() that "pnpacpi=off" != "acpi=off"
Signed-off-by:
Len Brown
<
len.brown@intel.com
>
parent
43b2bf3e
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 @
7ba183e8
...
...
@@ -672,6 +672,8 @@ static void __init parse_cmdline_early (char ** cmdline_p)
saved_command_line
[
COMMAND_LINE_SIZE
-
1
]
=
'\0'
;
for
(;;)
{
if
(
c
!=
' '
)
goto
next_char
;
/*
* "mem=nopentium" disables the 4MB page tables.
* "mem=XXX[kKmM]" defines a memory region from HIGH_MEM
...
...
@@ -682,7 +684,7 @@ static void __init parse_cmdline_early (char ** cmdline_p)
* HPA tells me bootloaders need to parse mem=, so no new
* 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
)
to
--
;
if
(
!
memcmp
(
from
+
4
,
"nopentium"
,
9
))
{
...
...
@@ -704,7 +706,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
)
to
--
;
if
(
!
memcmp
(
from
+
7
,
"exactmap"
,
8
))
{
...
...
@@ -812,7 +814,7 @@ static void __init parse_cmdline_early (char ** cmdline_p)
* This works even on boxes that have no highmem otherwise.
* 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
;
/*
...
...
@@ -820,9 +822,10 @@ static void __init parse_cmdline_early (char ** cmdline_p)
* bytes. This can be used to increase (or decrease) the
* vmalloc area - the default is 128m.
*/
if
(
c
==
' '
&&
!
memcmp
(
from
,
"vmalloc="
,
8
))
else
if
(
!
memcmp
(
from
,
"vmalloc="
,
8
))
__VMALLOC_RESERVE
=
memparse
(
from
+
8
,
&
from
);
next_char:
c
=
*
(
from
++
);
if
(
!
c
)
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