aboutsummaryrefslogtreecommitdiffstats
path: root/src/malloc.h
Commit message (Collapse)AuthorAgeFilesLines
* malloc: Rename csm_malloc_preinit() to malloc_csm_preinit()Kevin O'Connor2015-10-151-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* malloc: Don't mix virtual and physical addressesKevin O'Connor2015-10-151-3/+4
| | | | | | | | | Consistently use 'u32' for physical addresses and pointers for virtual addresses in the malloc code. Introduce and use memremap() where a physical address needs to be converted to a virtual address. Use virt_to_phys() for the inverse. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* malloc: Add warning if free() called on invalid memoryKevin O'Connor2015-10-151-3/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* Remove the pmm handle argument from _malloc().Kevin O'Connor2013-12-271-11/+12
| | | | | | | | | The PMM handle argument will almost always be 0xffffffff. Use separate code for the few rare cases where it may not be the default value. Gcc produces better code if _malloc() only requires three parameters. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* Move malloc code from pmm.c to new files malloc.c and malloc.h.Kevin O'Connor2013-09-181-0/+70
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>