void pagemap_init(void) { int i; int max = scanmem(); /* We have 64 8k pages for a CoCo3 so insert every other one * into the kernel allocator map. */ for (i = 10; i < max ; i+=2) pagemap_add(i); /* add common page last so init gets it */ pagemap_add(6); }
/* Map handling: We have flexible paging. Each map table consists of a set of pages with the last page repeated to fill any holes. */ DISC void pagemap_init(void) { int i; int max = scanmem(); /* We have 64 8k pages for a CoCo3 so insert every other one * into the kernel allocator map. */ for (i = 12; i < max ; i+=2) pagemap_add(i); /* add common page last so init gets it */ pagemap_add(6); /* initialize swap pages */ for (i = 0; i<MAX_SWAPS; i++) swapmap_init(i); }