coreboot-kgpe-d16/src/arch/x86/boot
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.c Add acpi_get_sleep_type() to i82371eb and P2B _PTS/_WAK methods 2011-09-12 15:56:12 +02:00
acpigen.c After this has been brought up many times before, rename src/arch/i386 to 2010-12-11 20:33:41 +00:00
boot.c After this has been brought up many times before, rename src/arch/i386 to 2010-12-11 20:33:41 +00:00
coreboot_table.c Add support for memory mapped UARTs to coreboot and add the OXPCIe952 as an 2011-04-26 23:47:04 +00:00
gdt.c After this has been brought up many times before, rename src/arch/i386 to 2010-12-11 20:33:41 +00:00
Makefile.inc Add automatic SMBIOS table generation 2011-08-26 20:08:52 +02:00
mpspec.c mptable: Refactor mptable generation some more 2011-10-13 01:11:08 +02:00
multiboot.c After this has been brought up many times before, rename src/arch/i386 to 2010-12-11 20:33:41 +00:00
pirq_routing.c After this has been brought up many times before, rename src/arch/i386 to 2010-12-11 20:33:41 +00:00
smbios.c Add automatic SMBIOS table generation 2011-08-26 20:08:52 +02:00
tables.c Add automatic SMBIOS table generation 2011-08-26 20:08:52 +02:00
wakeup.S After this has been brought up many times before, rename src/arch/i386 to 2010-12-11 20:33:41 +00:00