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
6b14a7b9
Commit
6b14a7b9
authored
Feb 06, 2004
by
Benjamin Herrenschmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc32: Fix parsing of Open Firmware interrupt tree on G5
parent
9404124b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
arch/ppc/syslib/prom.c
arch/ppc/syslib/prom.c
+14
-3
No files found.
arch/ppc/syslib/prom.c
View file @
6b14a7b9
...
...
@@ -160,7 +160,7 @@ finish_device_tree(void)
match on /chosen.interrupt_controller */
if
((
name
!=
NULL
&&
strcmp
(
name
,
"interrupt-controller"
)
==
0
)
||
(
ic
!=
NULL
&&
iclen
==
0
))
{
||
(
ic
!=
NULL
&&
iclen
==
0
&&
strcmp
(
name
,
"AppleKiwi"
)
))
{
if
(
n
==
0
)
dflt_interrupt_controller
=
np
;
++
n
;
...
...
@@ -217,7 +217,7 @@ finish_node(struct device_node *np, unsigned long mem_start,
ifunc
=
interpret_macio_props
;
else
if
(
!
strcmp
(
np
->
type
,
"isa"
))
ifunc
=
interpret_isa_props
;
else
if
(
!
strcmp
(
np
->
name
,
"uni-n"
))
else
if
(
!
strcmp
(
np
->
name
,
"uni-n"
)
||
!
strcmp
(
np
->
name
,
"u3"
)
)
ifunc
=
interpret_root_props
;
else
if
(
!
((
ifunc
==
interpret_dbdma_props
||
ifunc
==
interpret_macio_props
)
...
...
@@ -431,10 +431,21 @@ finish_node_interrupts(struct device_node *np, unsigned long mem_start)
* This doesn't cope with the general case of multiple
* cascaded interrupt controllers, but then neither will
* irq.c at the moment either. -- paulus
* The G5 triggers that code, I add a machine test. On
* those machines, we want to offset interrupts from the
* second openpic by 128 -- BenH
*/
if
(
num_interrupt_controllers
>
1
&&
ic
!=
NULL
if
(
_machine
!=
_MACH_Pmac
&&
num_interrupt_controllers
>
1
&&
ic
!=
NULL
&&
get_property
(
ic
,
"interrupt-parent"
,
NULL
)
==
NULL
)
offset
=
16
;
else
if
(
_machine
==
_MACH_Pmac
&&
num_interrupt_controllers
>
1
&&
ic
!=
NULL
&&
ic
->
parent
!=
NULL
)
{
char
*
name
=
get_property
(
ic
->
parent
,
"name"
,
NULL
);
if
(
name
&&
!
strcmp
(
name
,
"u3"
))
offset
=
128
;
}
np
->
intrs
[
i
].
line
=
irq
[
0
]
+
offset
;
if
(
n
>
1
)
np
->
intrs
[
i
].
sense
=
irq
[
1
];
...
...
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