summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2011-02-16 15:20:37 +0000
committernyan <nyan@FreeBSD.org>2011-02-16 15:20:37 +0000
commite7f70a0a816c701d83752b7907019dfe5ddced6d (patch)
tree595d59ff37eeed1f235d7b3a2b6d9df798e6f7f4 /sys/boot
parent5e9f9790ada14011cb49ceedaacf20c352849ddb (diff)
downloadFreeBSD-src-e7f70a0a816c701d83752b7907019dfe5ddced6d.zip
FreeBSD-src-e7f70a0a816c701d83752b7907019dfe5ddced6d.tar.gz
MFi386: revision 218713
Apply a few small optimizations to boot2's code, to make it shrink a little further.
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/pc98/boot2/boot2.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/boot/pc98/boot2/boot2.c b/sys/boot/pc98/boot2/boot2.c
index 259d5de..59bbec7 100644
--- a/sys/boot/pc98/boot2/boot2.c
+++ b/sys/boot/pc98/boot2/boot2.c
@@ -134,7 +134,7 @@ static struct dsk {
} dsk;
static char cmd[512], cmddup[512];
static char kname[1024];
-static uint32_t opts;
+static uint16_t opts;
static int comspeed = SIOSPD;
static struct bootinfo bootinfo;
static uint8_t ioctrl = IO_KEYBOARD;
@@ -360,7 +360,7 @@ main(void)
#ifdef GET_BIOSGEOM
int i;
#endif
- int autoboot;
+ uint8_t autoboot;
ino_t ino;
dmadat = (void *)(roundup2(__base + (int32_t)&_end, 0x10000) - __base);
@@ -457,7 +457,8 @@ load(void)
caddr_t p;
ino_t ino;
uint32_t addr, x;
- int fmt, i, j;
+ int i, j;
+ uint8_t fmt;
if (!(ino = lookup(kname))) {
if (!ls)
OpenPOWER on IntegriCloud