summaryrefslogtreecommitdiffstats
path: root/src/include/stdlib.h
diff options
context:
space:
mode:
authorRudolf Marek <r.marek@assembler.cz>2008-12-23 17:34:15 +0000
committerRudolf Marek <r.marek@assembler.cz>2008-12-23 17:34:15 +0000
commit79e532560c63d5ea095aaeb218443964bbceccae (patch)
treeed92a7ff038852caac5552f034e9f3211fe3407f /src/include/stdlib.h
parent33f9633184ddc84151ab3685725d13448cdec232 (diff)
downloadcoreboot-79e532560c63d5ea095aaeb218443964bbceccae.tar.gz
coreboot-79e532560c63d5ea095aaeb218443964bbceccae.tar.bz2
coreboot-79e532560c63d5ea095aaeb218443964bbceccae.zip
The attached patch adds missing bits to ACPI to make Windows XP and Windows Vista happy.
The FADT bootarch flags Blacklists MSI for this chipset (maybe not needed) Adds modified amdk8_util.asl Adds the SSDT table to chain of tables Aligns the FACS correctly (this should be done for other boards) Adds the _CRS method to Asus M2V-MX SE acpi DSDT. Fixes the FACS table length. Signed-off-by: Rudolf Marek <r.marek@assembler.cz> Acked-by: Myles Watson <mylesgw@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3840 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/include/stdlib.h')
-rw-r--r--src/include/stdlib.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/stdlib.h b/src/include/stdlib.h
index e2b37e6fe9c7..c3052bd20900 100644
--- a/src/include/stdlib.h
+++ b/src/include/stdlib.h
@@ -5,6 +5,9 @@
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
+#define ALIGN(x,a) __ALIGN_MASK(x,(typeof(x))(a)-1)
+#define __ALIGN_MASK(x,mask) (((x)+(mask))&~(mask))
+
#define MIN(a,b) ((a) < (b) ? (a) : (b))
#define MAX(a,b) ((a) > (b) ? (a) : (b))