-/* Problem to resolve. AT's have memory that is not contigous, as
-I/O address space for video adapters and network cards fall into
-a range of 0xa0000 - 0x100000 . Note that the cmap really expects
-contigous memory. For the moment, use the bottom of memory for
-kernel and run-time configured storage (e.g. valloc), using memory
-above 0x100000 for the cmap, and wasting the stuff left over after
-valloc-end up to 0xa0000 (640K). Will have to fix this before beta,
-and will have to somehow move this out into per bus adapter directory
-(e.g. configurable). For now, punt
-
-How about starting cmap normally following valloc space, and then
-write a routine than allocs only phys pages in the 0xa0000-0x100000
-hole?
-
-Temporary fix for beta, if we only have 640K, then cmap follows valloc
-up to 640K.
-*/
- maxmem -= btoc(sizeof (struct msgbuf));
- pte = msgbufmap;
- for (i = 0; i < btoc(sizeof (struct msgbuf)); i++)
- *(int *)pte++ = PG_V | PG_KW | ctob(maxmem + i);
-
-#ifdef notdef
- /* XXX EMC */
- pte = EMCmap;
- *(int *)pte = PG_V | PG_UW | 0xc0000000;
- printf("EMC at %x\n", EMCbase);
-#endif
-
- freemem = physmem = maxmem;