kheap info

This commit is contained in:
2026-03-31 17:48:11 +02:00
parent 2f1eef9e15
commit 1fc5225fd2
11 changed files with 57 additions and 15 deletions
+8 -1
View File
@@ -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);
}
}