Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 10974
b: refs/heads/master
c: 925ddb0
h: refs/heads/master
v: v3
  • Loading branch information
Maciej W. Rozycki authored and Ralf Baechle committed Oct 29, 2005
1 parent b4dbd52 commit dd4817b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 38b18f72587422450bd01695b471b3ae2ff4b169
refs/heads/master: 925ddb04c5eee5668e7229c71580d458ed61eb9b
7 changes: 6 additions & 1 deletion trunk/arch/mips/kernel/irq_cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* Author: Jun Sun, jsun@mvista.com or jsun@junsun.net
*
* Copyright (C) 2001 Ralf Baechle
* Copyright (C) 2005 MIPS Technologies, Inc. All rights reserved.
* Author: Maciej W. Rozycki <macro@mips.com>
*
* This file define the irq handler for MIPS CPU interrupts.
*
Expand Down Expand Up @@ -37,7 +39,6 @@ static int mips_cpu_irq_base;

static inline void unmask_mips_irq(unsigned int irq)
{
clear_c0_cause(0x100 << (irq - mips_cpu_irq_base));
set_c0_status(0x100 << (irq - mips_cpu_irq_base));
}

Expand Down Expand Up @@ -107,6 +108,10 @@ void __init mips_cpu_irq_init(int irq_base)
{
int i;

/* Mask interrupts. */
clear_c0_status(ST0_IM);
clear_c0_cause(CAUSEF_IP);

for (i = irq_base; i < irq_base + 8; i++) {
irq_desc[i].status = IRQ_DISABLED;
irq_desc[i].action = NULL;
Expand Down

0 comments on commit dd4817b

Please sign in to comment.