"Out of memory" in decompression code

Bernd Schmidt (crux@Pool.Informatik.RWTH-Aachen.DE)
Mon, 20 Jul 1998 12:27:23 +0200 (MET DST)


Yesterday I managed to build a bzImage that wouldn't boot - it failed to
decompress itself with "Out of memory". The following patch solved the
problem.

Bernd

--- ./arch/i386/boot/compressed/misc.c.orig-1 Mon Jul 6 17:43:09 1998
+++ ./arch/i386/boot/compressed/misc.c Sun Jul 19 10:53:02 1998
@@ -104,7 +104,7 @@ static long free_mem_end_ptr = 0x90000;
#define LOW_BUFFER_START 0x2000
#define LOW_BUFFER_END 0x90000
#define LOW_BUFFER_SIZE ( LOW_BUFFER_END - LOW_BUFFER_START )
-#define HEAP_SIZE 0x2000
+#define HEAP_SIZE 0x4000
static int high_loaded =0;
static uch *high_buffer_start /* = (uch *)(((ulg)&end) + HEAP_SIZE)*/;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html