Module: xenomai-3 Branch: wip/dovetail Commit: 4f9655d6d5a32985fa582ddf47fe7529bf28f567 URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=4f9655d6d5a32985fa582ddf47fe7529bf28f567
Author: Philippe Gerum <r...@xenomai.org> Date: Fri Mar 4 11:26:39 2016 +0100 cobalt/init: get system heap from the normal zone --- kernel/cobalt/init.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kernel/cobalt/init.c b/kernel/cobalt/init.c index 6cbb67b..5a6fdbf 100644 --- a/kernel/cobalt/init.c +++ b/kernel/cobalt/init.c @@ -18,7 +18,6 @@ */ #include <linux/init.h> #include <linux/module.h> -#include <linux/vmalloc.h> #include <linux/ipipe_tickdev.h> #include <xenomai/version.h> #include <cobalt/kernel/sched.h> @@ -156,7 +155,7 @@ static void sys_shutdown(void) xnregistry_cleanup(); membase = xnheap_get_membase(&cobalt_heap); xnheap_destroy(&cobalt_heap); - vfree(membase); + xnheap_vfree(membase); } static int __init mach_setup(void) @@ -289,7 +288,7 @@ static __init int sys_init(void) if (sysheap_size_arg == 0) sysheap_size_arg = CONFIG_XENO_OPT_SYS_HEAPSZ; - heapaddr = vmalloc(sysheap_size_arg * 1024); + heapaddr = xnheap_vmalloc(sysheap_size_arg * 1024); if (heapaddr == NULL || xnheap_init(&cobalt_heap, heapaddr, sysheap_size_arg * 1024)) { return -ENOMEM; _______________________________________________ Xenomai-git mailing list Xenomai-git@xenomai.org https://xenomai.org/mailman/listinfo/xenomai-git