]> Zhao Yanbai Git Server - minix.git/commitdiff
arm:ddekit use simple alloc to allocate stack.
authorKees Jongenburger <kees.jongenburger@gmail.com>
Tue, 29 Apr 2014 06:55:34 +0000 (08:55 +0200)
committerLionel Sambuc <lionel@minix3.org>
Mon, 28 Jul 2014 15:05:24 +0000 (17:05 +0200)
Workaround for:
-ddekit large alloc unnecessarily allocating physical contiguous memory.
-the ARM port expecting that physical contiguous memory equals device memory.

lib/libddekit/src/thread.c

index 2aa800e0ac975de8c76d7a048610fcd7e9a30bcb..baa3868d3a77058cf839ab8050c58c4d4a04bfc4 100644 (file)
@@ -87,7 +87,7 @@ ddekit_thread_create(void (*fun)(void *), void *arg, const char *name)
        strncpy(th->name, name, DDEKIT_THREAD_NAMELEN); 
        th->name[DDEKIT_THREAD_NAMELEN-1] = 0;
        
-       th->stack = ddekit_large_malloc(DDEKIT_THREAD_STACKSIZE);
+       th->stack = ddekit_simple_malloc(DDEKIT_THREAD_STACKSIZE);
 
        th->arg = arg;
        th->fun = fun;