kheap info
This commit is contained in:
+8
-1
@@ -11,6 +11,7 @@
|
||||
#include <stdint.h>
|
||||
#include <kernel.h>
|
||||
#include <time/date.h>
|
||||
#include <mem/kheap.h>
|
||||
|
||||
__attribute__((noinline))
|
||||
void smash_it()
|
||||
@@ -49,7 +50,8 @@ void pedicel_main(void* arg)
|
||||
"syscall - trigger int 0x80\r\n"
|
||||
"pf - trigger a page fault\r\n"
|
||||
"now - get current date\r\n"
|
||||
"smash - smash the stack\r\n");
|
||||
"smash - smash the stack\r\n"
|
||||
"mem - get used heap info\r\n");
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -89,6 +91,11 @@ void pedicel_main(void* arg)
|
||||
continue;
|
||||
}
|
||||
|
||||
if (strncmp(input_buf, "mem", 3) == 0) {
|
||||
kheap_info();
|
||||
continue;
|
||||
}
|
||||
|
||||
printf("%s: command not found\r\n", input_buf);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user