From: Wolfgang Denk Date: Sun, 4 May 2008 19:34:23 +0000 (+0200) Subject: kb9202 board: fix build problem. X-Git-Tag: v1.3.3~49 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b83dcc13ae7b2dab394bfef6f699750d11490ee2;p=u-boot kb9202 board: fix build problem. Signed-off-by: Wolfgang Denk --- diff --git a/include/configs/kb9202.h b/include/configs/kb9202.h index 75d9c3b3b4..7dcce836eb 100644 --- a/include/configs/kb9202.h +++ b/include/configs/kb9202.h @@ -54,10 +54,13 @@ #define CFG_LONGHELP +#ifndef roundup +#define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y)) +#endif /* * Size of malloc() pool */ -#define CFG_MALLOC_LEN (CFG_ENV_SIZE + 128*1024) +#define CFG_MALLOC_LEN (roundup(CFG_ENV_SIZE,4096) + 128*1024) #define CFG_GBL_DATA_SIZE 128 /* size in bytes reserved for initial data */ #define CONFIG_BAUDRATE 115200