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
15aeae37
Commit
15aeae37
authored
Dec 05, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC]: Fix dependency on previous NR_IRQS value.
parent
cc7aad69
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
arch/sparc/kernel/irq.c
arch/sparc/kernel/irq.c
+4
-4
arch/sparc/kernel/sun4c_irq.c
arch/sparc/kernel/sun4c_irq.c
+2
-2
No files found.
arch/sparc/kernel/irq.c
View file @
15aeae37
...
...
@@ -152,7 +152,7 @@ void free_irq(unsigned int irq, void *dev_id)
return
sun4d_free_irq
(
irq
,
dev_id
);
}
cpu_irq
=
irq
&
NR_IRQS
;
cpu_irq
=
irq
&
(
NR_IRQS
-
1
)
;
action
=
*
(
cpu_irq
+
irq_action
);
if
(
cpu_irq
>
14
)
{
/* 14 irq levels on the sparc */
printk
(
"Trying to free bogus IRQ %d
\n
"
,
irq
);
...
...
@@ -391,7 +391,7 @@ void unexpected_irq(int irq, void *dev_id, struct pt_regs * regs)
struct
irqaction
*
action
;
unsigned
int
cpu_irq
;
cpu_irq
=
irq
&
NR_IRQS
;
cpu_irq
=
irq
&
(
NR_IRQS
-
1
)
;
action
=
*
(
cpu_irq
+
irq_action
);
printk
(
"IO device interrupt, irq = %d
\n
"
,
irq
);
...
...
@@ -469,7 +469,7 @@ int request_fast_irq(unsigned int irq,
extern
struct
tt_entry
trapbase_cpu1
,
trapbase_cpu2
,
trapbase_cpu3
;
#endif
cpu_irq
=
irq
&
NR_IRQS
;
cpu_irq
=
irq
&
(
NR_IRQS
-
1
)
;
if
(
cpu_irq
>
14
)
return
-
EINVAL
;
if
(
!
handler
)
...
...
@@ -559,7 +559,7 @@ int request_irq(unsigned int irq,
unsigned
long
,
const
char
*
,
void
*
);
return
sun4d_request_irq
(
irq
,
handler
,
irqflags
,
devname
,
dev_id
);
}
cpu_irq
=
irq
&
NR_IRQS
;
cpu_irq
=
irq
&
(
NR_IRQS
-
1
)
;
if
(
cpu_irq
>
14
)
return
-
EINVAL
;
...
...
arch/sparc/kernel/sun4c_irq.c
View file @
15aeae37
...
...
@@ -57,7 +57,7 @@ static void sun4c_disable_irq(unsigned int irq_nr)
unsigned
char
current_mask
,
new_mask
;
save_and_cli
(
flags
);
irq_nr
&=
NR_IRQS
;
irq_nr
&=
(
NR_IRQS
-
1
)
;
current_mask
=
*
interrupt_enable
;
switch
(
irq_nr
)
{
case
1
:
...
...
@@ -86,7 +86,7 @@ static void sun4c_enable_irq(unsigned int irq_nr)
unsigned
char
current_mask
,
new_mask
;
save_and_cli
(
flags
);
irq_nr
&=
NR_IRQS
;
irq_nr
&=
(
NR_IRQS
-
1
)
;
current_mask
=
*
interrupt_enable
;
switch
(
irq_nr
)
{
case
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