diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-05-23 22:09:45 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-05-23 22:09:45 +0000 |
commit | ecfd950f2373a2ad11db11adcbc8f8f1ffe773e3 (patch) | |
tree | ab5deae0d10c49f48aab90381efe1c058d8b7de1 /target | |
parent | 71ac7acb7c027616459dfd0c4ee122a5454da676 (diff) | |
download | upstream-ecfd950f2373a2ad11db11adcbc8f8f1ffe773e3.tar.gz upstream-ecfd950f2373a2ad11db11adcbc8f8f1ffe773e3.tar.bz2 upstream-ecfd950f2373a2ad11db11adcbc8f8f1ffe773e3.zip |
fix x86-2.6 compile
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7319 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/generic-2.6/patches/600-x86_lzma.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/generic-2.6/patches/600-x86_lzma.patch b/target/linux/generic-2.6/patches/600-x86_lzma.patch index b84a03cf09..23191bc4fd 100644 --- a/target/linux/generic-2.6/patches/600-x86_lzma.patch +++ b/target/linux/generic-2.6/patches/600-x86_lzma.patch @@ -778,8 +778,8 @@ diff -Nur linux-2.6.21.1/arch/i386/boot/compressed/lzma_misc.c linux-2.6.21.1-ow + +static void putstr(const char *); + -+extern int end; -+static long free_mem_ptr = (long)&end; ++extern int _end; ++static long free_mem_ptr = (long)&_end; +static long free_mem_end_ptr; + +#define INPLACE_MOVE_ROUTINE 0x1000 @@ -788,7 +788,7 @@ diff -Nur linux-2.6.21.1/arch/i386/boot/compressed/lzma_misc.c linux-2.6.21.1-ow +#define HEAP_SIZE 0x3000 +static unsigned int low_buffer_end, low_buffer_size; +static int high_loaded =0; -+static uch *high_buffer_start /* = (uch *)(((ulg)&end) + HEAP_SIZE)*/; ++static uch *high_buffer_start /* = (uch *)(((ulg)&_end) + HEAP_SIZE)*/; + +static char *vidmem = (char *)0xb8000; +static int vidport; @@ -902,7 +902,7 @@ diff -Nur linux-2.6.21.1/arch/i386/boot/compressed/lzma_misc.c linux-2.6.21.1-ow + +static void setup_output_buffer_if_we_run_high(struct moveparams *mv) +{ -+ high_buffer_start = (uch *)(((ulg)&end) + HEAP_SIZE); ++ high_buffer_start = (uch *)(((ulg)&_end) + HEAP_SIZE); +#ifdef STANDARD_MEMORY_BIOS_CALL + if (RM_EXT_MEM_K < (3*1024)) error("Less than 4MB of memory"); +#else |