summaryrefslogtreecommitdiffstats
path: root/lib/libstand
Commit message (Collapse)AuthorAgeFilesLines
* Inital PowerPC loader build support.obrien2000-10-102-1/+8
| | | | Submitted by: Benno Rice <benno@jeamland.net>
* Fix the embeded VCS ID for FreeBSD vs. NetBSD.obrien2000-10-101-3/+2
|
* Architecture-specific setjump()/longjmp() bits for the PowerPCobrien2000-10-101-0/+39
| | | | | | | needed by the loader. Submitted by: Benno Rice <benno@jeamland.net> Obtained from: NetBSD (Wolfgang Solfrank <ws@@tools.de>)
* IN_CLASS*() macros assume host order and s_addr is network byteps2000-09-201-2/+2
| | | | order, so we must convert them to host order.
* Turn dkcksum() into an __inline function.phk2000-09-161-1/+0
| | | | Change its type to u_int_16_t.
* Backout last commit. It was wrong.. *sigh*ps2000-09-101-1/+0
|
* include string.h to silence a warning.ps2000-09-101-0/+1
|
* Expose the NFS root node, so that an evil consumer can use it to get themsmith2000-09-051-1/+1
| | | | NFS filehandle for the root mount.
* Implement readahead buffering for non-raw files. This drastically improvesmsmith2000-09-055-73/+132
| | | | | | | | | the efficiency of byte-by-byte read operations on filesystems not already supported by the block cache (especially NFS). This should be a welcome change for users booting via PXE, as the loader now reads its startup files almost instantly, instead of taking tens of seconds.
* Make libstand compilepeter2000-09-032-2/+4
|
* Add the -mpreferred-stack-boundary=2 option to reduce code bloat. Wepeter2000-08-111-0/+4
| | | | compile the kernel with this.
* Add support to send the string 'PXEClient' as the Vendor classps2000-08-113-4/+32
| | | | | | identifier to the DHCP server. Now you can check for this string in your dhcp configuration to decide whether you will hand out a lease to the client or not.
* Cleanup warnings by adding missint prototypes, removing unneeded duplicatejhb2000-08-034-12/+20
| | | | | | | prototypes, and adding in several 'const's. Also, add some missing $FreeBSD$'s. Found by: BDECFLAGS
* Back out the previous change to the queue(3) interface.jake2000-05-261-3/+3
| | | | | | It was not discussed and should probably not happen. Requested by: msmith and others
* Change the way that the queue(3) structures are declared; don't assume thatjake2000-05-231-3/+5
| | | | | | | | the type argument to *_HEAD and *_ENTRY is a struct. Suggested by: phk Reviewed by: phk Approved by: mdodd
* Fix the real problem that broke the Alpha loader this last week. Itpeter2000-05-121-2/+3
| | | | | | | | | | | | | | | was not the fault of the module code, nor FICL. The malloc code requires sbrk() to return addresses that were at least 16 byte aligned. If the Alpha loader happened to be 8 byte but not 16 byte aligned in length, then you would get a zfree() panic at startup. Incidently, this affected the i386 loader as well, and explains why the static heap changed things and why jlemon had trouble when the bss was not ending at a multiple of 8 bytes. My fix is to 16 byte align it on all arches, even though the x86 version only required 8 byte alignment (struct MemNode is smaller there). We could page align it if we wanted to be paranoid, but it isn't presently necessary.
* We compile expressly on the alpha with -mno-fp-regs - so do not use thempeter2000-05-121-0/+4
| | | | | explicitly here. This was the original cause of instruction faults on the Alpha in loader. (not this code, but the same problem in libficl.a)
* Fix comment.ps2000-05-061-1/+1
|
* Add readdir support to the NFS filesystem in libstand.ps2000-05-012-1/+82
|
* Do not attempt to free a nfs node if it is the root node. The rootps2000-05-011-2/+3
| | | | | node is statically allocated and is not guarded, so free will panic in nfs_close.
* Add a readdir function to the loader fsops vector, and implement thejlemon2000-04-2912-154/+249
| | | | functionality for some of the filesystesms.
* Add ext2fs support to the loader.jlemon2000-04-291-0/+903
|
* Add a cleanup function. This is needed for PXE where you shouldps2000-04-201-0/+1
| | | | shutdown the UNDI and unload the stack.
* Break out sendudp and readudp from net.c. This is for PXE, so itps2000-04-084-215/+276
| | | | can use its own UDP interface.
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-021-2/+4
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* trailing white space removal.obrien2000-01-181-16/+14
|
* Add two new functions cd9660_readfile() & cd9660_readdir(), whichobrien2000-01-181-110/+175
| | | | | | | cd9660_read() now uses to read CDROMs. With these changes FreeBSD/Alpha can now boot from a bootable CDROM. Submitted by: dfr
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"peter1999-12-291-2/+2
| | | | | | is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come.
* Use the ctype.h version of isascii() - it doesn't loose precision and thinkpeter1999-12-281-1/+1
| | | | | | that 0x100 (int) is an ascii character. Submitted by: bde
* Tidy up some loose ends. nullfs_read/write were returning the wrong value.peter1999-12-273-5/+7
| | | | | | Fix some ctype problems - isascii() caused a warning if fed an unsigned char - it's always > 0 and libstand is compiled with -Wall. Missing prototype/include in printf.c
* longjumperror() and abort() don't exist in libstand.. Don't testpeter1999-11-241-8/+1
| | | | | for a condition we can't handle (like the x86 longjmp). This was highlighted by attempting to build FICL into the alpha loader.
* Change toupper/tolower so that they don't give a bogus answer if thedfr1999-09-111-2/+10
| | | | argument is already upper/lower.
* $Id$ -> $FreeBSD$peter1999-08-2820-21/+21
|
* More egcs warning fixes:imp1999-04-252-3/+5
| | | | | | | | | | o use braces to avoid potentially ambiguous else o don't default to type int (and also remove a useless register modifier). o Use parens around assignment values used as truth values. o Remove unused function. Reviewed by: obrien and chuckr
* Don't build with -g. The a.out egcs can't handle it at the moment.jdp1999-04-221-2/+2
| | | | | This seems to have snuck back into the Makefile in an unrelated commit (rev. 1.8).
* Remove float-point dependency from i386's version of setjmp()/longjmp().dcs1999-02-121-5/+2
|
* Copy _setjmp.S from libc in preparation for loader-specific version.dcs1999-02-123-2/+209
|
* Oops. Missed this in the last commit.jkh1999-02-011-3/+1
| | | | Submitted by: Daniel C. Sobral <dcs@newsguy.com>
* POSIX introduced optreset to deal with multiple invocationsmsmith1999-01-111-2/+2
| | | | | | | | | | of getopt (as in, multiple input lines :). This is documented in the man page and is used in the code, but unistd.h and stand.h do not declare it. Incidentally, it prevents me fixing a bug in loader's code... :-) PR: misc/9373 Submitted by: "Daniel C. Sobral" <dcs@newsguy.com>
* Remove stray .endif from previous commit (I hope this is right)peter1998-11-041-2/+1
|
* Don't need this one anymore.msmith1998-11-041-81/+0
|
* Well I never. Seems like _setjmp()/_longjmp() are just what the doctormsmith1998-11-043-8/+16
| | | | | | | ordered. This brings the Alpha back to parity, and should bring us BootForth on both platforms. Submitted by: John Birrell (jb@freebsd.org)
* Improve the quality of isspace() to match expectations. This should makemsmith1998-11-041-2/+2
| | | | the Ficl interpreter read its softwords array OK.
* Don't try to build (nonexistent) Alpha setjmp until we have one.msmith1998-11-041-1/+3
|
* Move setjmp/longjmp implementations here from libc; no signal handlingmsmith1998-11-044-4/+504
| | | | | | | | in libstand, only for i386 until I locate an alpha setjmp/longjmp. Minimal 64-bit gcc integer support for i386. This is kinda nasty, and should be revisited once we decide whether the bootblocks need quad arithmetic.
* Add:msmith1998-11-015-10/+73
| | | | | | assert() setjmp()/longjmp() vsprintf()
* Add a new field to the devsw structure; dv_print, to print all valid unitsmsmith1998-10-313-2/+19
| | | | | | | etc. associated with the device entry. Consider EOF an 'error' for fgetstr if we haven't read anything yet. You *MUST* recompile and reinstall libstand before rebuilding the bootstrap.
* Implement a hook to allow us to reclaim the memory used by the first stagedfr1998-10-192-2/+14
| | | | of the bootstrap (the bit which loads /boot/loader).
* To clarify last commit, msmith says:obrien1998-10-171-1/+1
| | | | | The reason the Alpha has less room than the i386 is because the bootstrap is given a 256K mapping by the firmware; to add more requires extra work.
* Reduce the sbrk() increment from 64K to 4K. There's not much room on themsmith1998-10-161-2/+2
| | | | Alpha, and wasting potentially 64K-4 bytes of RAM just isn't an option.
OpenPOWER on IntegriCloud