config: add CONFIG_PAGE_SIZE and CONFIG_INIT_PAGE_SIZE
This commit is contained in:
@ -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);
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user