kalloc and kfree interface and abstraction
[cortex-from-scratch] / term.c
diff --git a/term.c b/term.c
index 92017e6..0b2f0d6 100644 (file)
--- a/term.c
+++ b/term.c
@@ -21,8 +21,6 @@
 #include <lib/regfunc.h>
 #include <lib/tinyprintf.h>
 
-#include <lib/pool.h>
-
 #include <drivers/led.h>
 
 #define SERIAL 1
@@ -51,7 +49,9 @@ struct cmd {
 struct cmd builtincmds[BUILTINCMDS];
 
 int info(int argc, char ** argsv) {
-       sysinfo();
+       /* extern mem_pool_t kheap_pool;
+       kheap_info(&kheap_pool); */
+       kalloc(get_kheap());
        return 0;
 }
 
@@ -84,12 +84,6 @@ int showmem(int argc, char ** argsv) {
        
        }
 
-       extern mem_pool_t kheap_pool;
-       int * a = kalloc(&kheap_pool);
-       *a = argc;
-       printf("%d\n", *a);
-       printf("%p\n", a);
-
        return 0;
 }