- Main Page
- Related Pages
- Data Structures
- Files

- File List
- Globals

# lib/dlmalloc/include/dlmalloc-config.h

Go to the documentation of this file.

    00001
    00044 #ifndef DLMALLOC_CONFIG_H
    00045 #define DLMALLOC_CONFIG_H
    00046
    00047 #include <bitops.h>
    00048 #include <physmem.h>
    00049 #include <types.h>
    00050
    00051 #define MALLOC_ALIGN_ORDER      5
    00052
    00053 static void *dlmalloc_morecore(long increment)
    00054 {
    00055         phys_addr_t phys;
    00056
    00057         if (increment < 0)
    00058                 increment = 0;
    00059
    00060         phys = physmem_alloc_low(&cpu_sram_pool, increment, MALLOC_ALIGN_ORDER);
    00061         if (phys == PHYSMEM_ALLOC_ERR)
    00062                 return (void *)(-1);
    00063
    00064         return physmem_map(phys, increment, PHYS_MAP_WRBACK);
    00065 }
    00066
    00067 #define fprintf(file, ...)      do { } while (0)
    00068
    00069 #define MALLOC_ALIGNMENT        ((size_t)1 << 5)
    00070 #define ABORT                   assert(0)
    00071 #define ABORT_ON_ASSERT_FAILURE (0)
    00072 #define MALLOC_FAILURE_ACTION   do { } while (0)
    00073 #define MORECORE(incr)          dlmalloc_morecore(incr)
    00074 #define MORECORE_CANNOT_TRIM    (1)
    00075 #define HAVE_MMAP               (0)
    00076 #define HAVE_MREMAP             (0)
    00077 #define USE_BUILTIN_FFS         (1)
    00078 #define malloc_getpagesize      (1024)
    00079
    00080 #define LACKS_UNISTD_H          1
    00081 #define LACKS_FCNTL_H           1
    00082 #define LACKS_SYS_PARAM_H       1
    00083 #define LACKS_SYS_MMAN_H        1
    00084 #define LACKS_STDLIB_H          1
    00085 #define LACKS_STDIO_H           1
    00086 #define LACKS_STRINGS_H         1
    00087 #define LACKS_SYS_TYPES_H       1
    00088 #define LACKS_ERRNO_H           1
    00089
    00090 #endif /* DLMALLOC_CONFIG_H */