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
b372b57d
Commit
b372b57d
authored
Jun 28, 2003
by
Tom 'spot' Callaway
Committed by
David S. Miller
Jun 28, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Fix OBP version parsing on newer systems.
parent
f727aff5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
arch/sparc64/prom/init.c
arch/sparc64/prom/init.c
+14
-3
No files found.
arch/sparc64/prom/init.c
View file @
b372b57d
...
...
@@ -36,6 +36,7 @@ void __init prom_init(void *cif_handler, void *cif_stack)
int
ints
[
3
];
int
node
;
int
i
=
0
;
int
bufferadj
;
prom_vers
=
PROM_P1275
;
...
...
@@ -63,9 +64,19 @@ void __init prom_init(void *cif_handler, void *cif_stack)
if
(
strncmp
(
buffer
,
"OBP "
,
4
))
goto
strange_version
;
/* Version field is expected to be 'OBP xx.yy.zz date...' */
/*
* Version field is expected to be 'OBP xx.yy.zz date...'
* However, Sun can't stick to this format very well, so
* we need to check for 'OBP xx.yy.zz date...' and adjust
* accordingly. -spot
*/
p
=
buffer
+
4
;
if
(
strncmp
(
buffer
,
"OBP "
,
5
))
bufadjust
=
4
;
else
bufadjust
=
5
;
p
=
buffer
+
bufadjust
;
while
(
p
&&
isdigit
(
*
p
)
&&
i
<
3
)
{
ints
[
i
++
]
=
simple_strtoul
(
p
,
NULL
,
0
);
if
((
p
=
strchr
(
p
,
'.'
))
!=
NULL
)
...
...
@@ -77,7 +88,7 @@ void __init prom_init(void *cif_handler, void *cif_stack)
prom_rev
=
ints
[
1
];
prom_prev
=
(
ints
[
0
]
<<
16
)
|
(
ints
[
1
]
<<
8
)
|
ints
[
2
];
printk
(
"PROMLIB: Sun IEEE Boot Prom %s
\n
"
,
buffer
+
4
);
printk
(
"PROMLIB: Sun IEEE Boot Prom %s
\n
"
,
buffer
+
bufadjust
);
prom_meminit
();
...
...
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