aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/boot/compressed
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/boot/compressed')
-rw-r--r--arch/x86/boot/compressed/misc.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/arch/x86/boot/compressed/misc.c b/arch/x86/boot/compressed/misc.c
index 74ed3c075ee6..d10e7274e1fc 100644
--- a/arch/x86/boot/compressed/misc.c
+++ b/arch/x86/boot/compressed/misc.c
@@ -189,6 +189,7 @@ static void gzip_release(void **);
189 * This is set up by the setup-routine at boot-time 189 * This is set up by the setup-routine at boot-time
190 */ 190 */
191static struct boot_params *real_mode; /* Pointer to real-mode data */ 191static struct boot_params *real_mode; /* Pointer to real-mode data */
192static int quiet;
192 193
193extern unsigned char input_data[]; 194extern unsigned char input_data[];
194extern int input_len; 195extern int input_len;
@@ -391,7 +392,8 @@ static void parse_elf(void *output)
391 return; 392 return;
392 } 393 }
393 394
394 putstr("Parsing ELF... "); 395 if (!quiet)
396 putstr("Parsing ELF... ");
395 397
396 phdrs = malloc(sizeof(*phdrs) * ehdr.e_phnum); 398 phdrs = malloc(sizeof(*phdrs) * ehdr.e_phnum);
397 if (!phdrs) 399 if (!phdrs)
@@ -426,6 +428,9 @@ asmlinkage void decompress_kernel(void *rmode, memptr heap,
426{ 428{
427 real_mode = rmode; 429 real_mode = rmode;
428 430
431 if (real_mode->hdr.loadflags & QUIET_FLAG)
432 quiet = 1;
433
429 if (real_mode->screen_info.orig_video_mode == 7) { 434 if (real_mode->screen_info.orig_video_mode == 7) {
430 vidmem = (char *) 0xb0000; 435 vidmem = (char *) 0xb0000;
431 vidport = 0x3b4; 436 vidport = 0x3b4;
@@ -461,9 +466,11 @@ asmlinkage void decompress_kernel(void *rmode, memptr heap,
461#endif 466#endif
462 467
463 makecrc(); 468 makecrc();
464 putstr("\nDecompressing Linux... "); 469 if (!quiet)
470 putstr("\nDecompressing Linux... ");
465 gunzip(); 471 gunzip();
466 parse_elf(output); 472 parse_elf(output);
467 putstr("done.\nBooting the kernel.\n"); 473 if (!quiet)
474 putstr("done.\nBooting the kernel.\n");
468 return; 475 return;
469} 476}