Potentially saved a whole 4 bytes and reduced bogusness by eliminating
the pointer to the string "/kernel". This pointer was once only statically to once save space, but it has had to be dynamically initialized for some time, so the static initialization just wastes space. The string gets moved to the text section, so the actual savings may be negative due to padding.
This commit is contained in:
parent
8fdfa820e4
commit
d154cceba7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=18292
@ -24,7 +24,7 @@
|
||||
* the rights to redistribute these changes.
|
||||
*
|
||||
* from: Mach, [92/04/03 16:51:14 rvb]
|
||||
* $Id: boot.c,v 1.57 1996/09/05 21:12:06 julian Exp $
|
||||
* $Id: boot.c,v 1.58 1996/09/07 20:18:04 bde Exp $
|
||||
*/
|
||||
|
||||
|
||||
@ -64,6 +64,7 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
#ifdef NAMEBLOCK
|
||||
char *dflt_name;
|
||||
#endif
|
||||
char *name;
|
||||
char namebuf[NAMEBUF_LEN];
|
||||
struct bootinfo bootinfo;
|
||||
int loadflags;
|
||||
@ -140,7 +141,7 @@ boot(int drive)
|
||||
} else
|
||||
#endif /*NAMEBLOCK*/
|
||||
loadstart:
|
||||
name = dflname; /* re-initialize in case of loop */
|
||||
name = "/kernel";
|
||||
/* print this all each time.. (saves space to do so) */
|
||||
/* If we have looped, use the previous entries as defaults */
|
||||
printf("\n>> FreeBSD BOOT @ 0x%x: %d/%d k of memory\n"
|
||||
|
@ -24,7 +24,7 @@
|
||||
* the rights to redistribute these changes.
|
||||
*
|
||||
* from: Mach, Revision 2.2 92/04/04 11:36:43 rpd
|
||||
* $Id: table.c,v 1.11 1996/07/05 19:55:05 julian Exp $
|
||||
* $Id: table.c,v 1.12 1996/07/12 05:25:47 bde Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -137,6 +137,4 @@ struct pseudo_desc Idtr_real = { 0x400 - 1, 0x0, 0x0 };
|
||||
* fragmentation.
|
||||
*/
|
||||
char *devs[] = { "wd", "dk", "fd", "wt", "sd", 0 };
|
||||
char dflname[] = "/kernel";
|
||||
char *name = dflname;
|
||||
unsigned long tw_chars = 0x5C2D2F7C; /* "\-/|" */
|
||||
|
Loading…
Reference in New Issue
Block a user