summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386
Commit message (Collapse)AuthorAgeFilesLines
* Use NEXTDOSPART instead of MAX_SLICES.phk2003-01-201-3/+2
|
* Simplify the Makefile by just using our standard PROG variable.obrien2003-01-181-9/+8
|
* Save 4 more bytes by not initializing opts to 0. This moves it fromimp2003-01-142-2/+2
| | | | | | the data section to the bss section givig us initialization for free. Noticed by: bde
* Fix interactive booting:imp2003-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
* RIP liloldr.obrien2002-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.
* -mno-align-long-strings can make things smaller, so lets use it in hopesobrien2002-12-212-0/+2
| | | | that it does here.
* Put back the casts to unsigned. While no strictly necessary for itsimp2002-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
* Renamed the loader's zipfs to gzipfs. zipfs.c was repo-copied to gzipfs.c.jake2002-12-191-1/+1
|
* I didn't intend to delete this rm from the Makefile. It snuck in atimp2002-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
* Reduce diffs with Peter's expanded diffs:imp2002-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.
* Make both UFS1 and UFS2 fit on the same boot blocks. These are aimp2002-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
* Remove unneeded casts. Add others to make WARNS=5 happy.obrien2002-12-152-12/+12
|
* Employ the unused bytes after the disklabel in the second sector. This makesphk2002-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.
* Remove unnecessary call to fsread().phk2002-12-142-2/+0
|
* Always use the smaller GCC builtin memcpyphk2002-12-142-20/+0
|
* Remove unused variable.phk2002-12-142-2/+2
|
* Don't fill in the table with the BIOS idea about disk-geometry, we don'tphk2002-12-142-30/+0
| | | | use it. This saves a surprising number of bytes.
* Uniformly refer to a file system as "file system".ru2002-12-121-1/+1
| | | | Approved by: re
* Correctly recognize both bogus and genuine BSD disklabels.phk2002-11-031-1/+4
| | | | | | Don't expect me to participate in a discussion which is which. Sponsored by: DARPA & NAI Labs.
* Revert MEM_USR back to 0xa000 for BTX clients. Instead, adjust boot2jhb2002-10-088-18/+18
| | | | | | | to run at 0xc000 by changing its virtual start address from 0x1000 to 0x2000. Tested by: phk
* Now that ufsread.c doesn't do 64bit divide remainder operations,phk2002-10-082-30/+4
| | | | | | don't bother with libkern. Sponsored by: DARPA & NAI Labs.
* Save a couple of bytes by not returning ints nobody care about.phk2002-10-082-12/+12
| | | | Sponsored by: DARPA & NAI labs
* Reinstate rev 1.36 with an important line that got missed. Note thisgreen2002-10-082-4/+10
| | | | | also improves the "random undocumented offsets into various memory spaces" a little bit.
* Remove unused TYPE_WD and TYPE_WFD.phk2002-10-082-4/+0
|
* Correctly calculate dmadat: We need to take the address of _end, it'sphk2002-10-082-2/+2
| | | | | | | contents is irrelevant and likely to be zero; This doesn't change the resultant value, but it does save a couple of bytes because &_end is constant.
* Unbreak boot2 by backing out rev 1.36 to Makefile, which does notphk2002-10-082-6/+2
| | | | | | | | | | | | | | | | | | work as advertised: bang# pwd /bang/src/sys/boot/i386/boot2 bang# make clean >& /dev/null bang# cvs -q update -r 1.35 Makefile >& /dev/null bang# make >& /dev/null bang# cat /usr/obj/`pwd`/boot2.h #define XREADORG 0x725 bang# cvs -q update -r 1.36 Makefile > & /dev/null bang# make clean > & /dev/null bang# make > & /dev/null bang# cat /usr/obj/`pwd`/boot2.h #define XREADORG 0x25 bang#
* Save four bytes by shortening a string two chars.phk2002-10-082-4/+2
| | | | Sponsored by: DARPA & NAI Labs.
* Correct a bug in adding 0x700 to a number.green2002-10-072-2/+6
|
* Conditionalize the number of sectors loaded by boot1.s on UFS1/UFS12.phk2002-10-076-12/+84
| | | | | | | | Conditionalize the "XX bytes left" checks reference on UFS1/UFS12. Conditionally build the necessary 64bit math for boot2 if UFS12. Sponsored by: DARPA & NAI Labs.
* Change the comment character from # to // in boot1.s and runphk2002-10-074-646/+648
| | | | | | it through CPP so we can conditionalized things. Sponsored by: DARPA & NAI Labs
* Correctly adjust for moved start address.phk2002-10-072-2/+2
| | | | | | | | It seems that the existence of a "depend" target in src/sys/boot is not to be taken as an indication that it actually does what one would expect, at least it clearly threw my testing off. Apologies to: jhb
* Correctly compensate for both offset and unoffset on-disk BSD disklabels.phk2002-10-072-2/+4
| | | | Sponsored by: DARPA & NAI Labs.
* Move MEM_USR a page upwards to make space for larger UFS1 boot2.phk2002-10-074-10/+10
| | | | | | | Load 4 sectors more than we used to. This is harmless overhead for the UFS1_ONLY case, but sufficient for boot2(UFS1+2). Sponsored by: DARPA & NAI Labs
* Move the definition of UFS1_ONLY into the Makefiles where it belongs.phk2002-10-072-0/+4
| | | | Sponsored by: DARPA & NAI Labs.
* Don't call INT 12H anymore in boot program.iwasaki2002-10-013-2/+6
| | | | | | | | | | | Many recent machine have a broken INT 12H (Get base memory size) implementation and boot program stops if INT 12H is called. This commit should solve the problem at very first step of FreeBSD installation occurred on newer some machines. Reviewed by: bde, jhb MFC after: 1 week
* Split MBR and PC98 on-disk sliceformats out from disklabel.h, step 1:phk2002-10-013-0/+3
| | | | | | | | | | | | | | | | Peter had repocopied sys/disklabel.h to sys/diskpc98.h and sys/diskmbr.h. These two new copies are still intact copies of disklabel.h and therefore protected by #ifndef _SYS_DISKLABEL_H_ so #including them in programs which already include <sys.disklabel.h> is currently a no-op. This commit adds a number of such #includes. Once I have verified that I have fixed all the places which need fixing, I will commit the updated versions of the three #include files. Sponsored by: DARPA & NAI Labs.
* Use as's --defsym switch to compensate for the loss of the M4 substitutionpeter2002-09-302-3/+1
| | | | | | of SIOPRT which broke kgzldr and therefore make release. Pointed out by: murray
* use __packed.alfred2002-09-233-26/+26
|
* Initiate deorbit burn for the i386-only a.out related support. Moves arepeter2002-09-1713-78/+6
| | | | | | | | | | | | | | | under way to move the remnants of the a.out toolchain to ports. As the comment in src/Makefile said, this stuff is deprecated and one should not expect this to remain beyond 4.0-REL. It has already lasted WAY beyond that. Notable exceptions: gcc - I have not touched the a.out generation stuff there. ldd/ldconfig - still have some code to interface with a.out rtld. old as/ld/etc - I have not removed these yet, pending their move to ports. some includes - necessary for ldd/ldconfig for now. Tested on: i386 (extensively), alpha
* Parse hint.acpi.0.disabled correctly.iwasaki2002-09-051-2/+10
| | | | | | Now that hint.acpi.0.disabled="0" won't disable acpi as expected. Pointed-out by: bde
* Restore Rev. 1.40 (remove "Keyboard yes/no" printf).kan2002-09-012-2/+2
| | | | | | | GCC 3.2 overflows boot2 by 12 bytes, this patch brings it back within the boundaries, with 12 bytes available for future bloat. Approved by: obrien
* Revert previous untested revision. The i386 loader consists of three parts:jhb2002-08-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At the front is btxldr, in the middle is BTX itself (our mini-kernel), and then the 'client' (loader.bin) which is the actual loader itself. boot2 just executes a raw ELF or a.out binary with the only setup provided being that a bootinfo structure is passed on the stack. Now, since loader.bin is a BTX client, the loader needs to be able to locate a BTX kernel for the client to execute in the context. Thus, just like pxelder, btxldr uses the a.out header on the loader binary to find the BTX kernel stored in the loader and set it up. It does _not_ just reuse the BTX kernel that boot2 invoked it with. This is because it can't assume that it will _have_ a "spare" BTX kernel lying around. For example, when cdboot loads the loader there isn't an existing BTX kernel. In fact, cdboot will only work with an a.out loader as well since it also "borrows" the BTX kernel in the loader binary (which it finds by parsing the a.out header) just as pxeldr does. The only difference between cdboot and pxeldr is where they get /boot/loader from. If we wanted to make /boot/loader be an actual ELF binary we would need to change the following utilites to handle that (and they all have to be able to handle locating the BTX kernel inside of an ELF binary somehow): - btxldr - pxeldr - cdboot If we didn't want to require a flag day but make the transition smooth then we need to be able to support both a.out and ELF versions of /boot/loader which isn't exactly trivial since all three of these utilities are written in assembly. Pointy-hat to: peter
* s/hint.acpi.0.disable/hint.acpi.0.disabled/iwasaki2002-08-302-2/+2
| | | | | | | | | Fix device hints entry for disabling acpi(4). This also should fix the arbitration with apm(4) when both drivers are enabled. Note that your /boot/device.hints needs to be updated if you want to stop auto-loading acpi.ko or disable acpi(4).
* Try #2 at having /boot/loader default to ELF. Have pxeldr build itspeter2002-08-292-4/+19
| | | | | own a.out version of loader.bin rather than depend on ../loader/loader being a.out.
* Actually remove the stale a.out kld support. This is the stuff that waspeter2002-08-291-83/+0
| | | | never updated for the metadata infrastructure.
* Initiate deorbit burn of i386 a.out kld "support" in loader. Note thatpeter2002-08-293-6/+1
| | | | | | this was quite broken, it never was updated for metadata support. The a.out kld file support was never really used, as it wasn't necessary. You could always load elf kld's, even in an a.out kernel.
* Add help about hint.acpi.0.disable.iwasaki2002-08-091-0/+4
|
* Restore autoloading of ACPI module.obrien2002-08-091-0/+8
| | | | | Document the approved ways of disabling it. Submitted by: Daniel O'Connor <doconnor@gsoft.com.au>
* Don't auto load ACPI -- it causes trouble with my laptop and is TOTALLYobrien2002-08-091-8/+0
| | | | | undocumented how to control its loading and queries to freebsd-current go unanswered.
* Drop support for COPY, -c has been the default mode of install(1)ru2002-07-292-4/+4
| | | | | | for a long time now. Approved by: bde
OpenPOWER on IntegriCloud