1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-27 11:55:06 +00:00
freebsd/sys/i386/boot
Bruce Evans 2e82980a4c Moved instantiation of `poff' to sys.c. It is no longer used in disk.c.
Saved a few bytes by copying `dosdev' and/or `name' to local variables.
This optimization (for dosdev) was done in one place before but this
was lost in the devread() cleanup.   This optimization (for dosdev)
can almost be done by bogusly declaring dosdev as const, but gcc still
often space-pessimizes code like the following:

	extern const int dosdev; ... foo(dosdev); bar(dosdev);

gcc often doesn't bother to copy dosdev to a temporary local because
the local would have to be preserved in memory across the call to
foo().  OTOH, for

	extern int dosdev; ... auto int dosdev_copy = dosdev; ...
		foo(dosdev_copy); bar(dosdev_copy);

the copy must be made because foo() might alter dosdev.
1996-09-14 07:41:00 +00:00
..
biosboot Moved instantiation of `poff' to sys.c. It is no longer used in disk.c. 1996-09-14 07:41:00 +00:00
dosboot Add g option to usage line 1996-08-28 18:33:15 +00:00
kzipboot Removed bogus padding that wasted 0x500 bytes. 1995-11-18 05:25:24 +00:00
netboot Add g to flags help 1996-08-28 18:39:24 +00:00
rawboot The intended usage is: 1996-09-11 19:25:12 +00:00
Makefile Add "rawboot", sort the subdirs. 1996-09-11 19:22:21 +00:00