summaryrefslogtreecommitdiffstats
path: root/usr.bin/doscmd/bios.c
diff options
context:
space:
mode:
authortg <tg@FreeBSD.org>2001-07-24 11:50:23 +0000
committertg <tg@FreeBSD.org>2001-07-24 11:50:23 +0000
commit47c2c99b5115c72bc1c4ad5ba8e7d21169d982ae (patch)
treef69b902c12889e39d57e3d83d55293ee0abee74b /usr.bin/doscmd/bios.c
parent97507091ff20d3dc72113dfbd0c9532423d3acb4 (diff)
downloadFreeBSD-src-47c2c99b5115c72bc1c4ad5ba8e7d21169d982ae.zip
FreeBSD-src-47c2c99b5115c72bc1c4ad5ba8e7d21169d982ae.tar.gz
Clean up the code a bit:
- add $FreeBSD$; - remove unused variables; - add missing headers and prototypes; - -Wshadow.
Diffstat (limited to 'usr.bin/doscmd/bios.c')
-rw-r--r--usr.bin/doscmd/bios.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/usr.bin/doscmd/bios.c b/usr.bin/doscmd/bios.c
index 1af6ccf..21c78cd 100644
--- a/usr.bin/doscmd/bios.c
+++ b/usr.bin/doscmd/bios.c
@@ -64,13 +64,6 @@
#define BIOS_date_stamp 0xffff5
#define BIOS_hardware_id 0xffffe
-static u_char video_parms[] = {
- 0x38, 40, 0x2d, 10, 0x1f, 6, 0x19, 0x1c, 2, 7, 6, 7, 0, 0, 0, 0,
- 0x71, 80, 0x5a, 10, 0x1f, 6, 0x19, 0x1c, 2, 7, 6, 7, 0, 0, 0, 0,
- 0x38, 40, 0x2d, 10, 0x7f, 6, 0x64, 0x70, 2, 1, 6, 7, 0, 0, 0, 0,
- 0x61, 80, 0x52, 15, 0x19, 6, 0x19, 0x19, 2, 13, 11, 12, 0, 0, 0, 0,
-};
-
static u_char disk_params[] = {
0xdf, 2, 0x25, 2, 0x0f, 0x1b, 0xff, 0x54, 0xf6, 0x0f, 8,
};
@@ -116,9 +109,6 @@ int12(regcontext_t *REGS)
static void
int15(regcontext_t *REGS)
{
- int cond;
- int count;
-
R_FLAGS &= ~PSL_C;
switch (R_AH) {
@@ -277,7 +267,7 @@ bios_init(void)
(1 << 1) | /* Math co-processor */
(nmice << 2) | /* No pointing device */
(2 << 4) | /* Initial video (80 x 25 C) */
- (nfloppies - 1 << 6) | /* Number of floppies - 1 */
+ ((nfloppies - 1) << 6) | /* Number of floppies - 1 */
(nserial << 9) | /* Number of serial devices */
(nparallel << 14); /* Number of parallel devices */
OpenPOWER on IntegriCloud