File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1+ commit 1a32b6cff7252ca9e6a9c59f8cd77122a7d0fc40
2+ Author: Alexeev Bronislav <
[email protected] >
3+ Date: Thu Aug 28 21:48:24 2025 +0700
4+
5+ update docstrings
6+
17commit c84a331ecb6a9547e255a833f04024ec20e0ac1d
28Author: Alexeev Bronislav <
[email protected] >
39Date: Thu Aug 28 15:39:31 2025 +0700
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ int expand_heap(u32 size) {
5151 // нужен физ фрейм
5252 page_t * page = get_page (virtual_address , 1 , kernel_directory );
5353 if (!page ) {
54- kprint ( "Failed to get page for heap expansion!\n" );
54+ panic_red_screen ( "Expand Heap Error" , "Failed to get page for heap expansion!\n" );
5555 return 0 ;
5656 }
5757
@@ -66,7 +66,7 @@ int expand_heap(u32 size) {
6666 mem_block_t * new_block = (mem_block_t * )heap_current_end ;
6767 new_block -> size = expand_size - sizeof (mem_block_t ); // Учитываем заголовок
6868 new_block -> is_free = 1 ;
69- new_block -> next = free_blocks ; // Добавляем в начало списка
69+ new_block -> next = free_blocks ; // Добавляем в начало списка
7070
7171 // Обновляем глобальный список свободных блоков
7272 free_blocks = new_block ;
@@ -121,7 +121,7 @@ void* kmalloc(u32 size) {
121121 // После расширения кучи пробуем аллоцировать снова (рекурсивно)
122122 return kmalloc (size );
123123 } else {
124- kprint ( " Heap expansion failed! \n" );
124+ panic_red_screen ( "Expand Heap Error" , "Heap Expansion Failed when try to allocate memory \n" );
125125 return NULL ;
126126 }
127127}
You can’t perform that action at this time.
0 commit comments