kmalloc: initialize initial page power
This commit is contained in:
parent
9efb28980c
commit
ba10785eb9
@ -33,11 +33,12 @@ struct kmalloc_region {
|
|||||||
#define KMALLOC_MAX_TRIES 3 //Max number of times the heap can be grown for a single request
|
#define KMALLOC_MAX_TRIES 3 //Max number of times the heap can be grown for a single request
|
||||||
|
|
||||||
|
|
||||||
int curr_page_power = 0;
|
unsigned int curr_page_power;
|
||||||
struct dlist_node kmalloc_free_regions;
|
struct dlist_node kmalloc_free_regions;
|
||||||
|
|
||||||
void kmalloc_init() {
|
void kmalloc_init() {
|
||||||
init_list(&kmalloc_free_regions);
|
init_list(&kmalloc_free_regions);
|
||||||
|
curr_page_power = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct kmalloc_region *find_free_region(unsigned int bytes) {
|
struct kmalloc_region *find_free_region(unsigned int bytes) {
|
||||||
|
Loading…
Reference in New Issue
Block a user