소스 검색

kb9202 board: fix build problem.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Wolfgang Denk 17 년 전
부모
커밋
b83dcc13ae
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      include/configs/kb9202.h

+ 4 - 1
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