mm: add some debug prints to alloc_page in page_alloc.c
This commit is contained in:
@@ -53,6 +53,10 @@ void* alloc_page() {
|
||||
|
||||
// Вычисляем физический адрес страницы
|
||||
uint32_t page_num = i * 8 + j;
|
||||
void* addr = (void*)(page_num * PAGE_SIZE);
|
||||
|
||||
printf("allocated page at 0x%X (page #0x%X)\n", addr, page_num);
|
||||
|
||||
return (void*)(page_num * PAGE_SIZE);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user