Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 35966
b: refs/heads/master
c: 35d534a
h: refs/heads/master
v: v3
  • Loading branch information
Matthew Garrett authored and Andi Kleen committed Sep 26, 2006
1 parent 565a25a commit b990cec
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 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: f354b3a92af9b132b188b9c8ebbfb74de699926d
refs/heads/master: 35d534a3ff4905c0a7bddbad0fc9df55967742c7
6 changes: 5 additions & 1 deletion trunk/arch/i386/kernel/i8259.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ static void end_8259A_irq (unsigned int irq)

#define shutdown_8259A_irq disable_8259A_irq

static int i8259A_auto_eoi;

static void mask_and_ack_8259A(unsigned int);

unsigned int startup_8259A_irq(unsigned int irq)
Expand Down Expand Up @@ -253,7 +255,7 @@ static void save_ELCR(char *trigger)

static int i8259A_resume(struct sys_device *dev)
{
init_8259A(0);
init_8259A(i8259A_auto_eoi);
restore_ELCR(irq_trigger);
return 0;
}
Expand Down Expand Up @@ -301,6 +303,8 @@ void init_8259A(int auto_eoi)
{
unsigned long flags;

i8259A_auto_eoi = auto_eoi;

spin_lock_irqsave(&i8259A_lock, flags);

outb(0xff, PIC_MASTER_IMR); /* mask all of 8259A-1 */
Expand Down
6 changes: 5 additions & 1 deletion trunk/arch/x86_64/kernel/i8259.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ void (*interrupt[NR_IRQS])(void) = {

DEFINE_SPINLOCK(i8259A_lock);

static int i8259A_auto_eoi;

static void end_8259A_irq (unsigned int irq)
{
if (irq > 256) {
Expand Down Expand Up @@ -336,6 +338,8 @@ void init_8259A(int auto_eoi)
{
unsigned long flags;

i8259A_auto_eoi = auto_eoi;

spin_lock_irqsave(&i8259A_lock, flags);

outb(0xff, 0x21); /* mask all of 8259A-1 */
Expand Down Expand Up @@ -394,7 +398,7 @@ static void save_ELCR(char *trigger)

static int i8259A_resume(struct sys_device *dev)
{
init_8259A(0);
init_8259A(i8259A_auto_eoi);
restore_ELCR(irq_trigger);
return 0;
}
Expand Down

0 comments on commit b990cec

Please sign in to comment.