[coreboot] Patch merged into coreboot/master: eae1696 mptable: Get rid of fixup_virtual_wire

gerrit at coreboot.org gerrit at coreboot.org
Thu Oct 13 01:10:48 CEST 2011


the following patch was just integrated into master:
commit eae1696809d6e6834d08ef22aa08c8f200870c59
Author: Patrick Georgi <patrick at georgi-clan.de>
Date:   Fri Oct 7 22:41:07 2011 +0200

    mptable: Get rid of fixup_virtual_wire
    
    As stated in some code files, fixup_virtual_wire was established
    to avoid touching 200 invocations of the mptable code.
    
    Let Coccinelle do it:
      @@
      type T;
      identifier v;
      @@
      -void fixup_virtual_wire(T v)
      -{ ... }
    
      @@
      expression A;
      identifier v;
      @@
      -v = smp_write_floating_table(A);
      +v = smp_write_floating_table(A, 0);
    
      @@
      expression A;
      identifier v;
      @@
      -v = smp_write_floating_table(A, 0);
      -fixup_virtual_wire(v);
      +v = smp_write_floating_table(A, 1);
    
    Change-Id: Icad8a063380bf4726be7cebb414d13b574112b14
    Signed-off-by: Patrick Georgi <patrick at georgi-clan.de>

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

-gerrit




More information about the coreboot mailing list