summaryrefslogtreecommitdiffstats
path: root/fs/stack.c
diff options
context:
space:
mode:
authoroftedal <oftedal@gmail.com>2011-06-01 13:04:20 +0200
committerDavid S. Miller <davem@davemloft.net>2011-06-08 01:06:33 +0200
commitea160584574e345495e75ee4a7d3a7dbcad9e16c (patch)
tree87c6f45332556a44b55646ce5bc905a001883a95 /fs/stack.c
parentRestructure sun4d_build_device_irq so that timer interrupts can be allocated (diff)
downloadlinux-ea160584574e345495e75ee4a7d3a7dbcad9e16c.tar.xz
linux-ea160584574e345495e75ee4a7d3a7dbcad9e16c.zip
Do not skip interrupt sources in sun4d interrupt handler and acknowledge interrupts correctly
During the introduction of genirq on sparc32 bugs were introduced in the interrupt handler for sun4d. The interrupts handler checks the status of the various sbus interfaces in the system and generates a virtual interrupt, based upon the location of the interrupt source. This lookup was broken by restructuring the code in such a way that index and shift operations were performed prior to comparing this against the values read from the interrupt controllers. This could cause the handler to loop eternally as the interrupt source could be skipped before any check was performed. Additionally sun4d_encode_irq performs shifting internally, so it should not be performed twice. In sun4d_unmask interrupts were not correctly acknowledged, as the corresponding bit it the interrupt mask was not actually cleared. Signed-off-by: Kjetil Oftedal <oftedal@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/stack.c')
0 files changed, 0 insertions, 0 deletions