summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386
Commit message (Collapse)AuthorAgeFilesLines
* Re-add sio.S, and properly deal with assembler files.ru2004-02-174-383/+8
| | | | Repocopied by: joe
* Fix the AMD64 build: this file shouldn't exist.obrien2004-02-161-80/+0
|
* Fixed the fatal bug introduced in previous commit: don't stripru2004-02-121-0/+1
| | | | kgzldr.o -- kgzipping with such a loader produces bad images.
* Clean CLEANFILES.ru2004-02-121-1/+1
|
* kzip(8) is long dead.ru2004-02-111-2/+0
|
* Get rid of unnecessary use of m4(1) by using cpp(1) instead.ru2004-02-119-1925/+53
| | | | | | | | (John tells me there were problems when trying this before, but it appears to be safe these day.) OK'ed by: jhb Repocopied by: joe
* - Factor out -nostdlib to an upper level Makefile.inc.ru2004-02-0912-58/+64
| | | | | | | | | | | - Now that bsd.prog.mk deals with programs linked with -nostdlib better, and has a notion of an "internal" program, use PROG where possible. This has a good impact on the contents of .depend files and causes programs to be linked with cc(1). XXX: boot2 couldn't be converted as it's actually two programs. Tested on: i386, amd64
* Argh, unbreak "make depend" for AMD64.ru2004-02-074-6/+9
| | | | Reported by: kris
* - Removed -elf which is not a valid gcc(1) option anymore.ru2004-02-075-9/+3
| | | | - Removed -ffreestanding; it's enforced by ../Makefile.inc.
* Generate .depend file.ru2004-02-072-0/+4
|
* Untangle building of AMD64 boot code.ru2004-02-075-14/+6
| | | | Tested on: amd64 (sledge)
* First round of cleanups to sys/boot/ makefiles:ru2004-02-0612-249/+186
| | | | | | | | | | | | - do not use PROG for what's not a real C program, - use sys.mk transformation rules where possible, - only create the "machine" symlink on AMD64, - removed MAINTAINER lines in individual makefiles, - added the LIBSTAND defitinion to <bsd.libnames.mk>, - somewhat better contents in .depend files. Tested on: i386, amd64 Prodded by: bde
* Inherit BINDIR from a parent Makefile.inc.ru2004-02-068-7/+2
|
* Only include ../Makefile.inc once in loader/Makefile.ru2004-02-062-5/+2
|
* If a transfer to or from a floppy disk crosses a 64k boundary, we have tojhb2004-01-211-2/+2
| | | | | | | | | | | | | | | use a bounce buffer for the actual transfer to avoid crossing a 64k boundary. To do this, we malloc a buffer twice as big as we need and then find an aligned block within that buffer to do the transfer. The check to see which part of the block we use used the wrong variable for part of the condition meaning that in certain edge cases we would ask the BIOS to cross a 64k boundary. The BIOS request would then fail resulting in file transfers that just magically fail in the middle without any apparent reason. Specifically, my tests for the splitfs boot floppies managed to trigger this edge case. MFC after: 1 week X-MFC-info: along with fixes to libstand filesystems
* - Use constant for shift when converting file length in bytes to a sectorjhb2004-01-121-2/+5
| | | | | | | | | | count. - Fix the twiddle output so that it actually spins. - Save %cx around BIOS calls to read in sectors from the disc as at least one BIOS trashes %cx when called to read off of a USB CD-ROM drive. Submitted by: Martin Nilsson <martin@gneto.com> MFC after: 1 week
* Allow one to specify the com port settings for boot0sio.obrien2004-01-063-5/+11
|
* - Change the lookup() function to report success or failure using the carryjhb2003-12-111-9/+33
| | | | | | | | | | | | | | | | | | | | | | flag rather than explicitly halting if a lookup failed. - Add a loop around the call to lookup() to traverse an array of nul-terminated strings for possible paths to the boot loader. A double nul character denotes the end of the list. - Add a new message to say that the boot failed if all of the path lookups for a boot loader file failed. - Add '/boot/loader' as a second boot path. If you build an ISO using risky options to mkisofs such as -U then the loader will be called '/boot/loader' rather than '/BOOT/LOADER;0'. This allows cdboot to work with such risky ISO images. - Bump version to 1.2 to denote added functionality. The basic idea as well as some of the code were provided by the submitter, but I added some extra code to use a loop rather than hard-code just 2 possible paths. PR: misc/43543 Submitted by: kientzle MFC after: 1 week
* Properly fix a typo that the previous revision made even worse.jhb2003-12-111-1/+1
|
* Sync these two files.obrien2003-12-093-57/+61
|
* Hook boot0sio to the build. Use 'boot0cfg -b /boot/boot0sio' to use.obrien2003-12-083-15/+14
|
* Add a serial console capable version of the FreeBSD boot manager. This hasbms2003-12-083-1/+883
| | | | | | | been lying around my tree(s) for the past year or so. It could do with TLC. Requested by: obrien Sponsored by: Weyland-Yutani Corporation
* With the beastie menu a problem was introduced in which selecting adcs2003-11-211-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | different kernel to boot with kernel="NAME" would load the kernel and loader.conf-selected modules from /boot/NAME, but it would not change module_path. So, for instance, the automatically loaded acpi.ko would come from /boot/kernel/acpi.ko, *always*. Mind you, this happened for unassisted boot. If you interrupted, typed "unload" and then "boot NAME", it would Do The Right Thing. The source of the problem is the double initialization with beastie's loader.rc. One would happen inside "start", and would load the kernel. The next one would happen later in the loader.rc script, resetting module_path. Because module_path is set to the Right Value by the functions in support.4th that actually load the kernel, when beastie.4th proceeded to boot module_path would remain wrong, as the kernel was already loaded. This can be corrected by removing either initialization, and also by changing the command used by beastie.4th from "boot" to "boot-conf", which makes sure you use the right kernel and modules. I chose to remove the second initialization, since this let you interrupt (or confirm) boot before beastie even comes up. I avoid also doing the boot-conf change because that would simply cause the kernel and modules to be loaded twice (in fact, that was my original patch, until, in writing this very commit message, I saw the error of my ways). This commit changes the semantics of module loading when using the beastie menu. Now it does what one would expect it to, but not what it was actually doing, so something may break for unusual setups depending on broken behavior. As our japanese friends so nicely put it, shikata ga nakatta. :-) Approved by: re (scottl)
* Update the size of the OS string table that wasn't updated in the previousjhb2003-11-201-1/+1
| | | | | | | commit that removed the UNIX entry. Submitted by: Rudolf Cejka <cejkar@fit.vutbr.cz> Approved by: re (rwatson)
* When rebooting the machine jump to 0xf000:0xfff0 instead of 0xffff:0x0.phk2003-11-162-2/+2
| | | | | | | | | | While we end up the same place, we end up with two different CS register values after the jump and 0xf000 is compatible with the hardware reset value. This makes a difference if the BIOS does a near jump before a far jump. Detective work and patch by: Adrian Steinmann <ast@marabu.ch>
* Changed the RB_PAUSE flag from 0x40000 to 0x100000 and marked the oldbde2003-11-152-4/+26
| | | | | | | | | | | | | | | | | | value as reserved for internal use in boot blocks, because RB_PAUSE broke binary compatibility by usurping the RB_DUAL flag. Probably no one except me has boot blocks for which this matters, since most boot blocks based on biosboot including pc98's boot2 can't boot elf kernels, and /boot/loader doesn't properly pass flags set by the previous stage. reboot.h: Also mark the historical RB_PROBEKBD flag (0x80000) as reserved for internal use in boot blocks. boot2.c: Added comments to inhibit usurping of other flags. Approved by: guido, imp MFC after: 1 week
* Include <sys/reboot.h> the definition of RB_BOOTINFO. The previousbde2003-11-112-0/+4
| | | | | | commit broke the world because it depended on namespace pollution that was only in my version of <machine/bootinfo.h>. The include was removed in rev.1.63 after the last reference to it went away in rev.1.61.
* Fixed loss of setting of the RB_BOOTINFO flag in rev.1.43. Fixed wrongbde2003-11-102-4/+4
| | | | | | | | | | | | | 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.)
* Fix an incorrect quote character in an M4 test conditon. Basically, onejhb2003-11-062-2/+2
| | | | | of the verbose print statements that BTXLDR_VERBOSE enables wasn't properly enabled.
* Don't repeat selected defines from ns16550.h or sioreg.h. Justbde2003-09-161-20/+1
| | | | | include ns16550.h. The missing installation of ns16550.h was fixed long ago and the misplaced defines in sioreg.h were fixed recently.
* Add BOOT_PXELDR_ALWAYS_SERIAL option which forces serial console.phk2003-09-033-0/+15
|
* Use __FBSDID().obrien2003-08-2528-73/+95
| | | | Also some minor copyright style cleanups.
* Many newer CF do not handle having the entire track read from them atimp2003-08-222-0/+8
| | | | | | | | | | boot time. Instead, read it a sector at a time. While this sounds like a significant slowdown, I've not been able to measure any signficant difference. Submitted by: luigi Reviewed by: jhb, sam (both a while ago) MFC After: 3 days
* Consistently use the BSD u_int and u_short instead of the SYSV uint andjhb2003-08-071-1/+1
| | | | | | | ushort. In most of these files, there was a mixture of both styles and this change just makes them self-consistent. Requested by: bde (kern_ktrace.c)
* Null terminate the OEM hint. This rids my laptop of the smiley face thatnjl2003-08-071-0/+1
| | | | would follow the 6 valid chars of the table entry.
* Add include file so this builds with new acpicanjl2003-07-131-0/+1
| | | | Reported by: Kevin Oberman <oberman@es.net>
* Revert non-style part of the recent two deltas that dealt withru2003-07-021-5/+1
| | | | | using as(1) to compile plain assembler source files; bsd.lib.mk has been fixed (in revision 1.147).
* Switch to using bsd.prog.mk; this gives us back the standardru2003-06-301-5/+2
| | | | .s.o transformation rule.
* Revision 1.13, besides its useful part, replaced bsd.prog.mk byru2003-06-301-10/+4
| | | | | | | | | | | | | | | | | | bsd.lib.mk and thus broke the build since AFLAGS were not taken into considered anymore, as bsd.lib.mk currently has wrong .s.o rule that uses cc(1) instead of as(1). Revision 1.14 reverted to using as(1), and revision 1.15 brought AFLAGS back to the business, but revision 1.14 also broke "make clean". To fix this, but not break anything that was fixed in revisions 1.13-1.15, we revert mostly to revision 1.13 except for switching back to using bsd.prog.mk. This gives us back the default .s.o rule from sys.mk that uses as(1), and fixes "make clean" by restoring the full contents of OBJS. Also fixed LDFLAGS.
* Build on amd64. Yes, I know this isn't particularly nice.peter2003-06-266-2/+38
|
* When looking for the ':' separator in the root path, don't go pastiedowse2003-06-161-2/+2
| | | | | | | | | | the terminating '\0'. Since the initialisation of rootpath in libstand/bootp.c may copy junk into the rest of the buffer, it was possible for the code to find a ':' after the '\0' and do the wrong thing. Reviewed by: ps MFC after: 1 week
* Add ${AFLAGS} to 'as' invocation.obrien2003-06-072-2/+2
|
* Don't use a C compiler to assemble a pure asm file.obrien2003-06-071-1/+7
|
* Tweak make values and targets not to build kgzldr.o atkuriyama2003-06-061-4/+8
| | | | | | installation stage. Reviewed by: bde
* Don't use a C compiler to assemble a pure asm file.obrien2003-06-021-2/+5
|
* Accpet '1'..'5' in place of F1..F5 for serial console users.obrien2003-06-011-3/+5
| | | | Reviewed by: Bruce M Simpson <bms@spc.org>
* Enable the new bootloader for i386 only. The new loader.rc is will onlyscottl2003-05-312-1/+21
| | | | | | | be installed if an old one does not exist, i.e. only during install, not during upgrades. Approved by: re
* Add a new bootloader menu. Pull in screen.4th and frames.4th from thescottl2003-05-301-0/+1
| | | | | | | examples directory to support it. This is installed only on i386 for now. It will be enabled in a later commit. Approved by: re
* Fix a bug in the AMD64 trampoline. I misunderstood the implicitpeter2003-05-171-1/+1
| | | | | | 32->64 bit zero extend. This changes a movl to an orq. Approved by: re (amd64 bits)
* Revert leftover AMD64 disable-acpi-module stuff.peter2003-05-121-3/+0
|
OpenPOWER on IntegriCloud