From: Toni Wilen Date: Fri, 18 Sep 2015 14:05:14 +0000 (+0300) Subject: Initialize memory.lfb.start_page, we don't want LFB mapped at 16M. X-Git-Tag: 3200~68 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=8904a1c1088ed3021468770f1eb6371ab0748913;p=francis%2Fwinuae.git Initialize memory.lfb.start_page, we don't want LFB mapped at 16M. --- 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];