From eb59636cc5875bac98a949f206e5f8c0462be238 Mon Sep 17 00:00:00 2001 From: Ron Minnich Date: Wed, 11 Apr 2012 10:30:15 -0700 Subject: Add support for aligned allocation Add a memalign function and have malloc use it. Also, change the default alignment for malloc to u64-aligned. Change-Id: I0788637008f5cb5ac801d8bbdc430ca992c98e81 Signed-off-by: Ron Minnich Reviewed-on: http://review.coreboot.org/887 Tested-by: build bot (Jenkins) Reviewed-by: Mathias Krause --- src/include/stdlib.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/include') diff --git a/src/include/stdlib.h b/src/include/stdlib.h index 5465c14f92..bd0ee30774 100644 --- a/src/include/stdlib.h +++ b/src/include/stdlib.h @@ -12,6 +12,7 @@ #define MAX(a,b) ((a) > (b) ? (a) : (b)) #if !defined(__PRE_RAM__) +void *memalign(size_t boundary, size_t size); void *malloc(size_t size); void free(void *ptr); #endif -- cgit v1.2.3