page: use union element ptr
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
cc84d4a5a2
commit
14c2f27d40
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ void page_map(pgd_t *pgd_table, paddr_t paddr, vaddr_t vaddr, size_t len, u64 fl
|
|||
insert->flags = flags;
|
||||
|
||||
rbnode_t *node = rbt_insert(map_tree, vaddr);
|
||||
node->value = (u64)insert;
|
||||
node->ptr = insert;
|
||||
|
||||
vaddr_t cur_vaddr = vaddr & PAGE_MASK;
|
||||
paddr_t cur_paddr = paddr & PAGE_MASK;
|
||||
|
|
|
|||
Loading…
Reference in a new issue