]> Zhao Yanbai Git Server - minix.git/commitdiff
Boot monitor shouldn't report memory after 4GB; the addresses are wrong and VM can...
authorErik van der Kouwe <erik@minix3.org>
Thu, 12 Aug 2010 13:44:47 +0000 (13:44 +0000)
committerErik van der Kouwe <erik@minix3.org>
Thu, 12 Aug 2010 13:44:47 +0000 (13:44 +0000)
boot/boot.c

index 2d919e04ebb873a5bfad8bbfd24f5f7fa81aefbd..ee93fc55108d21ad1a9c063b6115f4486da64aab 100644 (file)
@@ -549,7 +549,7 @@ static void initialize(void)
                int i, j;
                j = 0;
                for(i = 0; i < mem_entries ; i++) {
-                       if (j < 3 && emem[i].type == 1) {
+                       if (j < 3 && emem[i].type == 1 && !emem[i].base_hi) {
                                mem[j].base = emem[i].base_lo;
                                mem[j].size = emem[i].size_lo;
                                j++;