summaryrefslogtreecommitdiffstats
path: root/src/core/malloc.c
Commit message (Collapse)AuthorAgeFilesLines
* Revert "malloc attribute changes"Holger Lubitz2007-08-061-4/+0Star
| | | | | wasn't meant for my local "master" branch ;) This reverts commit 373022108ba389fb3d50a3d50f9baf64c6c82171.
* malloc attribute changesHolger Lubitz2007-08-021-0/+4
|
* Separated out initialisation functions from startup/shutdown functions.Michael Brown2007-07-041-0/+24
|
* Renamed _calloc() to zalloc(), ready to be used as a standalone function.Michael Brown2007-06-111-1/+4
|
* Use stdio.h instead of vsprintf.hMichael Brown2007-01-191-1/+1
|
* Move include/malloc.h to include/gpxe/malloc.h, since everything in thereMichael Brown2007-01-181-1/+10
| | | | | | | is now gPXE-specific. (The standard malloc() et al have been in stdlib.h for a while). Add free memory counter.
* Don't always zero memory in malloc(). This saves around 2us on aMichael Brown2007-01-181-2/+17
| | | | full-length PKB allocation.
* Fix typoMichael Brown2007-01-121-1/+1
|
* Implemented realloc(), and changed the semantics of malloc(0) to allowMichael Brown2006-11-241-15/+79
| | | | for realloc(0) being a valid way to free memory.
* We don't actually have a stdio.h header file. Our printf() functions areMichael Brown2006-09-271-1/+0Star
| | | | | | | | defined in vsprintf.h. (This may change, since vsprintf.h is a non-standard name, but for now it's the one to use.) There should be no need to include vsprintf.h just for DBG() statements, since include/compiler.h forces it in for a debug build anyway.
* include stdio.h to suppress printf warning, general warnings fixupsMarty Connor2006-09-271-0/+2
|
* Tidied up debugging messagesMichael Brown2006-05-271-4/+4
|
* Fix typoMichael Brown2006-05-161-1/+1
|
* Add an explicit failure debug messageMichael Brown2006-04-281-0/+2
|
* Glenn managed to shrink .text by 5 more bytes.Michael Brown2006-04-251-3/+6
|
* Fixed erroneous comparisonMichael Brown2006-04-251-1/+1
|
* Removed incorrect comment; malloc() is inefficient only when theMichael Brown2006-04-251-5/+0Star
| | | | | alignment and size are both powers of two, and there's no way to specify an alignment through the malloc() interface anyway.
* Now passes trivial tests. free_memblock() needs neatening up.Michael Brown2006-04-251-15/+34
|
* Updated memory allocator to improve support for unaligned or partiallyMichael Brown2006-04-251-118/+158
| | | | | | | | | aligned blocks. Moved header to include/malloc.h, since we now also provide the POSIX-like malloc()/free() pair. Not yet tested.
* First draft of a dynamic memory allocatorMichael Brown2006-04-241-0/+209