mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-03 18:22:22 +00:00
Minor kmalloc() fix
This commit is contained in:
@@ -11,6 +11,7 @@ TODO
|
|||||||
[x] Paging
|
[x] Paging
|
||||||
[x] Serial monitor
|
[x] Serial monitor
|
||||||
[ ] Make dedicated asm functions like lidt(), sti(), ...
|
[ ] Make dedicated asm functions like lidt(), sti(), ...
|
||||||
|
[ ] Add something like <errno.h> in the kernel
|
||||||
[x] PIT
|
[x] PIT
|
||||||
[ ] RTC
|
[ ] RTC
|
||||||
[ ] HPET
|
[ ] HPET
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ void kmalloc_merge() {
|
|||||||
if (current->free && current->next->free) {
|
if (current->free && current->next->free) {
|
||||||
current->size += current->next->size + sizeof(struct kmalloc_node);
|
current->size += current->next->size + sizeof(struct kmalloc_node);
|
||||||
current->next = current->next->next;
|
current->next = current->next->next;
|
||||||
break;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
current = current->next;
|
current = current->next;
|
||||||
|
|||||||
Reference in New Issue
Block a user