diff options
author | bde <bde@FreeBSD.org> | 1995-01-25 21:40:47 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-01-25 21:40:47 +0000 |
commit | 802677cea866a1db7729c2a2ce5668570d364062 (patch) | |
tree | 0fe59a9f89cd6b9339c628dc3655fff907c49212 /sys/i386/boot/netboot | |
parent | 152d1bd214d432fa6ecbdc6c6308ce3d2356aaa1 (diff) | |
download | FreeBSD-src-802677cea866a1db7729c2a2ce5668570d364062.zip FreeBSD-src-802677cea866a1db7729c2a2ce5668570d364062.tar.gz |
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.
Diffstat (limited to 'sys/i386/boot/netboot')
-rw-r--r-- | sys/i386/boot/netboot/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/i386/boot/netboot/main.c b/sys/i386/boot/netboot/main.c index 3116d13..09b6a17 100644 --- a/sys/i386/boot/netboot/main.c +++ b/sys/i386/boot/netboot/main.c @@ -25,7 +25,7 @@ void (*kernelentry)(); struct nfs_diskless nfsdiskless; int hostnamelen; char config_buffer[512]; /* Max TFTP packet */ -struct bootinfo_t bootinfo; +struct bootinfo bootinfo; unsigned long netmask; extern char packet[]; @@ -281,9 +281,9 @@ load() printf("entry=0x%X.\n\r",head.a_entry); /* Jump to kernel */ - bootinfo.version = 1; - bootinfo.kernelname = kernel; - bootinfo.nfs_diskless = &nfsdiskless; + bootinfo.bi_version = BOOTINFO_VERSION; + bootinfo.bi_kernelname = kernel; + bootinfo.bi_nfs_diskless = &nfsdiskless; kernelentry = (void *)(head.a_entry & 0x00FFFFFF); (*kernelentry)(0,NODEV,0,0,0,&bootinfo,0,0,0); printf("*** %s execute failure ***\n",kernel); |