u-boot-brain/arch/x86
Sebastien Ronsse 07570e7097 x86: Fix out of bounds irq handlers access
Using coreboot-x86_defconfig, the following error occurred prior to this modification:
CC	arch/x86/lib/interrupts
arch/x86/lib/interrupts.c: In function ‘do_irqinfo’:
arch/x86/lib/interrupts.c:134:24: error: iteration 16u invokes undefined behavior [-Werror=aggressive-loop-optimizations]
   if (irq_handlers[irq].handler != NULL) {
                        ^
arch/x86/lib/interrupts.c:133:2: note: containing loop
  for (irq = 0; irq <= CONFIG_SYS_NUM_IRQS; irq++) {
  ^
cc1: all warnings being treated as errors
scripts/Makefile.build:275: recipe for target 'arch/x86/lib/interrupts.o' failed
make[1]: *** [arch/x86/lib/interrupts.o] Error 1
Makefile:1093: recipe for target 'arch/x86/lib' failed
make: *** [arch/x86/lib] Error 2

Change-Id: I3572a822081b72ab760f1eb99442e1161d3d167e
Signed-off-by: Sebastien Ronsse <sronsse@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
2015-01-23 17:24:54 -07:00
..
cpu x86: coreboot: Configure pci memory regions 2015-01-13 07:25:05 -08:00
dts x86: Make chromebook_link the default board for coreboot 2015-01-13 07:25:04 -08:00
include/asm x86: Support ROMs on other archs 2015-01-23 17:24:15 -07:00
lib x86: Fix out of bounds irq handlers access 2015-01-23 17:24:54 -07:00
config.mk x86: Remove REALMODE_BASE which is no longer used 2014-11-21 07:24:08 +01:00
Kconfig x86: coreboot: Move coreboot-specific defines from coreboot.h to Kconfig 2015-01-13 07:25:03 -08:00
Makefile Kbuild: introduce Makefile in arch/$ARCH/ 2014-12-08 09:35:45 -05:00