4 * Allows for definitions of some things which may be system-dependent
7 #ifndef _KLIBC_SYSCONFIG_H
8 #define _KLIBC_SYSCONFIG_H
11 * Define this to obtain memory using sbrk() instead
12 * of mmap(). This should make it friendlier on
13 * non-MMU architectures. This should become a
14 * per-architecture configurable.
16 #define MALLOC_USING_SBRK
19 * This is the minimum chunk size we will ask the kernel for using
20 * malloc(); this should be a multiple of the page size on all
23 #define MALLOC_CHUNK_SIZE 4096
24 #define MALLOC_CHUNK_MASK (MALLOC_CHUNK_SIZE-1)
27 * This is the minimum alignment for the memory returned by sbrk().
28 * It must be a power of 2. If MALLOC_USING_SBRK is defined it should
29 * be no smaller than the size of struct arena_header in malloc.h (4
32 #define SBRK_ALIGNMENT 32
34 #endif /* _KLIBC_SYSCONFIG_H */