1
0
Форкнуть 0

kmalloc: initialize initial page power

Этот коммит содержится в:
Aaron Lindsay 2012-09-29 23:24:05 -04:00
родитель 9efb28980c
Коммит ba10785eb9
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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
int curr_page_power = 0;
unsigned int curr_page_power;
struct dlist_node kmalloc_free_regions;
void kmalloc_init() {
init_list(&kmalloc_free_regions);
curr_page_power = 0;
}
struct kmalloc_region *find_free_region(unsigned int bytes) {