fix allocator delete entry

This commit is contained in:
sfja 2026-11-22 01:43:23 +01:00
parent 248f59c6c3
commit 468c702b62
2 changed files with 7 additions and 0 deletions

View File

@ -569,6 +569,11 @@ _kalloc_delete_entry:
.l1_else:
mov [kalloc_first_p], r2
.l1_end:
mov r1, r0
mov r2, 0
mov r3, kalloc_entry_size
call memset
ret

View File

@ -171,6 +171,8 @@ static void delete_entry(AllocEntryPtr p_entry)
} else {
table->p_first = entry->p_next;
}
*entry = (AllocEntry) { };
}
void kfree(WPtr ptr)