From 8904a1c1088ed3021468770f1eb6371ab0748913 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Fri, 18 Sep 2015 17:05:14 +0300 Subject: [PATCH] Initialize memory.lfb.start_page, we don't want LFB mapped at 16M. --- dosbox/db_memory.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dosbox/db_memory.cpp b/dosbox/db_memory.cpp index cad04080..0778849a 100644 --- a/dosbox/db_memory.cpp +++ b/dosbox/db_memory.cpp @@ -626,6 +626,10 @@ public: * (Visual C debug mode). We want zeroed memory though. */ memset((void*)MemBase,0,memsize*1024*1024); #endif + + // make sure (unused) lfb is out side of our memory range + memory.lfb.start_page = (128 * 1024 * 1024) / 4096; + memory.pages = (memsize*1024*1024)/4096; /* Allocate the data for the different page information blocks */ memory.phandlers=new PageHandler * [memory.pages]; -- 2.47.3