aboutsummaryrefslogtreecommitdiff
path: root/lib/libstand/sbrk.c
Commit message (Collapse)AuthorAgeFilesLines
* Move lib/libstand to sys/boot/libsaWarner Losh2017-10-121-64/+0
| | | | | | | | | | Move the sources to sys/boot. Make adjustments related to the move. Kill LIBSTAND_SRC since it's no longer needed. Sponsored by: Netflix Notes: svn path=/head/; revision=324551
* Set the malloc alignment to 64 bytes on platforms that use the U-Boot APIIan Lepore2014-02-051-2/+4
| | | | | | | | | | | | | | device drivers. Recent versions of u-boot run with the MMU enabled, and require DMA-based I/O to be aligned to cache line boundaries. These changes are based on a patch originally submitted by Juergen Weiss, but I reworked them and thus any problems are purely my fault. Submitted by: "Juergen Weiss" <weiss@uni-mainz.de> Reviewed by: imp, nwhitehorn, jhb Notes: svn path=/head/; revision=261530
* Don't add integers to void pointers.Stefan Farfeleder2004-10-031-2/+2
| | | | Notes: svn path=/head/; revision=136093
* Add __FBSDID()s to libstandMatthew Dillon2001-09-301-2/+3
| | | | Notes: svn path=/head/; revision=84221
* Fix the real problem that broke the Alpha loader this last week. ItPeter Wemm2000-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. Notes: svn path=/head/; revision=60481
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Replace the old and extremely icky Mach/NetBSD allocator with a similarlyMike Smith1998-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> Notes: svn path=/head/; revision=39665