Messages in this thread Patch in this message |  | | Subject | [PATCH] Cosmetic changes to boot-up sequences | Date | Sat, 13 Jul 1996 20:00:08 -0400 (EDT) | From | "Aaron Tiensivu" <> |
| |
Patch by: Aaron Tiensivu (tiensivu@pilot.msu.edu)
This patch is a merely cosmetic. It saves some screen real-estate, and makes the boot sequence a little "cleaner".
Original boot sequence:
Console: 16 point font, 400 scans Console: colour VGA+ 80x25, 1 virtual console (max 63) Calibrating delay loop.. ok - 60.01 BogoMIPS Memory: 15088k/16384k available (488k kernel code, 384k reserved, 424k data) This processor honours the WP bit even when in supervisor mode. Good. Swansea University Computer Society NET3.035 for Linux 2.0 NET3: Unix domain sockets 0.12 for Linux NET3.035. Swansea University Computer Society TCP/IP for NET3.034 IP Protocols: ICMP, UDP, TCP Checking 386/387 coupling... Ok, fpu using exception 16 error reporting. Checking 'hlt' instruction... Ok. Linux version 2.0.5 (root@lucretia) (gcc version 2.7.2.l.3) #25 Thu Jul 11 21:11 :11 EDT 1996 hda: IBM-DJAA-31700, 1628MB w/96kB Cache, LBA, CHS=827/64/63 hdc: ST5660A, 520MB w/256kB Cache, LBA, CHS=1057/16/63
New boot sequence:
Linux v2.0.6 (lucretia) (gcc version 2.7.2.l.3) #30 Sat Jul 13 19:18:57 EDT 1996 Console: 16 pt font, 400 scans, colour VGA+ 80x25, 1 of 63 consoles Calibrating delay loop: 60.01 BogoMIPS Memory: 15092k/16384k available (488k kernel code, 384k reserved, 420k data) This processor honours the WP bit even when in supervisor mode. Good. Swansea University Computer Society NET3.035 for Linux 2.0 NET3: Unix domain sockets 0.12 for Linux NET3.035. Swansea University Computer Society TCP/IP for NET3.034 IP Protocols: ICMP, UDP, TCP Checking 386/387 coupling : exception 16 error reporting Checking 'hlt' instruction: OK hda: IBM-DJAA-31700, 1628MB w/96kB Cache, LBA, CHS=827/64/63 hdc: ST5660A, 520MB w/256kB Cache, LBA, CHS=1057/16/63
Patch starts now:
--- linux/init/main.c.orig Sat Jul 13 17:22:50 1996 +++ linux/init/main.c Sat Jul 13 18:26:29 1996 @@ -479,7 +479,7 @@
loops_per_sec = (1<<12);
- printk("Calibrating delay loop.. "); + printk("Calibrating delay loop: "); while (loops_per_sec <<= 1) { /* wait for "start of" clock tick */ ticks = jiffies; @@ -510,7 +510,7 @@ /* finally, adjust loops per second in terms of seconds instead of clocks */ loops_per_sec *= HZ; /* Round the value and print it */ - printk("ok - %lu.%02lu BogoMIPS\n", + printk("%lu.%02lu BogoMIPS\n", (loops_per_sec+2500)/500000, ((loops_per_sec+2500)/5000) % 100); } @@ -771,6 +771,7 @@ * Interrupts are still disabled. Do necessary setups, then * enable them */ + printk(linux_banner); setup_arch(&command_line, &memory_start, &memory_end); memory_start = paging_init(memory_start,memory_end); trap_init(); @@ -824,7 +825,7 @@ sti(); check_bugs();
- printk(linux_banner); + /* printk(linux_banner); */ #ifdef __SMP__ smp_init(); #endif --- linux/init/version.c.orig Sat Jul 13 17:31:13 1996 +++ linux/init/version.c Sat Jul 13 17:32:01 1996 @@ -26,5 +26,5 @@ };
const char *linux_banner = - "Linux version " UTS_RELEASE " (" LINUX_COMPILE_BY "@" + "Linux v" UTS_RELEASE " (" LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " UTS_VERSION "\n"; --- linux/include/asm-i386/bugs.h.orig Sat Jul 13 18:34:42 1996 +++ linux/include/asm-i386/bugs.h Sat Jul 13 19:06:53 1996 @@ -64,7 +64,7 @@ * So the irq13 will happen eventually, but the exception 16 * should get there first.. */ - printk("Checking 386/387 coupling... "); + printk("Checking 386/387 coupling : "); timer_table[COPRO_TIMER].expires = jiffies+50; timer_table[COPRO_TIMER].fn = copro_timeout; timer_active |= 1<<COPRO_TIMER; @@ -77,7 +77,7 @@ if (fpu_error) return; if (!ignore_irq13) { - printk("Ok, fpu using old IRQ13 error reporting\n"); + printk("IRQ13 error reporting\n"); return; } __asm__("fninit\n\t" @@ -92,22 +92,22 @@ : "=m" (*&fdiv_bug) : "m" (*&x), "m" (*&y)); if (!fdiv_bug) { - printk("Ok, fpu using exception 16 error reporting.\n"); + printk("exception 16 error reporting\n"); return;
} - printk("Hmm, FDIV bug i%c86 system\n", '0'+x86); + printk("FDIV bug i%c86 system\n", '0'+x86); }
static void check_hlt(void) { - printk("Checking 'hlt' instruction... "); + printk("Checking 'hlt' instruction: "); if (!hlt_works_ok) { printk("disabled\n"); return; } __asm__ __volatile__("hlt ; hlt ; hlt ; hlt"); - printk("Ok.\n"); + printk("OK\n"); }
static void check_tlb(void) --- linux/drivers/char/console.c.orig Sat Jul 13 18:51:44 1996 +++ linux/drivers/char/console.c Sat Jul 13 19:46:00 1996 @@ -2070,6 +2070,7 @@ a different font */
printable = 1; + printk("Console:"); if ( video_type == VIDEO_TYPE_VGAC || video_type == VIDEO_TYPE_EGAC || video_type == VIDEO_TYPE_EGAM || video_type == VIDEO_TYPE_TGAC ) { @@ -2081,15 +2082,14 @@ serial_echo_init(SERIAL_ECHO_PORT); #endif /* CONFIG_SERIAL_ECHO */
- printk("Console: %ld point font, %ld scans\n", + printk(" %ld pt font, %ld scans,", video_font_height, video_scan_lines); }
- printk("Console: %s %s %ldx%ld, %d virtual console%s (max %d)\n", + printk(" %s %s %ldx%ld, %d of %d consoles\n", can_do_color ? "colour" : "mono", display_desc, video_num_columns, video_num_lines, - MIN_NR_CONSOLES, (MIN_NR_CONSOLES == 1) ? "" : "s", - MAX_NR_CONSOLES); + MIN_NR_CONSOLES, MAX_NR_CONSOLES);
/* * can't register TGA yet, because PCI bus probe has *not* taken
|  |