aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/boot/compressed/misc_32.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/boot/compressed/misc_32.c b/arch/x86/boot/compressed/misc_32.c
index ad0528a83151..2b1c22de558a 100644
--- a/arch/x86/boot/compressed/misc_32.c
+++ b/arch/x86/boot/compressed/misc_32.c
@@ -348,7 +348,7 @@ static void error(char *x)
348 asm("hlt"); 348 asm("hlt");
349} 349}
350 350
351asmlinkage void decompress_kernel(void *rmode, unsigned long end, 351asmlinkage void decompress_kernel(void *rmode, unsigned long heap,
352 uch *input_data, unsigned long input_len, 352 uch *input_data, unsigned long input_len,
353 uch *output) 353 uch *output)
354{ 354{
@@ -366,15 +366,15 @@ asmlinkage void decompress_kernel(void *rmode, unsigned long end,
366 cols = RM_SCREEN_INFO.orig_video_cols; 366 cols = RM_SCREEN_INFO.orig_video_cols;
367 367
368 window = output; /* Output buffer (Normally at 1M) */ 368 window = output; /* Output buffer (Normally at 1M) */
369 free_mem_ptr = end; /* Heap */ 369 free_mem_ptr = heap; /* Heap */
370 free_mem_end_ptr = end + HEAP_SIZE; 370 free_mem_end_ptr = heap + HEAP_SIZE;
371 inbuf = input_data; /* Input buffer */ 371 inbuf = input_data; /* Input buffer */
372 insize = input_len; 372 insize = input_len;
373 inptr = 0; 373 inptr = 0;
374 374
375 if ((u32)output & (CONFIG_PHYSICAL_ALIGN -1)) 375 if ((u32)output & (CONFIG_PHYSICAL_ALIGN -1))
376 error("Destination address not CONFIG_PHYSICAL_ALIGN aligned"); 376 error("Destination address not CONFIG_PHYSICAL_ALIGN aligned");
377 if (end > ((-__PAGE_OFFSET-(512 <<20)-1) & 0x7fffffff)) 377 if (heap > ((-__PAGE_OFFSET-(512<<20)-1) & 0x7fffffff))
378 error("Destination address too large"); 378 error("Destination address too large");
379#ifndef CONFIG_RELOCATABLE 379#ifndef CONFIG_RELOCATABLE
380 if ((u32)output != LOAD_PHYSICAL_ADDR) 380 if ((u32)output != LOAD_PHYSICAL_ADDR)