kheap_info and trace
[cortex-from-scratch] / term.c
diff --git a/term.c b/term.c
index d1a6431..4a2a88b 100644 (file)
--- a/term.c
+++ b/term.c
@@ -21,6 +21,8 @@
 #include <lib/regfunc.h>
 #include <lib/tinyprintf.h>
 
+#include <lib/pool.h>
+
 #include <drivers/led.h>
 
 #define SERIAL 1
@@ -41,7 +43,6 @@
 
 static char buf[BUFSIZE];
 
-
 struct cmd {
        char * name;
        int (*function)(int argc, char ** argsv);
@@ -50,7 +51,8 @@ struct cmd {
 struct cmd builtincmds[BUILTINCMDS];
 
 int info(int argc, char ** argsv) {
-       sysinfo();
+       extern mem_pool_t kheap_pool;
+       kheap_info(&kheap_pool);
        return 0;
 }