shithub: riscv

Download patch

ref: 4c639475ce8cf0aec59632b6f7537169f1537f13
parent: 72e4d850a4c2b334b3442dd39aa973650e5d5ba4
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri May 2 20:51:45 EDT 2014

cwfs: fix 1GB memsize limitation

the malloc pool allocator is limited in its allocation
size. as almost all data structures in cwfs are never
freed, use brk() in ialloc() instead of mallocalign().
this means memory returned by ialloc() cannot be freed!

to make sure we do not call free by accident, remove
the #define malloc(n) ialloc(n, 0) macro and use ialloc()
directly as in the original code to show the intend
of permanent allocations.