Last change
on this file was
e16e8f2,
checked in by Edwin Eefting <edwin@datux.nl>, 3 years ago
|
bootstuff
|
-
Property mode set to
100644
|
File size:
906 bytes
|
Line | |
---|
1 | /* |
---|
2 | * klibc/sysconfig.h |
---|
3 | * |
---|
4 | * Allows for definitions of some things which may be system-dependent |
---|
5 | */ |
---|
6 | |
---|
7 | #ifndef _KLIBC_SYSCONFIG_H |
---|
8 | #define _KLIBC_SYSCONFIG_H |
---|
9 | |
---|
10 | /* |
---|
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. |
---|
15 | */ |
---|
16 | #define MALLOC_USING_SBRK |
---|
17 | |
---|
18 | /* |
---|
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 |
---|
21 | * architectures. |
---|
22 | */ |
---|
23 | #define MALLOC_CHUNK_SIZE 4096 |
---|
24 | #define MALLOC_CHUNK_MASK (MALLOC_CHUNK_SIZE-1) |
---|
25 | |
---|
26 | /* |
---|
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 |
---|
30 | * pointers.) |
---|
31 | */ |
---|
32 | #define SBRK_ALIGNMENT 32 |
---|
33 | |
---|
34 | #endif /* _KLIBC_SYSCONFIG_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.