coreboot-kgpe-d16/src/mainboard/asus/p2b-ds
Patrick Georgi b0a9c5ccf3 mptable: Refactor mptable generation some more
The last couple of lines of every mptable function were mostly
identical. Refactor into common code, a new function mptable_finalize.

Coccinelle script:
  @@
  identifier mc;
  @@
  (
  -mc->mpe_checksum = smp_compute_checksum(smp_next_mpc_entry(mc), mc->mpe_length);
  -mc->mpc_checksum = smp_compute_checksum(mc, mc->mpc_length);
  -printk(BIOS_DEBUG, "Wrote the mp table end at: %p - %p\n", mc, smp_next_mpe_entry(mc));
  -return smp_next_mpe_entry(mc);
  +return mptable_finalize(mc);
  |
  -mc->mpe_checksum = smp_compute_checksum(smp_next_mpc_entry(mc), mc->mpe_length);
  -mc->mpc_checksum = smp_compute_checksum(mc, mc->mpc_length);
  -return smp_next_mpe_entry(mc);
  +return mptable_finalize(mc);
  )

Change-Id: Ib2270d800bdd486c5eb49b328544d36bd2298c9e
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Reviewed-on: http://review.coreboot.org/246
Tested-by: build bot (Jenkins)
Reviewed-by: Marc Jones <marcj303@gmail.com>
2011-10-13 01:11:08 +02:00
..
chip.h Carl-Daniel's part: 2009-02-18 20:41:57 +00:00
devicetree.cb Mptable related fixes for ASUS P2B-DS. 2010-10-30 21:27:13 +00:00
irq_tables.c Cut the crap. 2010-09-21 21:16:27 +00:00
Kconfig Mptable related fixes for ASUS P2B-DS. 2010-10-30 21:27:13 +00:00
mainboard.c Carl-Daniel's part: 2009-02-18 20:41:57 +00:00
mptable.c mptable: Refactor mptable generation some more 2011-10-13 01:11:08 +02:00
romstage.c run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00