freebsd-nq/sys/i386/boot/netboot
Bruce Evans b5d89ca8ad Load the kernel symbol table in the boot loader and not at compile time.
(Boot with the -D flag if you want symbols.)

Make it easier to extend `struct bootinfo' without losing either forwards
or backwards compatibility.

ddb_aout.c:
Get the symbol table from wherever the loader put it.
Nuke db_symtab[SYMTAB_SPACE].

boot.c:
Enable loading of symbols.  Align them on a page boundary.  Add printfs
about the symbol table sizes.
Pass the memory sizes to the kernel.
Fix initialization of `unit' (it got moved out of the loop).
Fix adding the bss size (it got moved inside an ifdef).
Initialize serial port when RB_SERIAL is toggled on.
Fix comments.
Clean up formatting of recently added code.

io.c:
Clean up formatting of recently added code.

netboot/main.c, machdep.c, wd.c:
Change names of bootinfo fields.

LINT:
Nuke SYMTAB_SPACE.
Fix comment about DODUMP.

Makefile.i386:
Nuke use of dbsym.
Exclude gcc symbols from kernel unless compiling with -g.
Remove unused macro.
Fix comments and formatting.

genassym.c:
Generate defines for some new bootinfo fields.  Change names of old ones.

locore.s:
Copy only the valid part of the `struct bootinfo' passed by the loader.
Reserve space for symbol table, if any.

machdep.c:
Check the memory sizes passed by the loader, if any.  Don't use them yet.

bootinfo.h:
Add a size field so that we can resolve some mismatches between the loader
bootinfo and the kernel boot info.  The version number is not so good for
this because of historical botches and because it's harder to maintain.
Add memory size and symbol table fields.  Change the names of everything.

Hacks to save a few bytes:

asm.S, boot.c, boot2.S:
Replace `ouraddr' by `(BOOTSEG << 4)'.

boot.c:
Don't statically initialize `loadflags' to 0.  Disable the "REDUNDANT"
code that skips the BIOS variables.  Eliminate `total'.  Combine some
more printfs.

boot.h, disk.c, io.c, table.c:
Move all statically initialzed data to table.c.

io.c:
Don't put the A20 gate bits in a variable.
1995-01-25 21:40:47 +00:00
..
bootmenu.c From: wpaul@ctr.columbia.edu (Bill Paul) 1994-11-18 16:29:50 +00:00
ether.c Really provide support for 3COM cards now. 1994-12-31 17:16:50 +00:00
ether.h Really provide support for 3COM cards now. 1994-12-31 17:16:50 +00:00
main.c Load the kernel symbol table in the boot loader and not at compile time. 1995-01-25 21:40:47 +00:00
Makefile Really provide support for 3COM cards now. 1994-12-31 17:16:50 +00:00
makerom.c Netboot TNG. I have seen this compile, I don't know if it works. 1994-10-17 17:55:31 +00:00
misc.c Many fixes from Bill Paul: 1994-11-17 12:16:07 +00:00
netboot.doc Netboot TNG. I have seen this compile, I don't know if it works. 1994-10-17 17:55:31 +00:00
netboot.h Many fixes from Bill Paul: 1994-11-17 12:16:07 +00:00
rpc.c Netboot TNG. I have seen this compile, I don't know if it works. 1994-10-17 17:55:31 +00:00
start2.S Netboot TNG. I have seen this compile, I don't know if it works. 1994-10-17 17:55:31 +00:00