coreboot-kgpe-d16/src/mainboard/technexion/tim8690
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
..
acpi Deduplicate various ACPI .asl files. 2010-12-09 12:39:48 +00:00
acpi_tables.c second round name simplification. drop the <component>_ prefix. 2010-12-08 07:07:33 +00:00
chip.h Remove unused mainboard_config definitions. Trivial. 2010-08-26 18:24:04 +00:00
cmos.layout Replace dual_core and quad_core CMOS (nvram) options with multi_core. Fix some white space. 2010-04-08 15:06:44 +00:00
devicetree.cb Use subsystem id from devicetree.cb instead of Kconfig and move 2011-03-01 19:58:47 +00:00
dsdt.asl After this has been brought up many times before, rename src/arch/i386 to 2010-12-11 20:33:41 +00:00
fadt.c Running a checked build of Windows is needed for understanding its various BIOS related BSODs. Win7 checked build complains when running coreboot+seabios: 2010-10-24 16:22:11 +00:00
get_bus_conf.c Convert boards to use mptable_write_buses. 2010-11-21 14:40:09 +00:00
irq_tables.c Convert boards to use mptable_write_buses. 2010-11-21 14:40:09 +00:00
Kconfig Use subsystem id from devicetree.cb instead of Kconfig and move 2011-03-01 19:58:47 +00:00
mainboard.c Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
mptable.c mptable: Refactor mptable generation some more 2011-10-13 01:11:08 +02:00
resourcemap.c
romstage.c run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00