summaryrefslogtreecommitdiffstats
path: root/sys/i386/boot/kzipboot
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-11-18 05:12:10 +0000
committerbde <bde@FreeBSD.org>1995-11-18 05:12:10 +0000
commitba88374c643085c4054ad6d53256a572cbe37ca5 (patch)
treebe5c76d04d30c2284f0fd6c259eed95d973d8b16 /sys/i386/boot/kzipboot
parent1ab1d0615cbf2d05730a7b0c0e5c87c6e706d6be (diff)
downloadFreeBSD-src-ba88374c643085c4054ad6d53256a572cbe37ca5.zip
FreeBSD-src-ba88374c643085c4054ad6d53256a572cbe37ca5.tar.gz
Fixed scrolling. The bottom line wasn't cleared. This caused the
boot to display "Booting the kernelel...done" instead of "Booting the kernel". Removed save and restore of BIOS memory. kzipped kernels haven't ever overlaid the BIOS memory.
Diffstat (limited to 'sys/i386/boot/kzipboot')
-rw-r--r--sys/i386/boot/kzipboot/boot.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/i386/boot/kzipboot/boot.c b/sys/i386/boot/kzipboot/boot.c
index 7bd0885..57edcb9 100644
--- a/sys/i386/boot/kzipboot/boot.c
+++ b/sys/i386/boot/kzipboot/boot.c
@@ -66,7 +66,11 @@ void putchar (unsigned char c)
default: videomem[curs++] = 0x0700 | c; break;
}
while (curs >= cols*lines) {
+ int col;
+
memcpy (videomem, videomem+cols, (lines-1) * cols * 2);
+ for (col = 0; col < cols; col++)
+ videomem[(lines - 1) * cols + col] = 0x720;
curs -= cols;
}
/* set cursor position */
@@ -127,15 +131,8 @@ void boot (int howto)
curs = (lines-1) * cols;
}
- /* save bios area */
- memcpy (bios, (void*) 0x400, sizeof (bios));
-
putstr ("Uncompressing kernel...");
decompress_kernel ((void*) KADDR);
putstr ("done\n");
-
- /* restore bios area */
- memcpy ((void*) 0x400, bios, sizeof (bios));
-
putstr ("Booting the kernel\n");
}
OpenPOWER on IntegriCloud