summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386
Commit message (Collapse)AuthorAgeFilesLines
* Update the copyright to use a 3 clause BSD license rather than one thatjhb2004-06-221-10/+24
| | | | | | is less clear about allowing redistribution of modified copies. Requested by: Tom Cosgrove tom dot cosgrove at arches-consulting dot com
* Remove a bogus increment of %di when scanning the list of loader paths.jhb2004-06-221-1/+0
| | | | | | | %di will already point to the character after the nul char when the 'repnz scasb' terminates. Submitted by: Tom Cosgrove tom dot cosgrove at arches-consulting dot com
* Save a couple of bytes for the SIO case.phk2004-06-171-4/+2
|
* Unspam sys/boot, the dev_t commit should not have touched these.phk2004-06-163-5/+5
| | | | Spotted by: peter
* Do the dreaded s/dev_t/struct cdev */phk2004-06-163-5/+5
| | | | Bump __FreeBSD_version accordingly.
* Premptively fix GCC3.4 issue: add break; after empty default: clauses.phk2004-06-161-0/+1
| | | | | PR: 65493 Submitted by: Pawel Worach <sajd@telia.com>
* Merge boot0 and boot0sio so they behave the same.phk2004-06-111-42/+17
|
* Some embedded platforms have no keyboard controller. Give up waitingphk2004-06-021-4/+11
| | | | for it to react after a timeout.
* Use the correct location of the EBDA for searching for the RSDP.njl2004-05-251-7/+9
| | | | | | The EBDA is the 1 KB area addressed by the 16 bit pointer at 0x40E. Pointed out by: robert.moore AT intel.com
* Back out last revision that unnecessarily changed valid assemblerru2004-05-146-1606/+1601
| | | | | | line comments and damaged the CVS history. Prompted by: bde, jhb
* Partly back out last revision that unnecessarily changed validru2004-05-141-236/+236
| | | | | | assembler line comments and damaged the CVS history. Prompted by: bde, jhb
* Fix a potential stack buffer overflow on systems whose ACPI OEMIDjdp2004-05-141-2/+2
| | | | | | fills its field (6 characters). In that case the OEMID is not null-terminated, and the sprintf that was used would copy up to the next null byte, which could be pretty far away.
* Convert block comments into C-style that is understood by cpp(1).ru2004-04-291-204/+210
| | | | | | | Keep line comments in assembler style. A few lines that match the '^[[:space:]]+#' regexp still need to be fixed, somehow. OK'ed by: bde, jhb
* Thanks to David's patches, we can now simplify these makefilesru2004-04-285-18/+14
| | | | | | further, and just use PROG directly (without FILES). Suggested by: bde
* Properly merge boot0sio.s and boot0.s into boot0.S.ru2004-04-281-1/+2
|
* Switch to using C99 comments in assembler preprocessed with cpp(1).ru2004-04-281-414/+414
|
* - Properly merge boot0sio.s and boot0.s into boot0.S.ru2004-04-283-666/+167
| | | | | | | | | | boot0sio.s was repo-copied to boot0.S. - Rename boot0ext.s to boot0ext.S, to stay consistent with other preprocessed asm files around here, and for better portability. Repocopied by: joe
* Temporary precaution measure until repocopy requests areru2004-04-281-5/+7
| | | | processed: don't forget to clean generated .s sources.
* After talking to Bruce Evans and reading more standards specs,ru2004-04-286-1601/+1606
| | | | | | | | | switch to using C99-style comments everywhere in preprocessed assembler. The reason is that lines starting with the regexp '^[[:space:]]#' are treated as preprocessing directives, and while it seems to work now with GCC, it's not necessarily has to work. Use C99 comments `//' for the trailing comments to save whitespace.
* Use C (and CPP) style comments for assembler-with-cpp sources,ru2004-04-282-290/+290
| | | | for lines that start with a comment.
* Use C (and CPP) style comments for assembler-with-cpp sources,ru2004-04-281-94/+96
| | | | for lines that start with a comment.
* - Use C (and CPP) style comments for assembler-with-cpp sources,ru2004-04-282-346/+347
| | | | | for lines that start with a comment. - Preserve as(1) style comments for the rest.
* Removed now redundant CLEANFILES assignments.ru2004-04-275-6/+0
| | | | Not read enough of my patch by: obrien ;)
* Change from '#' to "//" comment character to allow CPP preprocessing.phk2004-04-275-1295/+500
| | | | | | | | Merge boot0.s and boot0sio.s into boot0_512.s controlled by "#ifdef SIO". Add Makefile magic to generate boot0.s and boot0sio.s from boot0_512.s. The compile boot0 and boot0sio have unchanged MD5 checksums.
* Use a more compact syntax for passing the "binary" options to 'ld'.obrien2004-04-256-6/+6
|
* Simplify the building of our i386 'binary' boot components by directlyobrien2004-04-256-35/+12
| | | | | | producing them using 'ld' options rather than post-processing with 'objcopy'. Idea by: Ryan Sommers <ryans@gamersimpact.com>
* Fix a last second typo in 'vi' that caused a problem.obrien2004-04-202-4/+4
|
* White space style cleanup.obrien2004-04-205-109/+109
|
* MFp4: merge version #5 of the 2-sector boot0 from the "jhb boot" branch.obrien2004-04-192-36/+48
|
* Bring back jhb's two sector (1024 bytes) 'boot0' [rev 1.22] as 'boot0ext'.obrien2004-03-263-0/+981
|
* Fixed misspellings of 0 as NULL.bde2004-03-141-2/+2
|
* These are changes to allow to use the Intel C/C++ compiler (lang/icc)trhodes2004-03-122-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to build the kernel. It doesn't affect the operation if gcc. Most of the changes are just adding __INTEL_COMPILER to #ifdef's, as icc v8 may define __GNUC__ some parts may look strange but are necessary. Additional changes: - in_cksum.[ch]: * use a generic C version instead of the assembly version in the !gcc case (ASM code breaks with the optimizations icc does) -> no bad checksums with an icc compiled kernel Help from: andre, grehan, das Stolen from: alpha version via ppc version The entire checksum code should IMHO be replaced with the DragonFly version (because it isn't guaranteed future revisions of gcc will include similar optimizations) as in: ---snip--- Revision Changes Path 1.12 +1 -0 src/sys/conf/files.i386 1.4 +142 -558 src/sys/i386/i386/in_cksum.c 1.5 +33 -69 src/sys/i386/include/in_cksum.h 1.5 +2 -0 src/sys/netinet/igmp.c 1.6 +0 -1 src/sys/netinet/in.h 1.6 +2 -0 src/sys/netinet/ip_icmp.c 1.4 +3 -4 src/contrib/ipfilter/ip_compat.h 1.3 +1 -2 src/sbin/natd/icmp.c 1.4 +0 -1 src/sbin/natd/natd.c 1.48 +1 -0 src/sys/conf/files 1.2 +0 -1 src/sys/conf/files.amd64 1.13 +0 -1 src/sys/conf/files.i386 1.5 +0 -1 src/sys/conf/files.pc98 1.7 +1 -1 src/sys/contrib/ipfilter/netinet/fil.c 1.10 +2 -3 src/sys/contrib/ipfilter/netinet/ip_compat.h 1.10 +1 -1 src/sys/contrib/ipfilter/netinet/ip_fil.c 1.7 +1 -1 src/sys/dev/netif/txp/if_txp.c 1.7 +1 -1 src/sys/net/ip_mroute/ip_mroute.c 1.7 +1 -2 src/sys/net/ipfw/ip_fw2.c 1.6 +1 -2 src/sys/netinet/igmp.c 1.4 +158 -116 src/sys/netinet/in_cksum.c 1.6 +1 -1 src/sys/netinet/ip_gre.c 1.7 +1 -2 src/sys/netinet/ip_icmp.c 1.10 +1 -1 src/sys/netinet/ip_input.c 1.10 +1 -2 src/sys/netinet/ip_output.c 1.13 +1 -2 src/sys/netinet/tcp_input.c 1.9 +1 -2 src/sys/netinet/tcp_output.c 1.10 +1 -1 src/sys/netinet/tcp_subr.c 1.10 +1 -1 src/sys/netinet/tcp_syncache.c 1.9 +1 -2 src/sys/netinet/udp_usrreq.c 1.5 +1 -2 src/sys/netinet6/ipsec.c 1.5 +1 -2 src/sys/netproto/ipsec/ipsec.c 1.5 +1 -1 src/sys/netproto/ipsec/ipsec_input.c 1.4 +1 -2 src/sys/netproto/ipsec/ipsec_output.c and finally remove sys/i386/i386 in_cksum.c sys/i386/include in_cksum.h ---snip--- - endian.h: * DTRT in C++ mode - quad.h: * we don't use gcc v1 anymore, remove support for it Suggested by: bde (long ago) - assym.h: * avoid zero-length arrays (remove dependency on a gcc specific feature) This change changes the contents of the object file, but as it's only used to generate some values for a header, and the generator knows how to handle this, there's no impact in the gcc case. Explained by: bde Submitted by: Marius Strobl <marius@alchemy.franken.de> - aicasm.c: * minor change to teach it about the way icc spells "-nostdinc" Not approved by: gibbs (no reply to my mail) - bump __FreeBSD_version (lang/icc needs to know about the changes) Incarnations of this patch survive gcc compiles since a loooong time, I use it on my desktop. An icc compiled kernel works since Nov. 2003 (exceptions: snd_* if used as modules), it survives a build of the entire ports collection with icc. Parts of this commit contains suggestions or submissions from Marius Strobl <marius@alchemy.franken.de>. Reviewed by: -arch Submitted by: netchild
* For some reason crt0.o needs to be linked first for pxeboot(8) toru2004-02-271-2/+5
| | | | | | work. This is odd because loader(8) doesn't suffer from this problem. Perhaps pxeboot bootstrap can be fixed to handle this better. Anyway, PXE booting should work again.
* Re-add sio.S, and properly deal with assembler files.ru2004-02-174-383/+8
| | | | Repocopied by: joe
* Fix the AMD64 build: this file shouldn't exist.obrien2004-02-161-80/+0
|
* Fixed the fatal bug introduced in previous commit: don't stripru2004-02-121-0/+1
| | | | kgzldr.o -- kgzipping with such a loader produces bad images.
* Clean CLEANFILES.ru2004-02-121-1/+1
|
* kzip(8) is long dead.ru2004-02-111-2/+0
|
* Get rid of unnecessary use of m4(1) by using cpp(1) instead.ru2004-02-119-1925/+53
| | | | | | | | (John tells me there were problems when trying this before, but it appears to be safe these day.) OK'ed by: jhb Repocopied by: joe
* - Factor out -nostdlib to an upper level Makefile.inc.ru2004-02-0912-58/+64
| | | | | | | | | | | - Now that bsd.prog.mk deals with programs linked with -nostdlib better, and has a notion of an "internal" program, use PROG where possible. This has a good impact on the contents of .depend files and causes programs to be linked with cc(1). XXX: boot2 couldn't be converted as it's actually two programs. Tested on: i386, amd64
* Argh, unbreak "make depend" for AMD64.ru2004-02-074-6/+9
| | | | Reported by: kris
* - Removed -elf which is not a valid gcc(1) option anymore.ru2004-02-075-9/+3
| | | | - Removed -ffreestanding; it's enforced by ../Makefile.inc.
* Generate .depend file.ru2004-02-072-0/+4
|
* Untangle building of AMD64 boot code.ru2004-02-075-14/+6
| | | | Tested on: amd64 (sledge)
* First round of cleanups to sys/boot/ makefiles:ru2004-02-0612-249/+186
| | | | | | | | | | | | - do not use PROG for what's not a real C program, - use sys.mk transformation rules where possible, - only create the "machine" symlink on AMD64, - removed MAINTAINER lines in individual makefiles, - added the LIBSTAND defitinion to <bsd.libnames.mk>, - somewhat better contents in .depend files. Tested on: i386, amd64 Prodded by: bde
* Inherit BINDIR from a parent Makefile.inc.ru2004-02-068-7/+2
|
* Only include ../Makefile.inc once in loader/Makefile.ru2004-02-062-5/+2
|
* If a transfer to or from a floppy disk crosses a 64k boundary, we have tojhb2004-01-211-2/+2
| | | | | | | | | | | | | | | use a bounce buffer for the actual transfer to avoid crossing a 64k boundary. To do this, we malloc a buffer twice as big as we need and then find an aligned block within that buffer to do the transfer. The check to see which part of the block we use used the wrong variable for part of the condition meaning that in certain edge cases we would ask the BIOS to cross a 64k boundary. The BIOS request would then fail resulting in file transfers that just magically fail in the middle without any apparent reason. Specifically, my tests for the splitfs boot floppies managed to trigger this edge case. MFC after: 1 week X-MFC-info: along with fixes to libstand filesystems
* - Use constant for shift when converting file length in bytes to a sectorjhb2004-01-121-2/+5
| | | | | | | | | | count. - Fix the twiddle output so that it actually spins. - Save %cx around BIOS calls to read in sectors from the disc as at least one BIOS trashes %cx when called to read off of a USB CD-ROM drive. Submitted by: Martin Nilsson <martin@gneto.com> MFC after: 1 week
* Allow one to specify the com port settings for boot0sio.obrien2004-01-063-5/+11
|
OpenPOWER on IntegriCloud