Date: Wed, 16 Feb 2011 15:20:37 +0000 (UTC) From: Takahashi Yoshihiro <nyan@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r218737 - head/sys/boot/pc98/boot2 Message-ID: <201102161520.p1GFKbhs074281@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: nyan Date: Wed Feb 16 15:20:37 2011 New Revision: 218737 URL: http://svn.freebsd.org/changeset/base/218737 Log: MFi386: revision 218713 Apply a few small optimizations to boot2's code, to make it shrink a little further. Modified: head/sys/boot/pc98/boot2/boot2.c Modified: head/sys/boot/pc98/boot2/boot2.c ============================================================================== --- head/sys/boot/pc98/boot2/boot2.c Wed Feb 16 15:19:31 2011 (r218736) +++ head/sys/boot/pc98/boot2/boot2.c Wed Feb 16 15:20:37 2011 (r218737) @@ -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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102161520.p1GFKbhs074281>