this is my current main.c. the main changes are longer delay in shutdown() if #e/*debug is present; one-minute delay at end of shutdown() when a terminal panics; fiddled the computation of kpages, apparently to give kernels on machines >64MB more memory. i now also print the amount of memory at boot, as V6 Unix did, but that's commented out here.