summaryrefslogtreecommitdiffstats
path: root/sys/boot
Commit message (Collapse)AuthorAgeFilesLines
* Don't pass RB_BOOTINFO to the kernel. There's no bootinfo actuallyimp2007-08-171-1/+1
| | | | | | | passed into the kernel, and the kernel will soon grow that ability on arm. Approved by: re@ (blanket)
* Use the .S version for now. I have a version optimized for size p4,imp2007-08-091-1/+1
| | | | | | | but I'm unsure of its provenance, so rather than add it here, revert the migration to it. Approved by: re@ (blanket)
* MFp4:imp2007-07-1311-34/+197
| | | | | | | | | | Add support for the CENTIPAD board (http://www.harerod.de/centipad/index.html) (which is a very cool, very small ARM board) Add support for KB9202B (it has different memory) Make BOOT_FLAVOR settable Minor cleanup nits Approved by: re@
* - Remove UMAP filesystem. It was disconnected from build three years ago,rafan2007-06-251-1/+0
| | | | | | | and it is seriously broken. Discussed on: freebsd-arch@ Approved by: re (mux)
* - Make better use of the global chosen, memory and mmu handles insteadmarius2007-06-178-333/+96
| | | | | | | | | | | | | | | | | | | | | | | | | of obtaining them over and over again and pretending we could do anything useful without them (for chosen this includes adding a declaration and initializing it in OF_init()). - In OF_init() if obtaining the memory or mmu handle fails just call OF_exit() instead of panic() as the loader hasn't initialized the console at these early stages yet and trying to print out something causes a hang. With OF_exit() one at least has a change to get back to the OFW boot monitor and debug the problem. - Fix OF_call_method() on 64-bit machines (this is a merge of sys/dev/ofw/openfirm.c rev 1.6). - Replace OF_alloc_phys(), OF_claim_virt(), OF_map_phys() and OF_release_phys() in the MI part of the loader with wrappers around OF_call_method() in the sparc64. Beside the fact that they duplicate OF_call_method() the formers should never have been in the MI part of the loader as contrary to the OFW spec they use two-cell physical addresses. - Remove unused functions which are also MD dupes of OF_call_method(). - In sys/boot/sparc64/loader/main.c add __func__ to panic strings as different functions use otherwise identical panic strings and make some of the panic strings a tad more user-friendly instead of just mentioning the name of the function that returned an unexpected result.
* - Remove dupe and unused declarations and prototypes.marius2007-06-161-67/+54
| | | | | | | | - Add missing prototypes. - Define global variables not used outside of this module as static. - Replace some outdated hard-coded functions names in panic strings with __func__. - Fix some style(9) bugs.
* Sync the styles of sys/boot/ofw/libofw/openfirm.c andmarius2007-06-161-376/+275
| | | | | sys/dev/ofw/openfirm.c with themselves, with each-other and with style(9).
* MFp4: add FireWire/dcons support in loader for i386/amd64.simokawa2007-05-2910-4/+1661
| | | | | | | | | | It is disabled by default. You need to put LOADER_FIREWIRE_SUPPORT=yes in /etc/make.conf and rebuild loader to enable it. (cd /sys/boot/i386 && make clean && make && make install) You can find a short introduction of dcons at http://wiki.freebsd.org/DebugWithDcons
* Have the processor defer all faults and exceptions for controlmarcel2007-05-271-1/+1
| | | | | | | speculative loads. This at least makes control speculative loads work. In the future we should analyze which faults/exceptions we want to handle rather than defer to avoid having to call the recovery code when it's not strictly necessary.
* Use lower cases for UUID string to conform RFC4122 and ISO/IEC-9834-8:2005.jkim2007-05-211-3/+3
|
* Tweak inlining parameters a little. Add warning to tell us if functionkan2007-05-192-2/+4
| | | | we declared as inline can not be inlined.
* Add documentation for the vm.kmem_size_min and vm.kmem_size_max tunables.sepotvin2007-05-091-1/+10
| | | | Approved by: njl (mentor, blanket)
* fixup talk of kern.maxswzone... It's been 32MB for almost 5 years now...jmg2007-05-051-7/+6
| | | | | | | | | and only supports just over 7GB of swap... Sound a bit more professional.. Inspired by: Marc G. Fournier MFC After: 3 days
* Add zfs_load here.pjd2007-04-091-0/+1
| | | | Reminded by: bmah
* Always try to load zpool.cache instead of trying to find good place topjd2007-04-091-0/+7
| | | | document it. When there is no such file, it's invisible for the user.
* Fix build.nyan2007-04-071-1/+1
|
* Added the IPLware 3.33 support.kato2007-04-076-7/+173
| | | | | | | | | | | | - Added magic numbers to pretend the NEC original program version 2.70. - Added string display routine with Shift-JIS code support. - Added three nop instructions at start1 in start.s since the installaer of the IPLware put 'call $0x09ab' instruction. - Put the near return instruction at 0x9ab in selector.s. Since the Shit-JIS display routine must be located at 0x1243, the linker script file (ldscript) is applied.
* pc98 boot2 is compiled with _KERNEL defined, and that makes non-statickan2007-04-061-1/+1
| | | | | | bootinfo variable declaration visible. It conflicts with static declaration in this file. Declare variable as globally visible in order to resolve the conflict.
* Loop on sdcard init. This helps if one hasn't plugged in the cardimp2007-04-021-1/+2
| | | | fast enough, or there's other issues that cause the first try to fail.
* RTC_TIMR's RTC_SEC field is BCD. That makes it unsuitable forimp2007-03-284-8/+13
| | | | | | | | | | | | | | | GetSeconds(). Instead, use CRTR register shifted right 15. This gives us a range of 32 seconds we can do for timeout. Shift to using == rather than < or > for calculating the timeout, since if we can't read the ST_CTRT register twice in a second we have even bigger problems to worry about, and == deals with the 'wrap' issue. This lets me type at the boot2 prompt again! Woo Hoo! Bogusness noticed by: tisco Pointy Hat to: That silly imp guy
* Since we're about to set ST_RTMR to 1 to increase the accuracy of theimp2007-03-281-3/+0
| | | | | CRTR register to be 1/32768th of a second in init, we don't need to do it here.
* All SD cards have a block size of 512. The READ_BL_LEN field in theimp2007-03-281-4/+6
| | | | | | | | | | | | | | | | CSD is usually 512 (well, 9), but for 2GB (and the rogue 4GB SD cards) it is 1024 (or 2048 for 4GB). This value doesn't work for the block read commands (which really want 512). Hardcode 512 for those. This may break really old MMC cards that don't have a 512 block size (I've never seen one: make my day and send me one :-), but since the MMC side of the house is currently broken, it should only have the effect that 2GB (and non-conforming 4GB) SD cards will work. My 'non-conforming' 4GB SD card also works now too. The non-conforming 4GB SD cards were sold for a while before the SD association was worried they would be (a) incompatible (different FAT flavor on them) and (b) confusing for the new SDHC standard and cracked down on suppliers' bogus use of the SD trademark...
* Various buglets fixed (from submitter):imp2007-03-281-6/+7
| | | | | | | | | | | | | | | | | The changes to getstr() is so that the character that is passed in to it, is also processed just as the rest. I also removed one of the getc() calls otherwise you loose every second character. I also changed the strcpy of kname, so that it only happens if kname is '\0'. This is so that one can pass a kernel in through /boot.config. The last change to boot2.c is in parse(). If you tried to type a kernel name to boot, the first character was lost, the arg-- fix that. Submitted by: jhay
* Fix problem where memcmp would return true in the case where theimp2007-03-281-1/+1
| | | | | | character after the character that was the same. Submitted by: jhay
* Fix off by one error in length of the string.imp2007-03-281-1/+1
| | | | Submitted by: jhay
* Fix setting of serial port speed. A junk value was passed in AX whenthomas2007-03-261-1/+1
| | | | | | | | | | bioscom is called to set up serial port parameters because COMSPEED was treated as an address instead of an immediate value, causing serial port parameters to never be set. PR: i386/110828 Reviewed by: jhb MFC after: 2 weeks
* Update to FICL 3.03 (the last release before FICL4 rewrite).jkim2007-03-2311-68/+405
| | | | | | | | | | | | The relevant changes for FreeBSD (excerpt from the release note): * Newly implemented CORE EXT words: CASE, OF, ENDOF, and ENDCASE. Also added FALLTHROUGH, which works like ENDOF but jumps to the instruction just after the next OF. * Bugfix: John-Hopkins locals syntax now accepts | and -- in the comment (between the first -- and the }.) * Bugfix: Changed vmGetWord0() to make Purify happier. The resulting code is no slower, no larger, and slightly more robust.
* Catch up with ACPI-CA 20070320 import.jkim2007-03-222-32/+34
|
* - Moved the uninitialized variables from the data to the bss section.kato2007-03-173-14/+19
| | | | - Fixed typos in comment.
* Remove vestiges of very specific fpga support for my company's board.imp2007-03-152-38/+1
| | | | | | | It isn't relevant to FreeBSD as a whole, breaks the build, and isn't even needed for my company's boards anymore... MFC After: 2 weeks
* MFi386: revision 1.17.nyan2007-03-041-1/+1
| | | | Fix the cdboot twiddle display.
* Fix the cdboot twiddle display.remko2007-02-231-1/+1
| | | | | | | | | I created and tested this with a custom FreeSBIE cd-image. PR: i386/96452 Submitted by: Yuichiro Goto <y7goto at gmail dot com> MFC after: 3 days Approved by: imp (mentor)
* Document the init_chroot and init_script variables.imp2007-02-042-0/+54
| | | | | | # I didn't check the markup too closely, so doc people, please check Submitted by: Oliver Fromme
* o Wrap long lines.maxim2007-01-141-8/+16
|
* o Typo: note -> node.maxim2007-01-141-1/+1
| | | | | | PR: misc/107906 Submitted by: Alex Keda MFC after: 3 days
* o Move the comment to the correct place.maxim2007-01-141-1/+1
| | | | | PR: misc/107904 MFC after: 3 days
* Garbage collect the code for auto-loading modules based on ISAPNP IDs,marius2007-01-072-381/+0
| | | | | | | which is #if'ed out since nearly eight years, along with its outdated database. Agreed by: ru (some months ago)
* MFp4: differences for bwct ethernet attachmentimp2006-12-202-3/+13
|
* MFp4: Differences in flash part for bwct. need a more generic way to cope.imp2006-12-202-0/+35
|
* MFp4: Add timeout to eeprom access for lame eeprom that go awolimp2006-12-202-4/+8
|
* MFp4: bwct memory size and PLL parametersimp2006-12-201-0/+8
|
* MFp4: bwct boot rom is different. need a more generic way to cope long term.imp2006-12-201-0/+4
|
* MFp4: Delay a second or two after the upload before printing Done.imp2006-12-201-2/+6
| | | | Add an automatic reset for remote operational luvin' goodness.
* MFp4: bwct is a new board choice.imp2006-12-201-1/+1
|
* add an interface for passing the entire kernel size up front to thekmacy2006-12-182-1/+52
| | | | | loader so that it can memory can be allocated aligned at the beginning of the desired large page
* Add an entry for the msk(4) module.yongari2006-12-131-0/+1
|
* Ignore any breakpoint instructions (int 3) we encounter in vm86 modejhb2006-12-061-0/+2
| | | | | | | | rather than treating them as a fatal exception and halting. At least one storage BIOS (some newer mpt(4) parts) have a breakpoint instruction in their disk read routine. MFC after: 3 days
* Note that not all architectures use sendfile(2) buffers;yar2006-11-291-1/+4
| | | | | | refer to the respective manpage for details. MFC after: 3 days
* remove CDDL derive hcall.Skmacy2006-11-231-986/+0
|
* Remove LDR_LOG2_PGSZ, ia64_pgtbl and ia64_pgtblsz. They are part ofmarcel2006-11-192-8/+0
| | | | a WIP and not used yet.
OpenPOWER on IntegriCloud