1
0

config: add CONFIG_PAGE_SIZE and CONFIG_INIT_PAGE_SIZE

This commit is contained in:
2013-01-01 23:53:18 -05:00
parent e69440c698
commit 1c75a68815
6 changed files with 17 additions and 16 deletions

View File

@ -55,7 +55,7 @@ int pl110_init(struct fb *f, unsigned int color_depth) {
/* Allocate memory for framebuffer */
fb_size = width * height * (color_depth / 8);
power = log(fb_size) - log(MM_PAGE_SIZE);
power = log(fb_size) - log(CONFIG_PAGE_SIZE);
if ((unsigned int)1<<power < fb_size)
power++;
fr = get_free_frames(power);

View File

@ -57,7 +57,7 @@ int pl111_init_dev(struct fb *f, unsigned int color_depth) {
/* Allocate memory for framebuffer */
fb_size = width * height * (color_depth / 8);
power = log(fb_size) - log(MM_PAGE_SIZE);
power = log(fb_size) - log(CONFIG_PAGE_SIZE);
if ((unsigned int)1<<power < fb_size)
power++;
fr = get_free_frames(power);