File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11
11
#define HEAP_H
12
12
#include <heap.h>
13
13
#include <stddef.h>
14
+ #include <graphics.h>
14
15
15
16
uint32_t last_alloc = 0 ;
16
17
uint32_t heap_end = 0 ;
@@ -33,9 +34,9 @@ void mm_init(uint32_t kernel_end)
33
34
34
35
void mm_print_out ()
35
36
{
36
- printf ("Memory used : %d bytes" , memory_used );
37
- printf ("Memory free : %d bytes" , heap_end - heap_begin - memory_used );
38
- printf ("Heap size : %d bytes" , heap_end - heap_begin );
37
+ printf ("%sMemory used :%s %d bytes" , yellow_color , reset_color , memory_used );
38
+ printf ("%sMemory free :%s %d bytes" , yellow_color , reset_color , heap_end - heap_begin - memory_used );
39
+ printf ("%sHeap size :%s %d bytes" , yellow_color , reset_color , heap_end - heap_begin );
39
40
}
40
41
41
42
void free (void * mem )
You can’t perform that action at this time.
0 commit comments