summaryrefslogtreecommitdiffstats
path: root/sys/boot/common
Commit message (Collapse)AuthorAgeFilesLines
* Don't indirect through a null pointer if we run out of kernel filenames.dfr2000-10-251-1/+1
|
* The default search path for kernel and modules was bogus. It makes nodcs2000-09-161-1/+1
| | | | sense for /boot/kernel to come last.
* Start countdown only _after_ the kernel was loaded. Not very fair otherwise.dcs2000-09-151-4/+4
|
* Change NOFORTH comment character from # to \ followed by space,dcs2000-09-101-1/+1
| | | | | | | | | to make things more interchangeable between it and the FORTH case. Perhaps requiring the space is a bit too much, but... Nothing in the tree seems to produce loader.rc files with comment line, at this time.
* Update boot and boot-conf descriptions to reflect new and old changes.dcs2000-09-081-0/+5
| | | | Add a warning in loader(8) that boot might be changed by loader.4th.
* Make the pnp structure a global variable, so it can be used elsewhere.dcs2000-09-082-1/+5
|
* Fix autoboot. Now autoboot *always* show the correct kernel name. Itdcs2000-09-082-17/+37
| | | | | | | | | | | | | | | | | | gets the name from the environment variable kernelname, which is set when a kernel is loaded. For this reason, autoboot will _first_ try to load a kernel, and only proceed with the wait prompt after that succeeds. If it fails, it will abort immediately. While I understand some may think this behavior undesirable, I think it is, overall, the best thing to do, even if we do not consider the aesthetic issue. Notice that anyone using the default loader.rc already has the kernel loaded before autoboot. On unload, unset kernelname. Separate the code that tries to load a kernel from the list of options to the function loadakernel(). It is used by both boot() and autoboot().
* With the committed changes to the loaders modules path code, the kernelobrien2000-09-061-1/+1
| | | | path does not need to be hard coded.
* Fix the kernel default load from "/boot/modules" to "/boot/kernel".obrien2000-09-051-1/+1
| | | | Reported by: dcs
* The kernel is now known as `kernel.ko' and it and its matching modulesobrien2000-09-052-2/+2
| | | | live in ``/boot/kernel/''.
* List loader.conf and friends in the FILES section.sheldonh2000-08-241-0/+6
| | | | Requested by: obrien
* Add missing "is".dcs2000-08-111-1/+1
| | | | | PR: 20524 Submitted by: Peter Pentchev <roam@orbitel.bg>
* Add support to send the string 'PXEClient' as the Vendor classps2000-08-111-1/+2
| | | | | | identifier to the DHCP server. Now you can check for this string in your dhcp configuration to decide whether you will hand out a lease to the client or not.
* Bring back the perform() function. However, conditionionalize it onjhb2000-08-041-0/+36
| | | | BOOT_FORTH as it is only used if BOOT_FORTH is not defined.
* Fix the more obvious warnings to deal with my earlier warning cleanups.jhb2000-08-031-1/+0
|
* Cleanup warnings. Most of these are signed/unsigned warnings, as well asjhb2000-08-0312-162/+135
| | | | some added const's.
* Don't call printf with no format string.kris2000-07-101-1/+1
|
* Don't call printf with no format string. This is technically a securitykris2000-07-101-2/+2
| | | | | vulnerability and could in principle be used to upload a new kernel from the bootloader :-)
* Typo fix: tunnable.mph2000-06-251-3/+2
| | | | | Backslash-parsing is not the role of printf(3), but is provided by the C language.
* Whitespace-only changes: apply accepted line breaking style as asheldonh2000-06-221-91/+138
| | | | | | pre-cursor to other markup changes. Accepted in principle by the author.
* Fix vocabulary juggling so that builtins voc is always searched beforedcs2000-06-161-2/+2
| | | | | | | forth vocabulary when initially creating the builtins. FICL 2.05 has a better way to do this, but this works for now. Fixes "?".
* Remove the setting of sourceid from bf_vm(), as bf_vm() really hasdcs2000-06-142-5/+7
| | | | | | | | | | | | no clue. Set sourceid to 0 when booting, which is the correct setting for stdin. Set sourceid to an arbitrary fd when include'ing, preserving and restoring the previous sourceid. This is possibly broken(), as 0 is a valid fd. Maybe we should +1 to this value. This fixes the version problem widely reported.
* Delay calling the device cleanup routines until the absolute lastps2000-06-143-5/+13
| | | | | | moment. We were cleaning up after PXE too early and the module dependancy code would not be able to load any files if it needed too.
* Make typing 'q' or 'Q' work for the show command as the pager promptps2000-06-141-1/+2
| | | | says it should.
* Place original builtins in a vocabulary called "builtins". Thisdcs2000-06-071-0/+6
| | | | | is intended mainly for debuging purposes, but it can be used by other words if done carefully.
* Remove residual printf.dcs2000-06-071-1/+0
| | | | Prodded by: msmith
* Back out the previous change to the queue(3) interface.jake2000-05-262-4/+4
| | | | | | It was not discussed and should probably not happen. Requested by: msmith and others
* Change the way that the queue(3) structures are declared; don't assume thatjake2000-05-232-4/+4
| | | | | | | | the type argument to *_HEAD and *_ENTRY is a struct. Suggested by: phk Reviewed by: phk Approved by: mdodd
* Document abial's .#.dcs2000-05-231-0/+4
|
* One of loaders' bugs disappeared somewhere along the way.dcs2000-05-191-5/+0
|
* Move man page directives to common/Makefile.inc.dcs2000-05-191-0/+5
|
* Make corrections to allow for Alpha.dcs2000-05-181-4/+4
|
* Only probe network settings on the first open of the network device.dfr2000-05-131-0/+1
| | | | | The alpha firmware takes a seriously long time to open the network device the first time.
* The loader was written so that if /kernel was missing /kernel.old wouldobrien2000-05-131-0/+2
| | | | | | | | be booted. Due to a bug, this wasn't happening. There is still a lesser bug in that the loader decides which file to boot after the 10sec count down. This means the bootfile listed in the count down in is wrong in the case where the loader will boot /kernel.old.
* long != int on Alphas.bp2000-05-121-1/+2
|
* Make documentation on recently added heap? command reflect reality.dcs2000-05-041-2/+2
|
* Add "heap?" to loader's man page.dcs2000-05-041-0/+3
|
* Further improve ordering.dcs2000-05-041-4/+4
|
* Sort entries in FreeBSD-specific FICL commands.dcs2000-05-041-14/+14
|
* Add $FreeBSD$peter2000-05-011-0/+1
|
* GC unused variable (size)peter2000-05-011-1/+0
|
* Fix some warnings on the Alpha. sizeof() returns different things onpeter2000-05-011-2/+2
| | | | x86 and Alpha. Sigh.
* Update loader logic to distinguish modules vs. files.bp2000-05-016-351/+601
| | | | | | | Add support for module metadata. The old way of dependancy handling will be supported for a while. Reviewed by: peter
* Teach the loader about the ext2fs filesystem, extended partitions, andjlemon2000-04-291-44/+18
| | | | the new readdir function.
* Add a cleanup function. This is needed for PXE where you shouldps2000-04-201-0/+6
| | | | shutdown the UNDI and unload the stack.
* Some more i386-only BIOS-friendliness:msmith2000-04-161-0/+8
| | | | | | | | | - Add support for using the PCI BIOS functions for configuration space accesses, and make this the default. - Make PNPBIOS the default (obsoletes the PNPBIOS config option). - Add two new boot-time tunables to disable each of the above.
* bcache_strategy() now receives an unit number, and keep track of whatdcs2000-03-152-8/+25
| | | | | | | | | | was the last unit number received. If it changes, it flushes the cache. Add bcache_flash(). The actual fix is sligthly different from the one in the PR. PR: 17098 Submitted by: John Hood <jhood@sitaranetworks.com>
* Fix the loader to handle module dependencies properly. More fixesbp2000-02-252-109/+82
| | | | | | | will be provided after modmetadata appears in the kernel. Reviewed by: msmith Approved by: jkh
* Close a file descriptor leak in the code which loads file objects.msmith2000-02-171-0/+2
| | | | | Submitted by: Paul Saab <paul@mu.org> Approved by: jkh
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"peter1999-12-291-3/+3
| | | | | | is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come.
OpenPOWER on IntegriCloud