summaryrefslogtreecommitdiffstats
path: root/sys/boot
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
|
* mdoc(7) janitor:simon2004-02-151-18/+32
| | | | | | - Fix hard sentence breaks. - Quote argument to the Nd macro. - Use Pa for filenames.
* Fix hw.acpi.os_name by renaming it to hw.acpi.osname. The "_name" suffixnjl2004-02-141-0/+4
| | | | | | | | | | is reserved by the loader, and thus any tunable name with that suffix will be silently discarded. Document this in the header and man page so that other developers do not develop so many bumps on the head after banging it against the wall. Detective work by: Mark Santcroos, grehan
* MFi386: Get rid of unnecessary use of m4(1) by using cpp(1) instead.nyan2004-02-136-1893/+107
| | | | Repocopied by: joe
* MFi386: revisions 1.74 and 1.75.nyan2004-02-131-3/+1
| | | | | - kzip(8) is long dead. - Clean CLEANFILES.
* MFi386: revision 1.20 (don't strip kgzldr.o)nyan2004-02-131-0/+1
|
* Don't create a mapfile during link. It's not needed for the build.marcel2004-02-134-8/+8
|
* o Don't build with -fpic. It's not needed and inconsistent with howmarcel2004-02-132-10/+0
| | | | | other constributions are compiled. o Remove powerpc specific additions to CFLAGS.
* 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
|
* Tidy up makefiles.ru2004-02-128-264/+74
| | | | Tested by: marcel
* kzip(8) is long dead.ru2004-02-111-2/+0
|
* Overhaul makefiles.ru2004-02-117-115/+61
|
* _start.S -> _start.s as the latter is pure asm file.ru2004-02-112-9/+1
| | | | Repocopied by: joe
* 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
* Since loader(8) on SPARC64 is a pure ELF executable (as opposedru2004-02-101-1/+0
| | | | | | to other architectures), there is no reason not to strip(1) it. Tested by: kensmith
* Loader makefile cleanup.grehan2004-02-092-92/+38
| | | | Submitted by: ru
* MFi386: Factor out -nostdlib and use PROG.nyan2004-02-099-54/+55
|
* MFi386.ru2004-02-093-52/+28
| | | | | | | | - Factor out common settings and put them in an upper level Makefile.inc. - Properly use PROG for real programs, not their products. - Further reduce diffs to i386 versions. Tested on: sparc64 (panther)
* - 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
* MFi386: Removed -elf and duplicate -ffreestanding.ru2004-02-074-9/+3
|
* - 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
|
* MFi386: Cleanups to sys/boot makefiles.nyan2004-02-079-104/+70
|
* Style: use the defined() expression explicitly.ru2004-02-071-3/+3
|
* Untangle building of AMD64 boot code.ru2004-02-077-28/+13
| | | | 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
|
* MFi386: revision 1.33nyan2004-01-282-2/+2
| | | | PR: kern/62005
* Sync with Oxford Dictionary. Style (add missing full stops) while I'm here.schweikh2004-01-271-5/+5
|
* Rename the kern.vm.kmem.size tunable to the more logical vm.kmem_size. Todes2004-01-273-7/+7
| | | | | | | | | | | assure backward compatibility (conditional on !BURN_BRIDGES), look it up by its old name first, and log a warning (but accept the setting) if it was found. If both the old and new name are defined, the new name takes precedence. Also export vm.kmem_size as a read-only sysctl variable; I find it hard to tune a parameter when I don't know its default value, especially when that default value is computed at boot time.
* 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
* PC98 uses the different frame code.nyan2004-01-181-21/+43
|
* Fix to support KANA and graphics characters which code are over 0x80.nyan2004-01-181-1/+1
|
* - 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
* Disable the APIC when selecting the 'Safe Mode' option of the loader. Thisscottl2004-01-091-0/+1
| | | | will disable both APIC interrupt routing and SMP.
* Allow one to specify the com port settings for boot0sio.obrien2004-01-063-5/+11
|
* Convert to __FBSDID.obrien2004-01-0433-67/+99
|
* Convert to __FBSDID.obrien2004-01-0424-45/+73
|
* - Add ':' as a separator between the OpenFirmware device space andgrehan2003-12-212-3/+4
| | | | | | | the file path. Commonly used on Macs e.g. "hd:9". - Update the ofw_setcurrdev routine to match libstand setenv prototype Not objected to by: sparc64
* Make __elfN(ofw_loadfile) match parameter declaration for file_formatgrehan2003-12-211-1/+4
| | | | | | | in boot/common/bootstrap.h. Having a 32-bit size when a 64-bit param is declared wreaks havoc on PPC. Not objected to by: sparc64
* Only print out an error if returned data size is < 0. A value of 0grehan2003-12-211-1/+2
| | | | | | happens almost every time at the end of a file when using NFS. No objection by: sparc64
* Use daddr_t instead of u_long for byte offset in strategygrehan2003-12-211-1/+1
| | | | | | routine to avoid >4G truncation on 32-bit systems. no objection by: sparc64
* - use correct pointer arithmetic in heapsize calculationgrehan2003-12-211-7/+29
| | | | | | - handle multiple Ofw memory regions when determining mem size - allow currdev to be set as a loader command-line option. parse() is used to allow future options to be processed.
* - 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
|
* Fix typo in comment.jhb2003-12-101-1/+1
|
OpenPOWER on IntegriCloud