From owner-freebsd-commit Fri Apr 21 09:50:39 1995 Return-Path: commit-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id JAA11050 for commit-outgoing; Fri, 21 Apr 1995 09:50:39 -0700 Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id JAA11036 for cvs-sys-outgoing; Fri, 21 Apr 1995 09:50:37 -0700 Received: (from bde@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id JAA11026 ; Fri, 21 Apr 1995 09:50:34 -0700 Date: Fri, 21 Apr 1995 09:50:34 -0700 From: Bruce Evans Message-Id: <199504211650.JAA11026@freefall.cdrom.com> To: CVS-commiters, cvs-sys Subject: cvs commit: src/sys/i386/boot/biosboot boot.c boot.h Sender: commit-owner@FreeBSD.org Precedence: bulk bde 95/04/21 09:50:33 Modified: sys/i386/boot/biosboot boot.c boot.h Log: Make some functions static like they always should have been. Change the interfaces of these functions to save space. The code that takes the least amount of space is often the opposite to what you might expect. E.g., it helps to waste a few bytes passing pointers so that the compiler can't see that certain addresses are identical (gcc likes to waste space by reloading fat constants even when the constant is already in a register). Rewrite getbootdev() to save 80 bytes of space and to make it less ugly. 32 bytes were saved simply by omitting the continue statements in the pseudo-switch.