#include <lib/regfunc.h>
#include <lib/tinyprintf.h>
+#include <lib/pool.h>
+
#include <drivers/led.h>
#define SERIAL 1
static char buf[BUFSIZE];
-
struct cmd {
char * name;
int (*function)(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;
}