summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cpu/amd/car/post_cache_as_ram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/amd/car/post_cache_as_ram.c b/src/cpu/amd/car/post_cache_as_ram.c
index 18e7542e6d..f49c6765c6 100644
--- a/src/cpu/amd/car/post_cache_as_ram.c
+++ b/src/cpu/amd/car/post_cache_as_ram.c
@@ -45,7 +45,7 @@
static size_t backup_size(void)
{
size_t car_size = car_data_size();
- return ALIGN(car_size + 1024, 1024);
+ return ALIGN_UP(car_size + 1024, 1024);
}
static void memcpy_(void *d, const void *s, size_t len)