mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-25 20:06:22 +00:00
Fleshes out the prototype heap memory pool support to make it fully operational. Noteworthy changes are listed below: Tweaks arguments to k_malloc() and k_free() to be more like malloc() and free(). Similarly, modifies k_free() to take no action when passed a NULL pointer. Now stores the complete block descriptor at the start of any block allocated from the heap memory pool. This increases memory overhead by 4 bytes per block, but streamlines the allocation and freeing algorithms. It also ensures that the routines will work if the block descriptor internals are changed in the future. Now allows the heap memory pool to be defined using the HEAP_MEM_POOL_SIZE configuration option. This will be the official configuration approach in the unified kernel. Also allows the heap memory pool to be defined using the (undocumented) HEAP_SIZE entry in the MDEF. This is provided for legacy reasons only. Co-locates memory pool initialization code to keep the line that causes memory pool initialization to be done during booting right next to the routine that does the initialization. Change-Id: Ifea9d88142fb434d4bea38bb1fcc4856a3853d8d Signed-off-by: Allan Stephens <allan.stephens@windriver.com> |
||
---|---|---|
.. | ||
basic | ||
cross_compiler | ||
gen_idt | ||
gen_offset_header | ||
kconfig | ||
patches | ||
sanity_chk | ||
support | ||
.gitignore | ||
build_grub.sh | ||
check_known_checkpatch_issues.sh | ||
check_link_map.py | ||
checkconfig.py | ||
checkpatch.pl | ||
checkstack.pl | ||
compare_footprint | ||
config | ||
diffconfig | ||
do_checkpatch.sh | ||
expr_parser.py | ||
filter-known-issues.py | ||
gcc-version.sh | ||
get_maintainer.pl | ||
headerdep.pl | ||
Kbuild.include | ||
maintainer-checkpatch.bash | ||
make-ll | ||
Makefile | ||
Makefile.build | ||
Makefile.clean | ||
Makefile.extrawarn | ||
Makefile.headersinst | ||
Makefile.help | ||
Makefile.host | ||
Makefile.lib | ||
Makefile.modbuiltin | ||
Makefile.toolchain.gccarmemb | ||
Makefile.toolchain.issm | ||
Makefile.toolchain.xtools | ||
Makefile.toolchain.zephyr | ||
mkmakefile | ||
mksysmap | ||
qemu-machine-hack.py | ||
sanitycheck | ||
size_report | ||
spelling.txt | ||
sysgen | ||
tags.sh | ||
timestamp | ||
vercomp |