From 79e532560c63d5ea095aaeb218443964bbceccae Mon Sep 17 00:00:00 2001 From: Rudolf Marek Date: Tue, 23 Dec 2008 17:34:15 +0000 Subject: 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 Acked-by: Myles Watson git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3840 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/include/stdlib.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/include/stdlib.h') diff --git a/src/include/stdlib.h b/src/include/stdlib.h index e2b37e6fe9..c3052bd209 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)) -- cgit v1.2.3