Browse Source

kmalloc: initialize initial page power

Aaron Lindsay 7 years ago
parent
commit
ba10785eb9
1 changed files with 2 additions and 1 deletions
  1. 2 1
      kernel/kmalloc.c

+ 2 - 1
kernel/kmalloc.c

@@ -33,11 +33,12 @@ struct kmalloc_region {
33 33
 #define KMALLOC_MAX_TRIES 3 //Max number of times the heap can be grown for a single request
34 34
 
35 35
 
36
-int curr_page_power = 0;
36
+unsigned int curr_page_power;
37 37
 struct dlist_node kmalloc_free_regions;
38 38
 
39 39
 void kmalloc_init() {
40 40
 	init_list(&kmalloc_free_regions);
41
+	curr_page_power = 0;
41 42
 }
42 43
 
43 44
 struct kmalloc_region *find_free_region(unsigned int bytes) {