coreboot-kgpe-d16/src
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
..
arch/x86 mptable: Refactor mptable generation some more 2011-10-13 01:11:08 +02:00
boot more ifdef -> if fixes. 2011-04-21 21:26:58 +00:00
console Add support for the tracing infastructure in coreboot. 2011-09-07 01:26:47 +02:00
cpu Fixed broken MTRR for >4GB memory on AMD K8 fam 0fh rev <=E 2011-10-11 08:49:59 +02:00
devices more ifdef -> if fixes 2011-04-21 20:45:45 +00:00
drivers Add support for memory mapped UARTs to coreboot and add the OXPCIe952 as an 2011-04-26 23:47:04 +00:00
ec Lenovo H8: Always clear audio mute 2011-08-19 14:17:06 +02:00
include SB800: Sata Enable bus master and enable ahci for AHCI/RAID mode 2011-10-12 07:43:48 +02:00
lib Add acpi_get_sleep_type() to i82371eb and P2B _PTS/_WAK methods 2011-09-12 15:56:12 +02:00
mainboard mptable: Refactor mptable generation some more 2011-10-13 01:11:08 +02:00
northbridge amdk8: ASL include for K8 temperature sensor support in ACPI 2011-10-12 07:54:25 +02:00
pc80 X60: trigger save cmos on volume/brightness change 2011-06-15 08:51:18 +02:00
southbridge SB800 RAID: add kconfig option RAID_MISC_ROM_POSITION 2011-10-12 07:45:09 +02:00
superio w83627hf: ASL include containing virtual device tree of the SuperIO 2011-10-12 07:56:29 +02:00
vendorcode sb800: sata combine mode configure fix 2011-10-11 08:07:21 +02:00
Kconfig Add support for the tracing infastructure in coreboot. 2011-09-07 01:26:47 +02:00
Kconfig.deprecated_options some ifdef --> if fixes 2011-04-21 20:24:43 +00:00