aboutsummaryrefslogtreecommitdiff
path: root/sys/boot
Commit message (Collapse)AuthorAgeFilesLines
* FreeBSD 5.0 has stopped shipping /modules 2.5 years ago. CatchRuslan Ermilov2003-03-111-1/+1
| | | | | | | | up with this further by excluding /modules from the (default) kern.module_path. Notes: svn path=/head/; revision=112091
* Fix a few spelling errors.Tom Rhodes2003-03-071-3/+3
| | | | | | | Submitted by: Stefan Farfeleder <stefan@fafoe.dyndns.org> via -doc. Notes: svn path=/head/; revision=111957
* Document the tunable kern.ipc.nsfbufs in help.common and loader.8. SmallSean Chittenden2003-03-042-4/+11
| | | | | | | | | | nearby grammar fixup that saves a line of display while in the loader (help set tunables), but reuses the line for kern.ipc.nsfbufs. Approved by: roam Notes: svn path=/head/; revision=111890
* FreeBSD 5.0 has stopped shipping /modules 2.5 years ago. CatchRuslan Ermilov2003-03-033-3/+3
| | | | | | | | up with this further by excluding /modules from the (default) kern.module_path. Notes: svn path=/head/; revision=111852
* Fixed sys/boot/pc98/boot2/Makefile to use kern.mk andRuslan Ermilov2003-03-021-1/+1
| | | | | | | | | get rid of bsd.kern.mk completely. OK'ed by: bde Notes: svn path=/head/; revision=111764
* Add two loader tuneables that allow one to change the maximum number ofHartmut Brandt2003-03-021-0/+2
| | | | | | | | | | | | | | | | | | | | | queue items that can be allocated by netgraph and the number of free queue items that are cached on a private list. Netgraph places an upper limit on the number of queue items it may allocate. When there is a large number of netgraph messages travelling through the system (100k/sec and more) there is a high probability, that messages get queued at the nodes and netgraph runs out of queue items. In this case the data flow through netgraph gets blocked. The tuneable for the number of free items lets one trade memory for performance. The tunables are also available as read-only sysctls. PR: kern/47393 Reviewed by: julian Approved by: jake (mentor) Notes: svn path=/head/; revision=111749
* Speed up debugging in the context of unexpected traps by printingMarcel Moolenaar2003-03-012-10/+12
| | | | | | | | the address of the image base of the loader. Given cr.iip, we can use the symbol table to figure out what function caused the trap. Notes: svn path=/head/; revision=111693
* Paranoia: Don't use the length of the option string alone toMarcel Moolenaar2003-03-011-1/+1
| | | | | | | | determine whether we have command line options. We expect a valid string pointer as well. Notes: svn path=/head/; revision=111692
* Increase the block size for reading and writing from 8KB to 1MB andMarcel Moolenaar2003-02-261-4/+7
| | | | | | | | | | introduce a preprocessor define for it. The larger block size significantly speeds up the loading of the kernel. Submitted by: Arun Sharma <arun.sharma@intel.com> Notes: svn path=/head/; revision=111543
* Consistently use NOFORTH to control the usage of ficl.David E. O'Brien2003-02-265-21/+17
| | | | Notes: svn path=/head/; revision=111536
* Fixed CLEANFILES.Ruslan Ermilov2003-02-252-2/+2
| | | | | | | Submitted by: cron Notes: svn path=/head/; revision=111490
* Only apply rev 1.10 (which hacks around the i386 boot2 being too big forDavid E. O'Brien2003-02-251-0/+5
| | | | | | | both ufs1 and ufs2 support) on i386. Notes: svn path=/head/; revision=111456
* Revert to old (broken for over 1.5Tb filesystems) version of cgbaseKirk McKusick2003-02-241-0/+2
| | | | | | | | | so that boot loader once again will fit. Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=111410
* Simplify page alignment.Marcel Moolenaar2003-02-204-44/+16
| | | | Notes: svn path=/head/; revision=111168
* Don't bother to build ficl if NOFORTH is defined.Benno Rice2003-02-131-0/+2
| | | | Notes: svn path=/head/; revision=110783
* s/hw.pci_allow_unsupported_io_range/hw.pci.allow_unsupported_io_range/Tom Rhodes2003-02-081-1/+1
| | | | | | | The former was incorrect and gave an `unknown oid' error. Notes: svn path=/head/; revision=110554
* Remove special casing for running in the simulator from the kernelMarcel Moolenaar2003-02-0119-53/+1385
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and instead add platform, firmware and EFI stubs to the loader. The net effect of this change is that besides a special console and disk driver, the kernel has no knowledge of the simulator. This has the following advantages: o Simulator support is much harder to break, o It's easier to make use of more feature complete simulators. This would only need a change in the simulator specific loader, o Running SMP kernels within the simulator. Note that ski at this time does not simulate IPIs, so there's no way to start APs. The platform, firmware and EFI stubs describe the following hardware: o 4 CPU Itanium, o 128 MB RAM within the 4GB address space, o 64 MB RAM above the 4GB address space. NOTE: The stubs in the skiloader describe a machine that should in parts be defined by the simulator. Things like processor interrupt block and AP wakeup vector cannot be choosen at random because they require interpretation by the simulator. Currently the simulator is ignorant of this. This change introduces an unofficial SSC call SSC_SAL_SET_VECTORS which is ignored by the simulator. Tested with: ski (version 0.943 for linux) Notes: svn path=/head/; revision=110211
* SSC calls use break immediate 0x80000. 0x80001 only works forMarcel Moolenaar2003-02-012-2/+2
| | | | | | | break.i. Ski is rather broken in this respect. Notes: svn path=/head/; revision=110206
* MFi386: Install the "boot" image which is boot1 + boot2.Yoshihiro Takahashi2003-01-301-2/+7
| | | | Notes: svn path=/head/; revision=110102
* Link /boot/boot1 to the name /boot/boot to avoid per-arch naming of thePoul-Henning Kamp2003-01-261-0/+1
| | | | | | | bootstrap code for disklabel using architectures. Notes: svn path=/head/; revision=109888
* Build a file "boot" which consists of boot1 and boot2 concatenated.Poul-Henning Kamp2003-01-262-2/+12
| | | | | | | | There is little if any reason to treat the two components separately and it will simplify disklabel(8) and libdisk if we didn't. Notes: svn path=/head/; revision=109886
* Use NDOSPART instead of NEXTDOSPART.Yoshihiro Takahashi2003-01-211-2/+2
| | | | Notes: svn path=/head/; revision=109638
* MFi386: revision 1.63.Yoshihiro Takahashi2003-01-211-10/+9
| | | | Notes: svn path=/head/; revision=109637
* Fix module dependency (pre)loading on sparc64 by relocating the variablesJake Burkholder2003-01-211-6/+57
| | | | | | | | | | | read from the raw kld files. Submitted by: Hartmut Brandt <brandt@fokus.gmd.de> PR: 46870 Tested on: alpha (obrien), i386, sparc64 Notes: svn path=/head/; revision=109616
* Use NEXTDOSPART instead of MAX_SLICES.Poul-Henning Kamp2003-01-202-5/+4
| | | | Notes: svn path=/head/; revision=109559
* Simplify the Makefile by just using our standard PROG variable.David E. O'Brien2003-01-181-9/+8
| | | | Notes: svn path=/head/; revision=109498
* Minimally document hw.syscons.sc_no_suspend_vtswitch.Matthew N. Dodd2003-01-151-0/+6
| | | | | | | Requested by: Nate Lawson <nate@root.org> Notes: svn path=/head/; revision=109281
* Save 4 more bytes by not initializing opts to 0. This moves it fromWarner Losh2003-01-142-2/+2
| | | | | | | | | the data section to the bss section givig us initialization for free. Noticed by: bde Notes: svn path=/head/; revision=109235
* Fix interactive booting:Warner Losh2003-01-132-4/+8
| | | | | | | | | | | | | | | | o Revision 1.38 introduced the -n flag. It conflicted with the RB_BOOTINFO flag, so was in effect always on. Change the -n flag to be bit 0x1c instead of 0x1f. This also had the consequence that a mal-formed /boot.config would render the system unbootable because the user was unable to enter anything at all on the command line. o Remove the initialization of opt to be RB_BOOTINFO since we filter that bit out and do not otherwise use it. Reviewed by: jhb MFC after: 3 days Notes: svn path=/head/; revision=109197
* Add SCSI MO device support.Yoshihiro Takahashi2003-01-065-98/+156
| | | | | | | Submitted by: Kawanobe Koh <kawanobe@st.rim.or.jp> Notes: svn path=/head/; revision=108791
* Rename the dos_partition structure for pc98 to pc98_partition.Yoshihiro Takahashi2003-01-042-8/+8
| | | | Notes: svn path=/head/; revision=108650
* RIP liloldr.David E. O'Brien2002-12-314-364/+0
| | | | | | | | | | It is not complete (the LILO root= specification isn't passed to our loader for instance), it has not been touched in over 2 years. Linux has moved on to GRUB, so this is OBE now. If someone creeps up to work on it, it could become a port. Notes: svn path=/head/; revision=108476
* Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/Jens Schweikhardt2002-12-301-1/+1
| | | | | | | Add FreeBSD Id tag where missing. Notes: svn path=/head/; revision=108470
* -mno-align-long-strings can make things smaller, so lets use it in hopesDavid E. O'Brien2002-12-212-0/+2
| | | | | | | that it does here. Notes: svn path=/head/; revision=108149
* Put back the casts to unsigned. While no strictly necessary for itsWarner Losh2002-12-202-2/+2
| | | | | | | | | | current uses, the name strcmp has strong connotations that shouldn't lightly be discarded. This doesn't cost us anything. Submitted by: bde Notes: svn path=/head/; revision=108119
* Fix breakage from earlier inadvertant changes.Jake Burkholder2002-12-201-4/+0
| | | | Notes: svn path=/head/; revision=108115
* Renamed the loader's zipfs to gzipfs. zipfs.c was repo-copied to gzipfs.c.Jake Burkholder2002-12-1910-10/+13
| | | | Notes: svn path=/head/; revision=108100
* Add command `hcdp'. This command dumps the DIG64 HCDP table if oneMarcel Moolenaar2002-12-182-0/+150
| | | | | | | exists. Notes: svn path=/head/; revision=108025
* I didn't intend to delete this rm from the Makefile. It snuck in atWarner Losh2002-12-182-0/+2
| | | | | | | | | | | | the last second before the commit. # likely we can remove this hack now that gcc generates better aligned code # in the align to word case. Noticed by: bde Notes: svn path=/head/; revision=108016
* Reduce diffs with Peter's expanded diffs:Warner Losh2002-12-172-8/+8
| | | | | | | | 1) Put back the keyboard printing printf, at the cost of 58 bytes. 2) Minor tweak to getstr at no apparent cost. Notes: svn path=/head/; revision=108005
* Make both UFS1 and UFS2 fit on the same boot blocks. These are aWarner Losh2002-12-174-142/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | subset of Peter's patchs that are believed to be safe. Makefile tweaks: o -fomit-frame-pointer o Change default to building both UFS1 and UFS2 bootblocks. Lots of boot2 tweaks: o lookup is only ever called with kname, so use it directly. o inline memsize o getstr are only ever called with cmd, so hardware that. o tweaks to the parsing code to test after the conversion rather than before since we tested after anyways. o eliminate support for %x in printf. o eliminate a few bytes in printfs. o Tweak the boot banner. o eliminate support for wd and " " devices (I might add wd back to keep bde happy). o eliminate support for a few arguments. This takes us from -162 bytes free to 67 bytes free. I've tested this only on a few systems, so be careful when updating to this change. Submitted by: peter, imp, ian Notes: svn path=/head/; revision=108000
* Remove unneeded casts. Add others to make WARNS=5 happy.David E. O'Brien2002-12-152-12/+12
| | | | Notes: svn path=/head/; revision=107889
* Employ the unused bytes after the disklabel in the second sector. This makesPoul-Henning Kamp2002-12-144-48/+22
| | | | | | | | | | | | | it possible to make UFS1_ONLY and UFS2_ONLY versions which fit inside the traditional 16 sectors. Remove assorted now unneeded hackery. UFS1_AND_UFS2 still needs another 150 bytes to work, and that is probably not within our reach, ever. Notes: svn path=/head/; revision=107879
* Remove unnecessary call to fsread().Poul-Henning Kamp2002-12-142-2/+0
| | | | Notes: svn path=/head/; revision=107878
* Restructure so we can compile UFS1_ONLY, UFS2_ONLY or UFS1_AND_UFS2Poul-Henning Kamp2002-12-141-91/+33
| | | | | | | versions from the same basic function. Notes: svn path=/head/; revision=107877
* Always use the smaller GCC builtin memcpyPoul-Henning Kamp2002-12-142-20/+0
| | | | Notes: svn path=/head/; revision=107875
* Remove unused variable.Poul-Henning Kamp2002-12-142-2/+2
| | | | Notes: svn path=/head/; revision=107874
* Don't fill in the table with the BIOS idea about disk-geometry, we don'tPoul-Henning Kamp2002-12-142-30/+0
| | | | | | | use it. This saves a surprising number of bytes. Notes: svn path=/head/; revision=107869
* Uniformly refer to a file system as "file system".Ruslan Ermilov2002-12-122-2/+2
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107788
* Pass the HCDP table address to the kernel. If no such table exists,Marcel Moolenaar2002-12-108-28/+33
| | | | | | | | | | | | | | | | NULL is passed. The address of the HCDP table can be found by iterating over the configuration tables in the EFI system table. To avoid more duplication, a function can be called with the GUID of interest. The function will do the scanning. Use the function in all places where we iterate over the configuration tables in an attempt to find a specific one. Bump the loader version number as the result of this. Approved by: re (blanket) Notes: svn path=/head/; revision=107733