Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96295
b: refs/heads/master
c: 4370fe1
h: refs/heads/master
i:
  96293: be3591b
  96291: b81c6a8
  96287: 4e8621c
v: v3
  • Loading branch information
Magnus Damm authored and Paul Mundt committed May 8, 2008
1 parent 12e54e0 commit 328e2f0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 720be99006c5830970d5b62633c92b29e4cef137
refs/heads/master: 4370fe1c06ffa251b63b12a41e2599037a4b7f87
9 changes: 9 additions & 0 deletions trunk/arch/sh/kernel/cpu/irq/intc.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,17 +101,26 @@ static void write_32(unsigned long addr, unsigned long h, unsigned long data)

static void modify_8(unsigned long addr, unsigned long h, unsigned long data)
{
unsigned long flags;
local_irq_save(flags);
ctrl_outb(set_field(ctrl_inb(addr), data, h), addr);
local_irq_restore(flags);
}

static void modify_16(unsigned long addr, unsigned long h, unsigned long data)
{
unsigned long flags;
local_irq_save(flags);
ctrl_outw(set_field(ctrl_inw(addr), data, h), addr);
local_irq_restore(flags);
}

static void modify_32(unsigned long addr, unsigned long h, unsigned long data)
{
unsigned long flags;
local_irq_save(flags);
ctrl_outl(set_field(ctrl_inl(addr), data, h), addr);
local_irq_restore(flags);
}

enum { REG_FN_ERR = 0, REG_FN_WRITE_BASE = 1, REG_FN_MODIFY_BASE = 5 };
Expand Down

0 comments on commit 328e2f0

Please sign in to comment.