summaryrefslogtreecommitdiffstats
path: root/lib/libstand/sbrk.c
Commit message (Collapse)AuthorAgeFilesLines
* Add __FBSDID()s to libstanddillon2001-09-301-2/+3
|
* 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.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Replace the old and extremely icky Mach/NetBSD allocator with a similarlymsmith1998-09-261-0/+60
compact and much better one donated by Matt Dillon. Implement a simple sbrk() which uses the existing setheap() api. Remove the custom allocator from the UFS code. It wasn't working quite right, and it shouldn't be needed with the new allocator. Fix a serious problem with changing the value of already-existent environment variables. Don't attempt to modify the supposedly-const argument to putenv() Fix an off-by-one sizing error in the zipfs code detected by the new allocator. Submitted by: zmalloc from Matt Dillon <dillon@backplane.com>
OpenPOWER on IntegriCloud