pxa2xx_timer: separate irq for pxa27x handling
commit4ff927cc62ea79092e21827f17d19a3d85973e84
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Fri, 4 Mar 2011 00:40:59 +0000 (4 03:40 +0300)
committerAndrzej Zaborowski <balrog@zabor.org>
Thu, 10 Mar 2011 01:46:21 +0000 (10 02:46 +0100)
tree273263209706eeb8521bad6657d0bdaa3a06d385
parent07bf23a77131668ef8db37e08d508b117655ce86
pxa2xx_timer: separate irq for pxa27x handling

First, sysbus_init_irq shan't be called on on-stack variables. Indeed,
it only stores a passed pointer in qdev and the stored irq is later
populated, so we get a nice write-to-stack bug.
Second, irq for pxa27x should probably be handled in a more gentler way,
as we should check if we have events to raise this irq.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
hw/pxa2xx_timer.c