summaryrefslogtreecommitdiffstats
path: root/sys/boot
Commit message (Collapse)AuthorAgeFilesLines
* Change the device path representation in libofw to use the full firmwarejake2002-11-1011-647/+93
| | | | | | | | | path, instead of an internal i386 specific one. Don't try to interpret a disklabel in ofw_disk.c, open the partition's device node directly and let the firmware do it. This fixes booting from a partition other than 'a' on sparc64, which is needed to support more installation methods. No objection: ppc
* 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.
* Fix indentation of comments.mini2002-11-021-17/+17
|
* Add loader variables to control the loading of various networking modules.mini2002-11-021-0/+31
| | | | Submitted by: David Yeske <dyeske@yahoo.com>
* o Fix a size calculation based on a 8KB page, while under EFImarcel2002-10-245-33/+71
| | | | | | | | | | | | pages are 4KB. o As a second order fix, don't assume we have enough space after the bootinfo block left in a page to hold the memory map. o A third order fix as that we removed the assumption that a bootinfo block fits in a single 8KB page. PR: ia64/39415 submitted by: Espen Skoglund <esk@ira.uka.de>
* Pass the right number of tlb slots to the kernel. The allocation schemetmm2002-10-181-10/+4
| | | | | | | was changed in r1.4, but I neglected to update most of the code in metadata.c. Pointy hat to: tmm
* Compile in support for zipfs and bzipfs so we can load the gzipped mfsrootjake2002-10-132-0/+14
| | | | that releases use.
* Remove '-DUFS1_ONLY' from CFLAGS. It is not needed.nyan2002-10-101-2/+0
|
* 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
* It seems that the only problem with UFS2 booting on i386 is the 64bitphk2002-10-081-10/+12
| | | | | | | | | divide/remainder calls. For reasons not resolved, compiling the relevant routines from libkern into boot2 results in stack corruption. Do the simple thing: Don't use 64bit divide/remainder operations. 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
* Added '#include <sys/diskpc98.h>'.nyan2002-10-071-0/+1
| | | | Submitted by: kawanobe@st.rim.or.jp (Kawanobe Koh)
* 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
* Ups, forgot to tell cvs commit about this file.phk2002-10-071-0/+1
| | | | | | Move UFS1_ONLY to Makefiles instead of common/ufsread.c Sponsored by: DARPA & NAI Labs
* Move the definition of UFS1_ONLY into the Makefiles where it belongs.phk2002-10-074-3/+5
| | | | Sponsored by: DARPA & NAI Labs.
* Connected boot2.nyan2002-10-031-1/+1
|
* Added some header files from -stable and fixed the boot[12] programs.nyan2002-10-038-7/+1077
|
* 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-303-4/+2
| | | | | | of SIOPRT which broke kgzldr and therefore make release. Pointed out by: murray
* Fixed to build after removing a.out suppot.nyan2002-09-241-6/+6
|
* use __packed.alfred2002-09-234-27/+27
|
* At great personal risk, add a __packed and __aligned(x) define thatpeter2002-09-232-2/+2
| | | | | | | | | | expand to __attribute__((packed)) and __attribute__((aligned(x))) respectively. Replace the handful of gcc-ism's that use __attribute__((aligned(16))) etc around the kernel with __aligned(16). There are over 400 __attribute__((packed)) to deal with, that can come later. I just want to use __packed in new code rather than add more gcc-ism's.
* MFi386: Remove a.out support.nyan2002-09-192-8/+2
|
* Remove -elf option.nyan2002-09-191-2/+0
|
* Initiate deorbit burn for the i386-only a.out related support. Moves arepeter2002-09-1716-93/+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
* Make SCSI_DELAY setable at boot time and runtime via thebrooks2002-09-021-0/+1
| | | | | | kern.cam.scsi_delay tunable/sysctl. Reviewed by: mdodd, njl
* Remove NOFORTH=yes, it seems to work now thanks to scottl.jake2002-09-021-1/+0
|
* 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
* Make ficl work on sparc64. The assumption that int == long == void * isscottl2002-08-312-9/+9
| | | | | | | | | very pervasive in this code. This fixes a few of those assumptions and band-aids over some others. Tested on: ia32 alpha sparc64 Reviewed by: peter jake (in concept)
* 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-303-3/+3
| | | | | | | | | 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-292-339/+0
| | | | never updated for the metadata infrastructure.
* Initiate deorbit burn of i386 a.out kld "support" in loader. Note thatpeter2002-08-296-14/+2
| | | | | | 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.
* Whitespace fix from last commit.trhodes2002-08-271-2/+4
|
* Fix some grammar errors in loader.conf.5trhodes2002-08-271-11/+11
| | | | | PR: 40237 Submitted by: Chris Pepper <pepper@rockefeller.edu>
* - Do not pretend to compile a kernel and remove the definitionrobert2002-08-211-2/+0
| | | | | | | of the _KERNEL macro. - Do not include <sys/pcpu.h> for no reason. Suggested by: jake
OpenPOWER on IntegriCloud