[coreboot] Patch merged into coreboot/master: 3322f8f mptable: Refactor mptable generation some more

gerrit at coreboot.org gerrit at coreboot.org
Thu Oct 13 01:11:12 CEST 2011


the following patch was just integrated into master:
commit 3322f8f5a5ce35ecc5f03ca56f587f1b85b04e78
Author: Patrick Georgi <patrick at georgi-clan.de>
Date:   Fri Oct 7 23:01:55 2011 +0200

    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 at georgi-clan.de>

See http://review.coreboot.org/246 for details.

-gerrit




More information about the coreboot mailing list