]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Initialize memory.lfb.start_page, we don't want LFB mapped at 16M.
authorToni Wilen <twilen@winuae.net>
Fri, 18 Sep 2015 14:05:14 +0000 (17:05 +0300)
committerToni Wilen <twilen@winuae.net>
Fri, 18 Sep 2015 14:05:14 +0000 (17:05 +0300)
dosbox/db_memory.cpp

index cad040803e6e37433ca01b8a129504350ad4b51a..0778849a0078b16e5f8d11a27d0e7c78213cfbb2 100644 (file)
@@ -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];