diff options
author | Ron Minnich <rminnich@gmail.com> | 2012-04-11 10:30:15 -0700 |
---|---|---|
committer | Patrick Georgi <patrick@georgi-clan.de> | 2012-04-12 08:38:58 +0200 |
commit | eb59636cc5875bac98a949f206e5f8c0462be238 (patch) | |
tree | bf96c66301113572e856eeaafd9809fd8d387344 /src/include | |
parent | 392562263858011ef898e377477124f5f66b1302 (diff) | |
download | coreboot-eb59636cc5875bac98a949f206e5f8c0462be238.tar.gz coreboot-eb59636cc5875bac98a949f206e5f8c0462be238.tar.bz2 coreboot-eb59636cc5875bac98a949f206e5f8c0462be238.zip |
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 <rminnich@gmail.com>
Reviewed-on: http://review.coreboot.org/887
Tested-by: build bot (Jenkins)
Reviewed-by: Mathias Krause <minipli@googlemail.com>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/stdlib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/stdlib.h b/src/include/stdlib.h index 5465c14f925b..bd0ee307743d 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 |