From 69318c29dba0cd4c58424190e0336a58548b63aa Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Wed, 19 Aug 2015 12:23:26 -0700 Subject: [PATCH] boot - Fix CD booting * Recent changes to move the loader's heap to high-memory broke the CD I/O code due to being beyond the BIOS'es segmentation range. The HDD code was already using bounce buffers, but the CD code was not. * Adjust the CD I/O code to use bounce buffers too. --- From 349c99ee28c800cca8338621e90b603e7d452adc Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Sun, 26 Jul 2015 01:03:46 -0700 Subject: [PATCH] boot - Put loader heap in high memory * We ran out of low BIOS memory. The initrd.img.gz unpacking requires a bit more than ~32KB of temporary space and it ran the loader out of low-BIOS heap memory. This can cause the loader to fail to load the image and prevent proper crypto or single-user bootstrapping. * Steal the heap from high-memory, just ender the kernel+modules load area limit. For now, steal 1MB, which gives the loader plenty of space again. The kernel will lose 1MB of physical memory, boo-hoo. * The loader must remove the heap from the SMAP passed to the kernel. * Move any objects requiring VTOPSEG/VTOPOFF out of malloc and into a static or stack declaration. Reported-by: cgag, multiple ---