fix allocator delete entry
This commit is contained in:
parent
248f59c6c3
commit
468c702b62
@ -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
|
||||
|
||||
|
||||
|
||||
@ -171,6 +171,8 @@ static void delete_entry(AllocEntryPtr p_entry)
|
||||
} else {
|
||||
table->p_first = entry->p_next;
|
||||
}
|
||||
|
||||
*entry = (AllocEntry) { };
|
||||
}
|
||||
|
||||
void kfree(WPtr ptr)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user