aboutsummaryrefslogtreecommitdiff
path: root/sys/boot/pc98/boot2/boot.c
Commit message (Collapse)AuthorAgeFilesLines
* Reimplement the boot2 for pc98 completely.Yoshihiro Takahashi2009-12-311-408/+0
| | | | | | | | | | | | | | | | | | | It's based on the newest i386's one and has the advantage of: - ELF binary support. - UFS2 filesystem support. - Many FreeBSD slices support on a disk. Tested by: SATOU Tomokazu ( tomo1770 _ maple _ ocn _ ne _ jp ), WATANABE Kazuhiro ( CQG00620 _ nifty _ ne _ jp ) and nyan MFC after: 2 week Happy New Year in Japan!! Notes: svn path=/head/; revision=201342
* Cleanups the boot2 for pc98. There is no functional change.Yoshihiro Takahashi2009-12-111-1/+4
| | | | | | | | | | | | - Make setting machine type and getting geom conditional for future. - Remove unused RAWBOOT and CDBOOT supports. - Remove unneeded include. - Fix warnings. MFC after: 1 week Notes: svn path=/head/; revision=200407
* Slightly cleanup the 'bootdev' concept on x86 by changing the variousJohn Baldwin2007-10-241-1/+1
| | | | | | | | | | | macros to treat the 'slice' field as a real part of the bootdev instead of as hack that spans two other fields (adaptor (sic) and controller) that are not used in any modern FreeBSD boot code. MFC after: 1 week Notes: svn path=/head/; revision=172921
* pc98 boot2 is compiled with _KERNEL defined, and that makes non-staticAlexander Kabaev2007-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. Notes: svn path=/head/; revision=168442
* Revert the last change. Masking only 2 MSBs of the virtual addressRuslan Ermilov2006-11-021-2/+2
| | | | | | | | | | | | | | | | to get the physical address doesn't work for all values of KVA_PAGES, while masking 8 MSBs works for all values of KVA_PAGES that are multiple of 4 for non-PAE and 8 for PAE. (This leaves us limited with 12MB for non-PAE kernels and 14MB for PAE kernels.) To get things right, we'd need to subtract the KERNBASE from the virtual address (but KERNBASE is not easy to figure out from here), or have physical addresses set properly in the ELF headers. Discussed with: jhb Notes: svn path=/head/; revision=163914
* Because the BTX mini-kernel now uses flat memory mode and clientsRuslan Ermilov2006-10-291-2/+2
| | | | | | | | | | | | | | | | | | | are no longer limited to a virtual address space of 16 megabytes, only mask high two bits of a virtual address. This allows to load larger kernels (up to 1 gigabyte). Not masking addresses at all was a bad idea on machines with less than >3G of memory -- kernels are linked at 0xc0xxxxxx, and that would attempt to load a kernel at above 3G. By masking only two highest bits we stay within the safe limits while still allowing to boot larger kernels. (This is a safer reimplmentation of sys/boot/i386/boot2/boot.2.c rev. 1.71.) Prodded by: jhb Tested by: nyan (pc98) Notes: svn path=/head/; revision=163765
* Print out the commands from /boot.config after parsing them so that theyJohn Baldwin2005-05-271-1/+1
| | | | | | | | | | | output is sent to the correct console(s). PR: kern/66425 Submitted by: Gavin Atkinson gavin at ury dot york dot ac dot uk MFC after: 1 week Notes: svn path=/head/; revision=146696
* Remove ifdef PC98.Yoshihiro Takahashi2005-05-081-43/+1
| | | | Notes: svn path=/head/; revision=146011
* Remove the last vestiges of the userconfig option. None of this actuallyScott Long2004-12-011-2/+0
| | | | | | | did anything, so this commit should be considered a NO-OP. Notes: svn path=/head/; revision=138249
* Use __FBSDID().David E. O'Brien2003-09-081-3/+3
| | | | | | | Also some minor style cleanups. Notes: svn path=/head/; revision=119880
* Add SCSI MO device support.Yoshihiro Takahashi2003-01-061-2/+7
| | | | | | | Submitted by: Kawanobe Koh <kawanobe@st.rim.or.jp> Notes: svn path=/head/; revision=108791
* Added some header files from -stable and fixed the boot[12] programs.Yoshihiro Takahashi2002-10-031-1/+0
| | | | Notes: svn path=/head/; revision=104412
* Make this compile in case anyone ever wants to use the PC98 booterTim Vanderhoek2000-05-211-1/+1
| | | | | | | | | on an IBM machine. This fix matches i386/boot2/boot.c. PR: kern/7903 Notes: svn path=/head/; revision=60752
* The printf function of boot2 can't recognize "%lx" format.Yoshihiro Takahashi2000-04-141-4/+4
| | | | | | | Submitted by: Nobuyuki Koganemaru <kogane@koganemaru.co.jp> Notes: svn path=/head/; revision=59230
* Remove BAD144 support, it has already been disabled for some time.Poul-Henning Kamp1999-12-081-1/+1
| | | | Notes: svn path=/head/; revision=54294
* Fixed warnings.Yoshihiro Takahashi1999-11-161-4/+4
| | | | Notes: svn path=/head/; revision=53218
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Oops, forgot to read boot.config file.KATO Takenori1999-03-041-1/+2
| | | | | | | Submitted by: IMAI Takeshi <take-i@ceres.dti.ne.jp> Notes: svn path=/head/; revision=44465
* boot2 doesn't need to say 'Can't find file boot.config.'KATO Takenori1999-03-041-5/+2
| | | | | | | Submitted by: IMAI Takeshi <take-i@ceres.dti.ne.jp> Notes: svn path=/head/; revision=44462
* PC98 version of new boot loader. Because boot2 has not yet ported,KATO Takenori1999-02-031-0/+447
files in boot2 directory are copies from legacy biosboot. Submitted by: IMAI Takeshi <take-i@ceres.dti.ne.jp> Notes: svn path=/head/; revision=43561