kmalloc: add fallback for failed DMA allocations

This commit is contained in:
Michael Shaw 2023-11-03 14:43:53 -04:00
commit 06b02fc9a6
3 changed files with 31 additions and 2 deletions

View file

@ -130,6 +130,10 @@ struct rbnode *rbt_insert(struct rbtree *tree, uint64_t key)
new->right = NULL;
new->color = RB_RED;
new->value = 0;
new->value2 = 0;
new->value3 = 0;
spinlock_acquire(&tree->lock);
if (parent == NULL)