diff options
Diffstat (limited to 'arch/m32r/boot/compressed')
| -rw-r--r-- | arch/m32r/boot/compressed/Makefile | 6 | ||||
| -rw-r--r-- | arch/m32r/boot/compressed/misc.c | 12 |
2 files changed, 14 insertions, 4 deletions
diff --git a/arch/m32r/boot/compressed/Makefile b/arch/m32r/boot/compressed/Makefile index 177716b1d613..01729c2979ba 100644 --- a/arch/m32r/boot/compressed/Makefile +++ b/arch/m32r/boot/compressed/Makefile | |||
| @@ -43,9 +43,9 @@ endif | |||
| 43 | 43 | ||
| 44 | OBJCOPYFLAGS += -R .empty_zero_page | 44 | OBJCOPYFLAGS += -R .empty_zero_page |
| 45 | 45 | ||
| 46 | suffix_$(CONFIG_KERNEL_GZIP) = gz | 46 | suffix-$(CONFIG_KERNEL_GZIP) = gz |
| 47 | suffix_$(CONFIG_KERNEL_BZIP2) = bz2 | 47 | suffix-$(CONFIG_KERNEL_BZIP2) = bz2 |
| 48 | suffix_$(CONFIG_KERNEL_LZMA) = lzma | 48 | suffix-$(CONFIG_KERNEL_LZMA) = lzma |
| 49 | 49 | ||
| 50 | $(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/vmlinux.bin.$(suffix-y) FORCE | 50 | $(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/vmlinux.bin.$(suffix-y) FORCE |
| 51 | $(call if_changed,ld) | 51 | $(call if_changed,ld) |
diff --git a/arch/m32r/boot/compressed/misc.c b/arch/m32r/boot/compressed/misc.c index 370d60881977..28a09529f206 100644 --- a/arch/m32r/boot/compressed/misc.c +++ b/arch/m32r/boot/compressed/misc.c | |||
| @@ -28,7 +28,7 @@ static unsigned long free_mem_ptr; | |||
| 28 | static unsigned long free_mem_end_ptr; | 28 | static unsigned long free_mem_end_ptr; |
| 29 | 29 | ||
| 30 | #ifdef CONFIG_KERNEL_BZIP2 | 30 | #ifdef CONFIG_KERNEL_BZIP2 |
| 31 | static void *memset(void *s, int c, size_t n) | 31 | void *memset(void *s, int c, size_t n) |
| 32 | { | 32 | { |
| 33 | char *ss = s; | 33 | char *ss = s; |
| 34 | 34 | ||
| @@ -39,6 +39,16 @@ static void *memset(void *s, int c, size_t n) | |||
| 39 | #endif | 39 | #endif |
| 40 | 40 | ||
| 41 | #ifdef CONFIG_KERNEL_GZIP | 41 | #ifdef CONFIG_KERNEL_GZIP |
| 42 | void *memcpy(void *dest, const void *src, size_t n) | ||
| 43 | { | ||
| 44 | char *d = dest; | ||
| 45 | const char *s = src; | ||
| 46 | while (n--) | ||
| 47 | *d++ = *s++; | ||
| 48 | |||
| 49 | return dest; | ||
| 50 | } | ||
| 51 | |||
| 42 | #define BOOT_HEAP_SIZE 0x10000 | 52 | #define BOOT_HEAP_SIZE 0x10000 |
| 43 | #include "../../../../lib/decompress_inflate.c" | 53 | #include "../../../../lib/decompress_inflate.c" |
| 44 | #endif | 54 | #endif |
