Module: xenomai-3
Branch: wip/prioceil
Commit: 1e3bf2f96b54b75b2f8764beb4f1ead70a4ffbb0
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=1e3bf2f96b54b75b2f8764beb4f1ead70a4ffbb0

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

Reply via email to