the following patch was just integrated into master:
commit 3322f8f5a5ce35ecc5f03ca56f587f1b85b04e78
Author: Patrick Georgi <[email protected]>
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 <[email protected]>

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

-gerrit

-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to