Use mainboard_interrupt_handlers everywhere
commit89bbcf4c9b8849687f86a8a31c3bdd02818953f9
authorPatrick Georgi <patrick@georgi-clan.de>
Sun, 23 Sep 2012 16:41:03 +0000 (23 18:41 +0200)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Fri, 5 Oct 2012 20:04:53 +0000 (5 22:04 +0200)
tree5ce3d294bd8012352ad90c309d1695a4deeb903d
parentf3a163a1274de16771ed84d51119457ba3a2881d
Use mainboard_interrupt_handlers everywhere

The previous commit provides a mainboard_interrupt_handlers
implementation YABEL with identical semantics to the
x86emu one, so let's use it in both cases.

This eliminates the need for the int15_install()
indirection, so let's drop that, too.

Generated using the following coccinelle patch and
manual cleanups (empty #if/#endif):
  @@
  type T;
  identifier FUNCARR;
  expression INT, HANDLER;
  @@
  -typedef T yabel_handleIntFunc;
  -extern yabel_handleIntFunc FUNCARR[256];
  -FUNCARR[INT] = HANDLER;
  +mainboard_interrupt_handlers(INT, &HANDLER);

  @@
  @@
  -void int15_install(void)
  -{
  -mainboard_interrupt_handlers(0x15, &int15_handler);
  -}

  @@
  @@
  -void int15_install(void)
  -{
  -mainboard_interrupt_handlers(0x15, &int15_handler); ... mainboard_interrupt_handlers(0x15, &int15_handler);
  -}

  @@
  @@
  -int15_install();
  +mainboard_interrupt_handlers(0x15, &int15_handler);

Change-Id: I70fd780d7ebf1564a2ff7d7148411673f6de113c
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Reviewed-on: http://review.coreboot.org/1559
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
src/mainboard/ibase/mb899/mainboard.c
src/mainboard/intel/emeraldlake2/mainboard.c
src/mainboard/kontron/986lcd-m/mainboard.c
src/mainboard/roda/rk886ex/mainboard.c
src/mainboard/samsung/lumpy/mainboard.c
src/mainboard/samsung/stumpy/mainboard.c
src/mainboard/siemens/sitemp_g1p1/mainboard.c
src/mainboard/thomson/ip1000/mainboard.c