diff --git a/common/GNUmakefile b/common/GNUmakefile index f27f7ad4..a38b6191 100644 --- a/common/GNUmakefile +++ b/common/GNUmakefile @@ -70,6 +70,8 @@ override CPPFLAGS_FOR_TARGET := \ -MMD \ -MP +$(call MKESCAPE,$(BUILDDIR))/./flanterm/backends/fb.o: override CPPFLAGS_FOR_TARGET += -DFLANTERM_FB_DISABLE_BUMP_ALLOC + ifeq ($(TARGET),bios) override CFLAGS_FOR_TARGET += \ -fno-PIE \ diff --git a/common/lib/gterm.c b/common/lib/gterm.c index 82b5b229..2078fd99 100644 --- a/common/lib/gterm.c +++ b/common/lib/gterm.c @@ -783,6 +783,7 @@ no_load_font:; generate_canvas(fb); terms[terms_i] = flanterm_fb_init(ext_mem_alloc, + pmm_free, (void *)(uintptr_t)fb->framebuffer_addr, fb->framebuffer_width, fb->framebuffer_height, fb->framebuffer_pitch, bg_canvas,