summaryrefslogtreecommitdiffstats
path: root/sys/boot/pc98
Commit message (Collapse)AuthorAgeFilesLines
* cosmetic changes to reduce diffs against i386.nyan2012-11-101-2/+2
|
* MFi386: r241300nyan2012-11-101-14/+22
| | | | | | | | i386 comconsole: don't loop forever if hardware doesn't respond - clear capability flags when hw timeouts - retire comc_started status variable and directly use c_flags to see if comconsole is selected for use
* MFi386: r241301nyan2012-11-102-8/+15
| | | | add detection of serial console presence to btx and boot2-like blocks
* MFi386: r241785nyan2012-11-101-1/+1
| | | | boot: use -march=i386 for both i386 and amd64 builds
* Put in a band-aid to get the pc98 bootstraps building, now clang is thedim2012-11-072-1/+5
| | | | | | | | | | | | default compiler. This has two parts: - Make sys/boot/pc98/boot2 always build with gcc for now, until we can figure out a way to shrink it enough when building with clang. - Since sys/boot/p98/cdboot uses .code16 directives, which are not yet supported by clang's integrated assembler, use -no-integrated-as, similar to sys/boot/i386/cdboot. Reviewed by: nyan MFC after: 1 week
* Hook in new files menusets.4th and manual.dteske2012-11-071-1/+1
| | | | Approved by: adrian (co-mentor) (implicit)
* MFi386: revision 240637nyan2012-09-231-20/+6
| | | | loader/i386: replace ugly inb/outb re-implementations with cpufunc.h
* Cosmetic changes.nyan2012-09-231-6/+6
|
* Reduce diffs against i386.nyan2012-08-052-3/+4
|
* Reduce diffs against i386.nyan2012-08-052-4/+4
|
* MFi386: the part of r219452 and r236405.nyan2012-08-051-5/+6
| | | | | - bunch of variables are turned into uint8_t. - Remove unnecessary initializations.
* Use 32-bit ufs_ino_t instead of ino_t to keep boot2 small and preventgleb2012-05-251-4/+3
| | | | | | unnecessary 64-bit math on 32-bit machines. Sponsored by: Google Summer of Code 2011
* libpc98: unbreak after zfs-related changes in libi386 codeavg2012-05-131-0/+2
| | | | | Pointyhat to: avg MFC after: 1 month
* MFi386: improve argument passing via btxldravg2012-05-119-31/+35
| | | | | | | use related definitions in i386 bootargs.h Reviewed by: nyan, jhb MFC after: 1 month
* i386 boot: consolidate MAXBDDEV definitionavg2012-05-091-1/+0
| | | | MFC after: 1 month
* MFi386: revisions 232570 and 232754nyan2012-03-101-7/+15
| | | | | Fix boot2 to handle boot config files that only contain a custom path to a loader or kernel.
* Define several extra macros in bsd.sys.mk and sys/conf/kern.pre.mk, todim2012-02-282-10/+8
| | | | | | | | | | | | | | | | | | | | | get rid of testing explicitly for clang (using ${CC:T:Mclang}) in individual Makefiles. Instead, use the following extra macros, for use with clang: - NO_WERROR.clang (disables -Werror) - NO_WCAST_ALIGN.clang (disables -Wcast-align) - NO_WFORMAT.clang (disables -Wformat and friends) - CLANG_NO_IAS (disables integrated assembler) - CLANG_OPT_SMALL (adds flags for extra small size optimizations) As a side effect, this enables setting CC/CXX/CPP in src.conf instead of make.conf! For clang, use the following: CC=clang CXX=clang++ CPP=clang-cpp MFC after: 2 weeks
* 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
OpenPOWER on IntegriCloud