1 Index: linux-2.6.25.1/arch/cris/arch-v10/boot/Makefile
2 ===================================================================
3 --- linux-2.6.25.1.orig/arch/cris/arch-v10/boot/Makefile 2008-05-03 18:16:00.000000000 +0100
4 +++ linux-2.6.25.1/arch/cris/arch-v10/boot/Makefile 2008-05-03 18:16:12.000000000 +0100
6 # arch/cris/arch-v10/boot/Makefile
9 -OBJCOPY = objcopy-cris
10 +OBJCOPY = /usr/local/cris/objcopy-cris
11 OBJCOPYFLAGS = -O binary --remove-section=.bss
13 -subdir- := compressed rescue
14 +subdir- := compressed
17 $(obj)/Image: vmlinux FORCE
20 $(obj)/compressed/vmlinux: $(obj)/Image FORCE
21 $(Q)$(MAKE) $(build)=$(obj)/compressed $@
22 - $(Q)$(MAKE) $(build)=$(obj)/rescue $(obj)/rescue/rescue.bin
24 $(obj)/zImage: $(obj)/compressed/vmlinux
26 Index: linux-2.6.25.1/arch/cris/arch-v10/boot/compressed/Makefile
27 ===================================================================
28 --- linux-2.6.25.1.orig/arch/cris/arch-v10/boot/compressed/Makefile 2008-05-03 18:16:00.000000000 +0100
29 +++ linux-2.6.25.1/arch/cris/arch-v10/boot/compressed/Makefile 2008-05-03 18:16:12.000000000 +0100
31 # arch/cris/arch-v10/boot/compressed/Makefile
34 -CC = gcc-cris -melf $(LINUXINCLUDE)
37 +LD=/usr/local/cris/ld-cris
38 ldflags-y += -T $(obj)/decompress.ld
39 OBJECTS = $(obj)/head.o $(obj)/misc.o
40 -OBJCOPY = objcopy-cris
41 +OBJCOPY = /usr/local/cris/objcopy-cris
42 OBJCOPYFLAGS = -O binary --remove-section=.bss
44 quiet_cmd_image = BUILD $@
46 $(call if_changed,objcopy)
48 $(obj)/head.o: $(obj)/head.S .config
49 - @$(CC) -D__ASSEMBLY__ -traditional -c $< -o $@
50 + /usr/local/cris/gcc-cris -melf $(LINUXINCLUDE) -D__ASSEMBLY__ -traditional -c $< -o $@
52 $(obj)/misc.o: $(obj)/misc.c .config
53 - @$(CC) -D__KERNEL__ -c $< -o $@
54 + /usr/local/cris/gcc-cris -melf $(LINUXINCLUDE) -D__KERNEL__ -c $< -o $@
56 $(obj)/vmlinux: $(obj)/piggy.gz $(obj)/decompress.bin FORCE
57 $(call if_changed,image)
58 Index: linux-2.6.25.1/arch/cris/arch-v10/boot/compressed/misc.c
59 ===================================================================
60 --- linux-2.6.25.1.orig/arch/cris/arch-v10/boot/compressed/misc.c 2008-05-03 18:16:00.000000000 +0100
61 +++ linux-2.6.25.1/arch/cris/arch-v10/boot/compressed/misc.c 2008-05-03 18:16:12.000000000 +0100
65 * malloc by Hannu Savolainen 1993 and Matthias Urlichs 1994
66 - * puts by Nick Holloway 1993, better puts by Martin Mares 1995
67 + * putstr by Nick Holloway 1993, better putstr by Martin Mares 1995
68 * adaptation for Linux/CRIS Axis Communications AB, 1999
72 static void gzip_mark(void **);
73 static void gzip_release(void **);
75 -static void puts(const char *);
76 +static void putstr(const char *);
78 /* the "heap" is put directly after the BSS ends, at end */
81 /* decompressor info and error messages to serial console */
85 +putstr(const char *s)
87 #ifndef CONFIG_ETRAX_DEBUG_PORT_NULL
95 - puts("\n\n -- System halted\n");
98 + putstr("\n\n -- System halted\n");
106 - __asm__ volatile ("move vr,%0" : "=rm" (revision));
109 - puts("You need an ETRAX 100LX to run linux 2.6\n");
113 - puts("Uncompressing Linux...\n");
114 + putstr("Uncompressing Linux...\n");
116 - puts("Done. Now booting the kernel.\n");
117 + putstr("Done. Now booting the kernel.\n");
119 Index: linux-2.6.25.1/arch/cris/arch-v10/mm/init.c
120 ===================================================================
121 --- linux-2.6.25.1.orig/arch/cris/arch-v10/mm/init.c 2008-05-03 18:18:51.000000000 +0100
122 +++ linux-2.6.25.1/arch/cris/arch-v10/mm/init.c 2008-05-03 18:18:53.000000000 +0100
124 (unsigned long)((&__init_end - &__init_begin) >> 10));
126 +void free_initrd_mem(unsigned long start, unsigned long end)