projects
/
cortex-from-scratch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kheap_info and trace
[cortex-from-scratch]
/
term.c
diff --git
a/term.c
b/term.c
index
92017e6
..
4a2a88b
100644
(file)
--- a/
term.c
+++ b/
term.c
@@
-51,7
+51,8
@@
struct cmd {
struct cmd builtincmds[BUILTINCMDS];
int info(int argc, char ** argsv) {
struct cmd builtincmds[BUILTINCMDS];
int info(int argc, char ** argsv) {
- sysinfo();
+ extern mem_pool_t kheap_pool;
+ kheap_info(&kheap_pool);
return 0;
}
return 0;
}
@@
-84,12
+85,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;
}
return 0;
}