summaryrefslogtreecommitdiff
path: root/src/mainboard/google/butterfly
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi-clan.de>2013-02-22 20:19:20 +0100
committerPaul Menzel <paulepanter@users.sourceforge.net>2013-02-22 22:38:50 +0100
commit50f313c8b2cae372d3d3868940c445aeb221ec1e (patch)
treeab68ed1cbe1a5cda37c42852b922dda7ea324a50 /src/mainboard/google/butterfly
parent12781422d5ee2afcfe8da6a3f1b4f6c9d257dec8 (diff)
downloadcoreboot-50f313c8b2cae372d3d3868940c445aeb221ec1e.tar.xz
*/acpi_tables.c: Use ALIGN macro
At the request of Paul Menzel, I reran an old classic of a coccinelle script: @@ expression E; @@ -(E + 7) & -8 +ALIGN(E, 8) @@ expression E; @@ -(E + 15) & -16 +ALIGN(E, 16) Change-Id: I01da31b241585e361380f75aacf3deddb13d11c3 Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/2487 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martin.roth@se-eng.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/mainboard/google/butterfly')
-rw-r--r--src/mainboard/google/butterfly/acpi_tables.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainboard/google/butterfly/acpi_tables.c b/src/mainboard/google/butterfly/acpi_tables.c
index ca4f949366..95b45db802 100644
--- a/src/mainboard/google/butterfly/acpi_tables.c
+++ b/src/mainboard/google/butterfly/acpi_tables.c
@@ -130,7 +130,7 @@ unsigned long acpi_fill_srat(unsigned long current)
return current;
}
-#define ALIGN_CURRENT current = ((current + 0x0f) & -0x10)
+#define ALIGN_CURRENT current = (ALIGN(current, 16))
unsigned long write_acpi_tables(unsigned long start)
{
unsigned long current;