summaryrefslogtreecommitdiffstats
path: root/sys/boot/pc98
Commit message (Collapse)AuthorAgeFilesLines
* Reduce diffs against i386.nyan2012-02-101-12/+14
| | | | MFC after: 1 week
* MFi386: revision 229435nyan2012-01-041-31/+188
| | | | | | | Add special loader environment variables 'comconsole_port' and 'comconsole_pcidev'. MFC after: 2 weeks
* Fix 230MB MO support.nyan2012-01-041-1/+1
| | | | | Submitted by: Kaho Toshikazu MFC after: 1 week
* Consolidate duplicate definitions of V86_CY() and V86_ZR() which check forjhb2011-10-255-7/+5
| | | | | the carry and zero flags being set, respectively, in <btxv86.h> and use them throughout the x86 boot code.
* Look for /boot/config in addition to /boot.config, with the former takingdes2011-10-181-2/+4
| | | | | | precedence over the latter if it exists. MFC after: 3 weeks
* New boot loader menus from Devin Teske.julian2011-05-281-0/+6
| | | | | | | | Discussed on hackers and recommended for inclusion into 9.0 at the devsummit. All support email to devin dteske at vicor dot ignoreme dot com . Submitted by: dteske at vicor dot ignoreme dot com Reviewed by: me and many others
* MFi386: revisions 220389 and 220392nyan2011-04-161-13/+13
| | | | | | - Mark getc() as inline, this has no effect on gcc but helps clang. - Move getc() body before xgetc() so gcc does not emit a warning about function having no body.
* MFi386: revision 220337nyan2011-04-051-0/+1
| | | | Build boot2 with -mregparm=3.
* Add 2 new archsw interfaces:marcel2011-04-031-0/+17
| | | | | | | | | | | | | | 1. arch_loadaddr - used by platform code to adjust the address at which the object gets loaded. Implement PC98 using this new interface instead of using conditional compilation. For ELF objects the ELF header is passed as the data pointer. For raw files it's the filename. Note that ELF objects are first considered as raw files. 2. arch_loadseg - used by platform code to keep track of actual segments, so that (instruction) caches can be flushed or translations can be created. Both the ELF header as well as the program header are passed to allow platform code to treat the kernel proper differently from any additional modules and to have all the relevant details of the loaded segment (e.g. protection).
* MFi386: the part of 219452nyan2011-03-241-14/+10
| | | | | | - bunch of variables are turned into uint8_t. - the setting and reading of "fmt" in load() is removed. - buf in printf() is made static to save space.
* MFi386: revision 219186nyan2011-03-031-22/+7
| | | | | | | | | This patch shrinks boot2 a little. o It switches kname to be just a pointer instead of an array. o It changes ioctl to unsigned from uint8_t. o It changes the second keyhit limit to 3 seconds from 5. o It removes bi_basemem/bi_extmem/bi_memsizes_valid setting.
* Remove duplicate "in".brucec2011-03-011-1/+1
| | | | | Suggested by: Rob Farmer <rfarmer at predatorlabs.net> MFC after: 3 days
* Revert some of r177626. "in in" is valid in certain sentences.brucec2011-02-281-1/+1
| | | | | PR: 121490 MFC after: 3 days
* MFi386: revision 218926nyan2011-02-221-1/+1
| | | | | | | | In sys/boot/i386/boot2/boot2.c, change the type of the 'opts' variable from uint16_t back to uint32_t. The actual option bitmasks (RB_* and RBX_*) assume at least a 32 bit variable. Submitted by: rdivacky
* Upgrade our copy of llvm/clang to r126079, from upstream's trunk.dim2011-02-202-0/+10
| | | | | This contains many improvements, primarily better C++ support, an integrated assembler for x86 and support for -pg.
* MFi386: revision 218745nyan2011-02-191-18/+1
| | | | Remove reading of symbols from a.out loaded files.
* MFi386: revision 218713nyan2011-02-161-3/+4
| | | | | Apply a few small optimizations to boot2's code, to make it shrink a little further.
* Fix build.nyan2011-02-121-2/+10
|
* Add the pc98boot image which concatenates boot0 and boot0.5.nyan2011-02-112-1/+18
| | | | It's required by the gpart to write bootcode.
* On i386 and amd64, consistently use the following options whenever wedim2011-01-051-1/+1
| | | | | | want to avoid using any "advanced" CPU features: -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
* Remove superfluous -mno-(mmx|3dnow|sse|sse2|sse3) flags in Makefilesdim2011-01-051-1/+0
| | | | | | | under sys/boot/{i386,pc98}, since these are already added via sys/boot/{i386,pc98}/Makefile.inc. Submitted by: arundel
* Now there is no functional difference from i386 version.nyan2010-11-131-35/+0
| | | | So use i386 version.
* MFi386: revision 214210nyan2010-10-241-2/+2
| | | | | Avoid using memcpy() for copying 32bit chunks. This shrinks the resulting code a little.
* When building world with clang, for gnu/lib/libobjc, sys/boot/i386/boot2dim2010-09-211-3/+1
| | | | | | | | | | | | and sys/boot/pc98/boot2, do not simply assign 'gcc' to CC, since compile flags are sometimes passed via this variable, for example during the build32 stage on amd64. This caused the 32-bit libobjc build on amd64 to fail. Instead, only replace the first instance of clang (if any, including optional path) with gcc, and leave the arguments alone. Approved-by: rpaulo (mentor)
* Use a cleaner expression to retrieve the memory size in pc98's boot2.c,dim2010-09-011-3/+2
| | | | | | | | which also avoids NULL pointer arithmetic, as suggested by jhb. The available space goes from 11 bytes to 7. Reviewed by: nyan Approved by: rpaulo (mentor)
* Avoid directly manipulating a NULL pointer (which could result indim2010-08-311-2/+2
| | | | | | | undefined behaviour) in sys/boot/pc98/boot2/boot2.c. Reviewed by: nyan Approved by: rpaulo (mentor)
* Always compile pc98 boot2 with gcc instead of clang, just as with i386dim2010-08-311-0/+7
| | | | | | | boot2. Unfortunately both still are too big when compiled with clang. Reviewed by: nyan Approved by: rpaulo (mentor)
* MFi386: revision 210387nyan2010-07-251-1/+1
| | | | Correctly setup LDADD with regards to libstand.
* Use -Wl,-N instead of the undocumented -N option for GCC.ed2010-06-035-5/+5
| | | | | | | GCC forwards the -N flag directly to ld. This flag is not documented and not supported by (for example) Clang. Just use -Wl,-N. Submitted by: Pawel Worach
* Fix typo: s/partion/partition/mbr2010-01-021-1/+1
| | | | | Submitted by: Marc Balmer <marc@msys.ch> MFC after: 3 days
* Reimplement the boot2 for pc98 completely.nyan2009-12-3122-4590/+1335
| | | | | | | | | | | | | | | | 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!!
* Don't use 15M-16M area on pc98. It's reserved for some devices.nyan2009-12-311-1/+1
| | | | MFC after: 2 week
* Add setting machine type support to the loader.nyan2009-12-314-1/+112
| | | | MFC after: 2 week
* Move cursor position after putting a character.nyan2009-12-211-0/+10
| | | | MFC after: 1 week
* Fix debug messages of bd_io().nyan2009-12-171-4/+4
| | | | MFC after: 1 week
* Cleanups the boot2 for pc98. There is no functional change.nyan2009-12-118-164/+18
| | | | | | | | | - 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
* MFi386: revision 200219nyan2009-12-082-8/+25
| | | | | | | Improve the algorithm the loader uses to choose a memory range for its heap when using a range above 1MB. MFC after: 1 week
* MFi386: Use real mode instead of v86 mode.nyan2009-12-081-410/+361
| | | | MFC after: 1 week
* MFi386: revision 200216nyan2009-12-082-3/+2
| | | | Various small whitespace and style fixes.
* Remove spinconsole from pc98, some parts seem to be missed and it'ssobomax2009-11-271-2/+0
| | | | | | too late (early?) to figure out what exactly. Reported by: TAKAHASHI Yoshihiro
* Add new loader console type: "spinconsole". This console selects thesobomax2009-11-271-0/+2
| | | | | | | | video console which doesn't take any input from keyboard and hides all output replacing it with ``spinning'' character (useful for embedded products and custom installations). Sponsored by: Sippy Software, Inc.
* MFi386:nyan2009-09-131-1/+1
| | | | | | | Move the loader's entry point to 0x200000. This change is also needed for pc98. MFC after: 3 days
* Some of the boot loader code only works on a ufs file system, but itdfr2009-05-281-6/+6
| | | | | | | uses the generic struct dirent, which happens to look identical to UFS's struct direct. If BSD ever changes dirent then this will be a problem. Submitted by: matthew dot fleming at isilon dot com
* Oops, fix the previous change.nyan2009-03-201-3/+3
|
* MFi386: r189749nyan2009-03-201-33/+69
| | | | | Teach the BIOS CD driver to use bounce buffers when the destination address is > 1 MB.
* Merge the missing changes from i386.nyan2009-03-201-12/+49
| | | | Teach the loader about the FAT partitions.
* MFi386: the part of r179825 to reduce diffs against i386.nyan2009-03-201-10/+21
|
* Reduce diffs against i386.nyan2009-03-193-11/+14
|
* Use the common PC98_MID_* defines instead of a magic number.nyan2009-03-191-4/+4
|
* Fix build when WITH_SSP is set explicitly.ru2009-02-211-2/+1
| | | | Submitted by: Jeremie Le Hen
OpenPOWER on IntegriCloud