Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 3038 → Rev 3039

/drivers/ddk/core.S
62,6 → 62,7
.global _TimerHs
 
.global _UserAlloc
.global _UserFree
 
.global _WaitEvent
 
123,6 → 124,7
.def _TimerHs; .scl 2; .type 32; .endef
 
.def _UserAlloc; .scl 2; .type 32; .endef
.def _UserFree; .scl 2; .type 32; .endef
 
.def _WaitEvent; .scl 2; .type 32; .endef
 
185,6 → 187,7
_TimerHs:
 
_UserAlloc:
_UserFree:
_WaitEvent:
 
ret
252,6 → 255,7
.ascii " -export:TimerHs" # stdcall
 
.ascii " -export:UserAlloc" # stdcall
.ascii " -export:UserFree" # stdcall
 
.ascii " -export:WaitEvent" # stdcall
 
/drivers/ddk/malloc/malloc.c
89,9 → 89,9
#define NO_SEGMENT_TRAVERSAL 1
#define MALLOC_ALIGNMENT ((size_t)8U)
#define CHUNK_OVERHEAD (SIZE_T_SIZE)
#define DEFAULT_GRANULARITY ((size_t)64U * (size_t)1024U)
#define DEFAULT_MMAP_THRESHOLD ((size_t)256U * (size_t)1024U)
#define DEFAULT_TRIM_THRESHOLD ((size_t)512U * (size_t)1024U)
#define DEFAULT_GRANULARITY ((size_t)128U * (size_t)1024U)
#define DEFAULT_MMAP_THRESHOLD ((size_t)512U * (size_t)1024U)
#define DEFAULT_TRIM_THRESHOLD ((size_t)1024U * (size_t)1024U)
 
/* The bit mask value corresponding to MALLOC_ALIGNMENT */
#define CHUNK_ALIGN_MASK (MALLOC_ALIGNMENT - SIZE_T_ONE)
835,6 → 835,7
static inline void* os_mmap(size_t size)
{
void* ptr = KernelAlloc(size);
printf("%s %x %d bytes\n",__FUNCTION__, ptr, size);
return (ptr != 0)? ptr: MFAIL;
}
 
1110,6 → 1111,8
 
ensure_initialization();
 
printf("%s %d bytes\n", __FUNCTION__, nb);
 
/* Directly map large chunks, but only if already initialized */
if (use_mmap(m) && nb >= mparams.mmap_threshold && m->topsize != 0)
{