diff options
Diffstat (limited to 'arch/x86/boot/compressed')
| -rw-r--r-- | arch/x86/boot/compressed/head_32.S | 5 | ||||
| -rw-r--r-- | arch/x86/boot/compressed/misc.c | 10 |
2 files changed, 9 insertions, 6 deletions
diff --git a/arch/x86/boot/compressed/head_32.S b/arch/x86/boot/compressed/head_32.S index ba7736cf2ec7..29c5fbf08392 100644 --- a/arch/x86/boot/compressed/head_32.S +++ b/arch/x86/boot/compressed/head_32.S | |||
| @@ -137,14 +137,15 @@ relocated: | |||
| 137 | */ | 137 | */ |
| 138 | movl output_len(%ebx), %eax | 138 | movl output_len(%ebx), %eax |
| 139 | pushl %eax | 139 | pushl %eax |
| 140 | # push arguments for decompress_kernel: | ||
| 140 | pushl %ebp # output address | 141 | pushl %ebp # output address |
| 141 | movl input_len(%ebx), %eax | 142 | movl input_len(%ebx), %eax |
| 142 | pushl %eax # input_len | 143 | pushl %eax # input_len |
| 143 | leal input_data(%ebx), %eax | 144 | leal input_data(%ebx), %eax |
| 144 | pushl %eax # input_data | 145 | pushl %eax # input_data |
| 145 | leal boot_heap(%ebx), %eax | 146 | leal boot_heap(%ebx), %eax |
| 146 | pushl %eax # heap area as third argument | 147 | pushl %eax # heap area |
| 147 | pushl %esi # real mode pointer as second arg | 148 | pushl %esi # real mode pointer |
| 148 | call decompress_kernel | 149 | call decompress_kernel |
| 149 | addl $20, %esp | 150 | addl $20, %esp |
| 150 | popl %ecx | 151 | popl %ecx |
diff --git a/arch/x86/boot/compressed/misc.c b/arch/x86/boot/compressed/misc.c index aaf5a2131efc..5780d361105b 100644 --- a/arch/x86/boot/compressed/misc.c +++ b/arch/x86/boot/compressed/misc.c | |||
| @@ -27,7 +27,7 @@ | |||
| 27 | #include <linux/linkage.h> | 27 | #include <linux/linkage.h> |
| 28 | #include <linux/screen_info.h> | 28 | #include <linux/screen_info.h> |
| 29 | #include <linux/elf.h> | 29 | #include <linux/elf.h> |
| 30 | #include <asm/io.h> | 30 | #include <linux/io.h> |
| 31 | #include <asm/page.h> | 31 | #include <asm/page.h> |
| 32 | #include <asm/boot.h> | 32 | #include <asm/boot.h> |
| 33 | #include <asm/bootparam.h> | 33 | #include <asm/bootparam.h> |
| @@ -251,7 +251,7 @@ static void __putstr(int error, const char *s) | |||
| 251 | y--; | 251 | y--; |
| 252 | } | 252 | } |
| 253 | } else { | 253 | } else { |
| 254 | vidmem [(x + cols * y) * 2] = c; | 254 | vidmem[(x + cols * y) * 2] = c; |
| 255 | if (++x >= cols) { | 255 | if (++x >= cols) { |
| 256 | x = 0; | 256 | x = 0; |
| 257 | if (++y >= lines) { | 257 | if (++y >= lines) { |
| @@ -277,7 +277,8 @@ static void *memset(void *s, int c, unsigned n) | |||
| 277 | int i; | 277 | int i; |
| 278 | char *ss = s; | 278 | char *ss = s; |
| 279 | 279 | ||
| 280 | for (i = 0; i < n; i++) ss[i] = c; | 280 | for (i = 0; i < n; i++) |
| 281 | ss[i] = c; | ||
| 281 | return s; | 282 | return s; |
| 282 | } | 283 | } |
| 283 | 284 | ||
| @@ -287,7 +288,8 @@ static void *memcpy(void *dest, const void *src, unsigned n) | |||
| 287 | const char *s = src; | 288 | const char *s = src; |
| 288 | char *d = dest; | 289 | char *d = dest; |
| 289 | 290 | ||
| 290 | for (i = 0; i < n; i++) d[i] = s[i]; | 291 | for (i = 0; i < n; i++) |
| 292 | d[i] = s[i]; | ||
| 291 | return dest; | 293 | return dest; |
| 292 | } | 294 | } |
| 293 | 295 | ||
