]> rtime.felk.cvut.cz Git - jailhouse.git/commit
arm: Fix spi_in_cell for SPIs 32..63
authorJan Kiszka <jan.kiszka@siemens.com>
Sat, 7 Feb 2015 10:33:58 +0000 (11:33 +0100)
committerJan Kiszka <jan.kiszka@siemens.com>
Sat, 7 Feb 2015 10:33:58 +0000 (11:33 +0100)
commitdd3ef73c56c3fe0c8e459a549d720492560ae00f
treed4a79cb24b47155e497a417ffbf71053f1ccf924
parenteb6aa547add6b145b271f985d5b617de87a5557a
arm: Fix spi_in_cell for SPIs 32..63

The cell configuration format restricts us to 64 SPIs this far. Make
sure that we properly test the range of 32 to 63 and avoid overflows due
to 32-bit word width. As Jailhouse provides no __aeabi_llsr, extract
high and low words first, then scan within 32 bits.

This addresses Coverity finding CID 21110.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
hypervisor/arch/arm/include/asm/irqchip.h