]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add the new cdldr CD bootstrap loader. This patch includes the following:
authorjhb <jhb@FreeBSD.org>
Thu, 27 Jan 2000 21:21:01 +0000 (21:21 +0000)
committerjhb <jhb@FreeBSD.org>
Thu, 27 Jan 2000 21:21:01 +0000 (21:21 +0000)
commit372aab7cb7ba4c4b8a577deb8144be83c910bc81
treeb4785689232fee6eb6466dc7ffa3145397733193
parentf1a9497df5db81a71987fa20f10c831030987e36
Add the new cdldr CD bootstrap loader.  This patch includes the following:

- Fix btxldr to preserve a NULL bootinfo pointer when it copies the kernel
  arguments.
- Add the cdldr bootstrap program.  This program is tacked onto the
  beginning of the standard 3rd stage boot loader (/boot/loader) to form
  the CD boot loader (/boot/cdboot).  When a CD is booted, the cdboot file
  is copied into memory instead and executed.  The cdldr stub emulates the
  environment normally provided by boot2 and then starts the loader.  This
  booting method does not emulate a floppy drive, but boots directly off of
  the CD.  This should fix the problems some BIOS's have with emulating a
  2.88 MB floppy image.
- Add support to the loader to recognize that it has been booted by cdldr
  instead of boot2 and use a simpler method of extracting the BIOS boot
  device.
sys/boot/i386/Makefile
sys/boot/i386/btx/btxldr/btxldr.S
sys/boot/i386/btx/btxldr/btxldr.s
sys/boot/i386/cdboot/Makefile [new file with mode: 0644]
sys/boot/i386/cdboot/cdboot.s [new file with mode: 0644]
sys/boot/i386/cdldr/Makefile [new file with mode: 0644]
sys/boot/i386/cdldr/cdldr.s [new file with mode: 0644]
sys/boot/i386/loader/Makefile
sys/boot/i386/loader/main.c