diff options
author | Patrick Georgi <patrick@georgi-clan.de> | 2013-02-22 20:19:20 +0100 |
---|---|---|
committer | Paul Menzel <paulepanter@users.sourceforge.net> | 2013-02-22 22:38:50 +0100 |
commit | 50f313c8b2cae372d3d3868940c445aeb221ec1e (patch) | |
tree | ab68ed1cbe1a5cda37c42852b922dda7ea324a50 /src/mainboard/google | |
parent | 12781422d5ee2afcfe8da6a3f1b4f6c9d257dec8 (diff) | |
download | coreboot-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')
-rw-r--r-- | src/mainboard/google/butterfly/acpi_tables.c | 2 | ||||
-rw-r--r-- | src/mainboard/google/parrot/acpi_tables.c | 2 |
2 files changed, 2 insertions, 2 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; diff --git a/src/mainboard/google/parrot/acpi_tables.c b/src/mainboard/google/parrot/acpi_tables.c index 8308c01131..45a9948bff 100644 --- a/src/mainboard/google/parrot/acpi_tables.c +++ b/src/mainboard/google/parrot/acpi_tables.c @@ -127,7 +127,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; |