aboutsummaryrefslogtreecommitdiff
path: root/sys/boot/pc98/btx
Commit message (Collapse)AuthorAgeFilesLines
* Remove sys/boot/pc98 accidentally restored in r313575Ed Maste2017-02-1111-1847/+0
| | | | | | | Reported by: rpokala Notes: svn path=/head/; revision=313576
* makefs: make the buffer functions look exactly like the kernel onesEd Maste2017-02-1111-0/+1847
| | | | | | | | | | | | | | | | | | | | | From NetBSD christos Sat Jan 26 00:19:39 2013 +0000 make the buffer functions look exactly like the kernel ones and add other cruft to make the kernel files compile. ffs.c 1.54 ffs/buf.c 1.13 ffs/buf.h 1.3 ffs/ffs_alloc.c 1.21 ffs/ffs_balloc.c 1.15 Reviewed by: marcel, ngie Obtained from: NetBSD Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D8404 Notes: svn path=/head/; revision=313575
* Remove pc98 support completely.Yoshihiro Takahashi2017-01-2811-1847/+0
| | | | | | | | | I thank all developers and contributors for pc98. Relnotes: yes Notes: svn path=/head/; revision=312910
* Don't use -N to set the OMAGIC with data and text writeable and dataWarner Losh2016-09-032-2/+3
| | | | | | | | | | | | | | | | | not page aligned. To do this, use the ld script gnu ld installs on my system. This is imperfect: LDFLAGS_BIN and LD_FLAGS_BIN describe different things. The loader script could be better named and take into account other architectures. And having two different mechanisms to do basically the same thing needs study. However, it's blocking forward progress on lld, so I'll work in parallel to sort these out. Differential Revision: https://reviews.freebsd.org/D7409 Reviewed by: emaste Notes: svn path=/head/; revision=305353
* Implement (ACFLAGS|CFLAGS|CXXFLAGS).SRC globally.Bryan Drewery2016-03-262-2/+0
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=297283
* Revert r267233 for now. PIE support needs to be reworked.Bryan Drewery2014-08-191-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | 1. 50+% of NO_PIE use is fixed by adding -fPIC to INTERNALLIB and other build-only utility libraries. 2. Another 40% is fixed by generating _pic.a variants of various libraries. 3. Some of the NO_PIE use is a bit absurd as it is disabling PIE (and ASLR) where it never would work anyhow, such as csu or loader. This suggests there may be better ways of adding support to the tree. Many of these cases can be fixed such that -fPIE will work but there is really no reason to have it in those cases. 4. Some of the uses are working around hacks done to some Makefiles that are really building libraries but have been using bsd.prog.mk because the code is cleaner. Had they been using bsd.lib.mk then NO_PIE would not have been needed. We likely do want to enable PIE by default (opt-out) for non-tree consumers (such as ports). For in-tree though we probably want to only enable PIE (opt-in) for common attack targets such as remote service daemons and setuid utilities. This is also a great performance compromise since ASLR is expected to reduce performance. As such it does not make sense to enable it in all utilities such as ls(1) that have little benefit to having it enabled. Reported by: kib Notes: svn path=/head/; revision=270168
* In preparation for ASLR [1] support add WITH_PIE to support building with -fPIE.Bryan Drewery2014-06-081-0/+2
| | | | | | | | | | | | | | | | | | | This is currently an opt-in build flag. Once ASLR support is ready and stable it should changed to opt-out and be enabled by default along with ASLR. Each application Makefile uses opt-out to ensure that ASLR will be enabled by default in new directories when the system is compiled with PIE/ASLR. [2] Mark known build failures as NO_PIE for now. The only known runtime failure was rtld. [1] http://www.bsdcan.org/2014/schedule/events/452.en.html Submitted by: Shawn Webb <lattera@gmail.com> Discussed between: des@ and Shawn Webb [2] Notes: svn path=/head/; revision=267233
* NO_MAN= has been deprecated in favor of MAN= for some time, go aheadWarner Losh2014-04-133-3/+3
| | | | | | | | | and finish the job. ncurses is now the only Makefile in the tree that uses it since it wasn't a simple mechanical change, and will be addressed in a future commit. Notes: svn path=/head/; revision=264400
* When rebooting (exiting) from the BTX loader, make sure to restore theDimitry Andric2013-04-241-1/+1
| | | | | | | | | | | | | | GDT from the correct segment, otherwise a triple fault would be caused. In some virtual environments (VMware, VirtualBox, etc) this could lead to a unhandled error or hang in the guest emulation software. Thanks to avg and jhb for a few hints in the right direction. Noticed by: Jeremy Chadwick <jdc@koitsu.org> (and many others) MFC after: 1 week Notes: svn path=/head/; revision=249846
* MFi386: r241301Yoshihiro Takahashi2012-11-101-6/+11
| | | | | | | add detection of serial console presence to btx and boot2-like blocks Notes: svn path=/head/; revision=242863
* Reduce diffs against i386.Yoshihiro Takahashi2012-08-052-4/+4
| | | | Notes: svn path=/head/; revision=239064
* MFi386: improve argument passing via btxldrAndriy Gapon2012-05-116-14/+23
| | | | | | | | | | use related definitions in i386 bootargs.h Reviewed by: nyan, jhb MFC after: 1 month Notes: svn path=/head/; revision=235264
* Define several extra macros in bsd.sys.mk and sys/conf/kern.pre.mk, toDimitry Andric2012-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 Notes: svn path=/head/; revision=232263
* Consolidate duplicate definitions of V86_CY() and V86_ZR() which check forJohn Baldwin2011-10-251-0/+4
| | | | | | | | the carry and zero flags being set, respectively, in <btxv86.h> and use them throughout the x86 boot code. Notes: svn path=/head/; revision=226746
* Upgrade our copy of llvm/clang to r126079, from upstream's trunk.Dimitry Andric2011-02-202-0/+10
| | | | | | | | This contains many improvements, primarily better C++ support, an integrated assembler for x86 and support for -pg. Notes: svn path=/head/; revision=218893
* Use -Wl,-N instead of the undocumented -N option for GCC.Ed Schouten2010-06-032-2/+2
| | | | | | | | | | 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 Notes: svn path=/head/; revision=208789
* MFi386: Use real mode instead of v86 mode.Yoshihiro Takahashi2009-12-081-407/+358
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=200254
* MFi386:Yoshihiro Takahashi2008-02-282-57/+2
| | | | | | | | Retire the support for using paging in BTX. It hasn't been used since before 4.0. Notes: svn path=/head/; revision=176645
* MFi386: revisions from 1.39 to 1.43.Yoshihiro Takahashi2006-11-091-57/+49
| | | | Notes: svn path=/head/; revision=164114
* Remove ifdef PC98.Yoshihiro Takahashi2005-05-084-156/+0
| | | | Notes: svn path=/head/; revision=146011
* Start the dreaded NOFOO -> NO_FOO conversion.Ruslan Ermilov2004-12-213-3/+3
| | | | | | | OK'ed by: core Notes: svn path=/head/; revision=139103
* MFi386: revision 1.38.Yoshihiro Takahashi2004-11-291-5/+10
| | | | Notes: svn path=/head/; revision=138189
* MFi386: revision 1.4.Yoshihiro Takahashi2004-10-241-1/+9
| | | | Notes: svn path=/head/; revision=136892
* MFi386: revisions from 1.15 to 1.17.Yoshihiro Takahashi2004-04-291-8/+2
| | | | Notes: svn path=/head/; revision=128736
* MFi386: revisions from 1.16 to 1.18.Yoshihiro Takahashi2004-04-291-8/+2
| | | | Notes: svn path=/head/; revision=128735
* MFi386: Use C (and CPP) style comments for assembler-with-cppRuslan Ermilov2004-04-282-290/+290
| | | | | | | sources, for lines that start with a comment. Notes: svn path=/head/; revision=128710
* MFi386: Get rid of unnecessary use of m4(1) by using cpp(1) instead.Yoshihiro Takahashi2004-02-136-1893/+107
| | | | | | | Repocopied by: joe Notes: svn path=/head/; revision=125780
* MFi386: Factor out -nostdlib and use PROG.Yoshihiro Takahashi2004-02-093-15/+23
| | | | Notes: svn path=/head/; revision=125625
* MFi386: Cleanups to sys/boot makefiles.Yoshihiro Takahashi2004-02-072-1/+3
| | | | Notes: svn path=/head/; revision=125563
* MFi386: revision 1.33Yoshihiro Takahashi2004-01-282-2/+2
| | | | | | | PR: kern/62005 Notes: svn path=/head/; revision=125127
* MFi386: revision 1.13.Yoshihiro Takahashi2003-11-152-2/+2
| | | | Notes: svn path=/head/; revision=122753
* Switch to using bsd.prog.mk; this gives us back the standardRuslan Ermilov2003-06-301-5/+2
| | | | | | | .s.o transformation rule. Notes: svn path=/head/; revision=117075
* Remove -elf option.Yoshihiro Takahashi2002-09-191-2/+0
| | | | Notes: svn path=/head/; revision=103639
* Initiate deorbit burn for the i386-only a.out related support. Moves arePeter Wemm2002-09-172-10/+0
| | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=103436
* Fixed CLEANFILES after bsd.lib.mk sweep.Ruslan Ermilov2002-05-131-1/+1
| | | | Notes: svn path=/head/; revision=96532
* Major cleanup of bsd.lib.mk.Ruslan Ermilov2002-05-131-4/+0
| | | | | | | | | | Get rid of the INTERNALSTATICLIB knob and just use plain INTERNALLIB. INTERNALLIB now means to build static library only and don't install anything. Added a NOINSTALLLIB knob for libpam/modules. To not build any library at all, just do not set LIB. Notes: svn path=/head/; revision=96512
* Back out last commit. I expect our bsd.*.mk gods to remove the need forDavid E. O'Brien2002-05-121-0/+3
| | | | | | | | defining so many extra things in addition to INTERNALLIB. We don't like repetitive C code and we shouldn't for make code either. Notes: svn path=/head/; revision=96455
* NOPIC, NOPROFILE, NOMAN, and INTERNALSTATICLIB are redundant when usingDavid E. O'Brien2002-05-111-3/+0
| | | | | | | INTERNALLIB now. Notes: svn path=/head/; revision=96415
* MFi386: revisions from 1.26 to 1.30.Yoshihiro Takahashi2001-11-172-10/+196
| | | | Notes: svn path=/head/; revision=86497
* MFi386: revision 1.12Yoshihiro Takahashi2001-11-171-0/+9
| | | | Notes: svn path=/head/; revision=86496
* Merged from sys/boot/i386/btx/btx/btx.s revision 1.25.KATO Takenori2001-06-232-2/+2
| | | | Notes: svn path=/head/; revision=78650
* Merged from sys/boot/i386/btx/btx/btx.s revision 1.24.Yoshihiro Takahashi2001-05-212-8/+8
| | | | Notes: svn path=/head/; revision=76927
* Merged from the following changes.Yoshihiro Takahashi2000-11-053-3/+10
| | | | | | | | | | | | | | | | sys/boot/i386/btx/btx/Makefile 1.9 sys/boot/i386/btx/btx/btx.s 1.23 sys/boot/i386/libi386/biosdisk.c 1.32 and 1.33 sys/boot/i386/libi386/biosmem.c 1.5 sys/boot/i386/libi386/comconsole.c 1.8 sys/boot/i386/libi386/gatea20.c 1.3 sys/boot/i386/libi386/time.c 1.4 sys/boot/i386/libi386/vidconsole.c 1.13 sys/boot/i386/loader/Makefile 1.48 sys/boot/i386/loader/main.c 1.22 Notes: svn path=/head/; revision=68358
* Merged from sys/boot/i386/btx/btx/btx.s revisions from 1.18 to 1.22.Yoshihiro Takahashi2000-07-302-12/+74
| | | | Notes: svn path=/head/; revision=64019
* Sync with the following changes.Yoshihiro Takahashi2000-05-296-383/+322
| | | | | | | | | | sys/boot/i386/btx/btx/Makefile 1.8 sys/boot/i386/btx/btx/btx.s 1.16 and 1.17 sys/boot/i386/btx/btxldr/btxldr.s 1.10 sys/boot/i386/loader/Makefile 1.45 Notes: svn path=/head/; revision=61064
* Synced with following files:KATO Takenori2000-03-315-162/+246
| | | | | | | | | | | | | | | | src/sys/boot/i386/Makefile.inc 1.1 src/sys/boot/i386/btx/btx/btx.s 1.15 src/sys/boot/i386/btx/btxldr/Makefile 1.8 src/sys/boot/i386/btx/btxldr/btxldr.s 1.9 src/sys/boot/i386/libi386/biosdisk.c 1.29 src/sys/boot/i386/loader/Makefile 1.42 src/sys/boot/i386/loader/main.c 1.18 (entry point address of loader was not changed.) Reviewed by: nyan Notes: svn path=/head/; revision=58871
* Synced with sys/boot/i386/btx/btx/btx.s rev 1.14.KATO Takenori2000-01-292-2/+6
| | | | Notes: svn path=/head/; revision=56813
* Sync with sys/boot/i386/btx/btx/btx.s revision 1.13.Yoshihiro Takahashi1999-11-032-0/+10
| | | | Notes: svn path=/head/; revision=52827
* Sync with sys/boot/i386/btx/btx/Makefile and btx.s revisions 1.7 andKATO Takenori1999-10-133-9/+138
| | | | | | | 1.12, respectively. Notes: svn path=/head/; revision=52202
* Blank out the twiddly thing when outputting the ``BTX loader'' message.Brian Somers1999-10-122-2/+2
| | | | Notes: svn path=/head/; revision=52148