]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fixed loss of setting of the RB_BOOTINFO flag in rev.1.43. Fixed wrong
authorBruce Evans <bde@FreeBSD.org>
Mon, 10 Nov 2003 19:06:09 +0000 (19:06 +0000)
committerBruce Evans <bde@FreeBSD.org>
Mon, 10 Nov 2003 19:06:09 +0000 (19:06 +0000)
commitc00209396cd8d7551fb6b8ddf98bab5b14aef96b
treeb08d4dbce91606fa6dcb08a218a3fb811f040da6
parentcd902b7719e3d603189e1ee77d549bb2f7aa3c25
Fixed loss of setting of the RB_BOOTINFO flag in rev.1.43.  Fixed wrong
comment about this flag in rev.1.61.  It is not historical like the
comment said; it is the flag that says that most of what is laboriously
put in the bootinfo struct is actually there.  Newer kernels were
bootable by even the broken boot2 without losing anything except the
symbol table, but older kernels need at least the memory sizes.

Restoring the "|" with RB_BOOTINFO that was lost in rev.1.43 costs 5
bytes.  The fix can be done in only 4 bytes by fixing some code that
was removed in rev.1.61 (put RB_BOOTINFO back in in the initial value
of "opts" and fix RBX_MASK to not clobber it.)
sys/boot/i386/boot2/boot2.c
sys/boot/i386/gptboot/gptboot.c